Android-x86
Fork
Spenden

  • R/O
  • HTTP
  • SSH
  • HTTPS

external-drm_gralloc: Liste der Commits

external/drm_gralloc


RSS
Rev. Zeit Autor
c1827f6 marshmallow-x86 2017-05-15 10:50:02 Mauro Rossi

Update sw usage flags handling

Inspired by Rob Herring suggestion and gbm_gralloc implementation

Add missing support for GRALLOC_USAGE_SW_READ_OFTEN,
GRALLOC_USAGE_SW_WRITE_OFTEN usage flags
mapping them to PIPE_BIND_LINEAR

Fixes the mouse cursor and message panes artifacts
happening with gralloc_drm_pipe, tested with amdgpudrmfb
No observed regression on swrast llvmpipe

a3701d2 android-x86-6.0-r3 2017-03-18 01:56:19 Chih-Wei Huang

gralloc_drm_pipe: fix the arguments of resource_get_handle

The second argument is pipe_context and the third is pipe_resource.

Correct the error introduced by commit 397a5a4.

2f394b3 android-x86-6.0-r2 2016-09-10 07:35:58 Mauro Rossi

remove PIPE_BIND_TRANSFER_READ/WRITE for compatibility with mesa 12.1

This changes are the necessary complement to corresponding
mesa commit 5981ab5 "gallium: remove PIPE_BIND_TRANSFER_READ/WRITE"

Fixes the following building errors:

external/drm_gralloc/gralloc_drm_pipe.c:102:11: error: use of undeclared identifier 'PIPE_BIND_TRANSFER_READ'
...
external/drm_gralloc/gralloc_drm_pipe.c:104:11: error: use of undeclared identifier 'PIPE_BIND_TRANSFER_WRITE'

397a5a4 2016-08-28 00:41:46 Mauro Rossi

android: fix gralloc_drm_pipe building error with mesa 12.1

Fixes a building error introduced by commit 9daaa6f
"gallium: add a pipe_context parameter to resource_get_handle"

The new parameter was introduced for radeonsi future uses
and can be optionally set to NULL for now

c6a6d36 android-x86-6.0-r1 2016-07-11 20:56:50 Chih-Wei Huang

gralloc_drm: show the unsupported error if drv is null

The unsupported driver message was suppressed by a subtle bug
of commit cbf96c0d which treats the latest checking as an else
case. Remove the unnecessary else.

Besides, logically on entering ENABLE_PIPE snippet, drv is
always null. No need to check it.

a9d0cbf 2016-07-06 12:42:52 Mark Yao

drm_gralloc: fix random crash with wildpointer

two drm handle may use same bo, but there is no
reference protect. if one of the drm handle release
the bo, another handle's bo become a wildpointer,
any read/write on the wildpointer will cause system
unstable, crash.

Change-Id: Ieaca522e3372dba82c48961499b9b657ca33cd15
Signed-off-by: Mark Yao <mark.yao@rock-chips.com>

27d5b5a 2016-06-27 21:26:00 WuZhen

Support multiple exteranl dispaly in mirror mode

and extend support beyong hdmi.

Change-Id: Ib9550eac0330807ccd4c3919609cbf02ad98299d

560cea3 2016-06-27 21:08:35 WuZhen

Maintain a list of connector outputs

Refactor code to support multiple mirrored outputs following code.

Change-Id: I60781d707ae68db2dbd2c4c4122b9183633a74be

c597559 2016-06-27 21:01:00 WuZhen

Rename hdmi_output_mode

Rename it to drm_output_mode and move it into gralloc_drm_output
in preparation for folowing changes.

Change-Id: I488f395feede9c9a20eadb9145ebf46295ba4a71

7c9a524 2016-06-27 20:55:33 Ma Jian

Best fit the external display

NO_REF_TASK
tested:
1) set persist.remixos.disp_best_fit to true
2) plugin the HDMI, the resolution should be the one fit the primary
screen (i.e. the resolution should be larger than or equal to primery
resolution, and it is the closest one)

3) set persist.remixos.disp_best_fit to false
4) plugin HDMI again, the external display will use the default
resolution.

Change-Id: I80b0fe6e7cc676ce1915f07f267204734bfc645f

9b6333c 2016-06-13 22:13:24 Mauro Rossi

nouveau: add support for latest Kepler and Maxwell chipsets

0x100 and 0x120 chipsets were added in gralloc_drm_nouveau.c

2000f20 2016-06-13 22:13:23 Mauro Rossi

android: fix gralloc_drm_pipe building error with mesa 11.3

Fixes a building error introduced by commit 82db518
"gallium: add external usage flags to resource_from(get)_handle (v2)"

parameter usage is required as a combination of PIPE_HANDLE_USAGE_* flags,
PIPE_HANDLE_USAGE_READ_WRITE was used as the most general case

6f60657 2016-05-12 13:09:30 WuZhen

avoid issue with devices that don't support blit.

Change-Id: I398258147f9adcfbbcf2d92c7ba19887ea917bd0

a04dcbb 2016-05-12 13:08:56 WuZhen

Revert "TEMP HACK: make non-standalone surfaceflinger work"

This reverts commit b19bbdbf98742f0428f6f4265b5e80d569608abd.

Change-Id: I351b1c3f149924f38635058004eb91d84351646a

6547336 2016-05-12 13:06:27 WuZhen

support hotplug with vanilla drm uevent

Change-Id: Ifc83db7bfe6f330ca68e4454516f7a84b2433823

c76be95 2016-05-12 12:47:06 WuZhen

support hdmi clone more for intel GEN8+ gpus

Change-Id: I4e83eb55f2813c92873b8481b8ae9328add4c4f7

cbf96c0 2016-05-03 00:59:36 Mauro Rossi

gralloc_drm: use pipe as a fallback instead of default

Current implementation prefers gralloc_drm_pipe over gralloc_drm_{driver}
while it may be the target solution, for nouveau it causes problems
because it is not anymore possible to use gralloc_drm_nouveau
whenever there is a driver ( e.g. swrast) in BoardConfig.mk BOARD_GPU_DRIVERS
not matching the list of valid drivers in drm_gralloc Android.mk

f61f81e 2016-04-01 14:56:07 Rob Herring

drm_gralloc: pipe: add error handling for NULL load_pipe_screen

Check load_pipe_screen for NULL and return in case dlsym returns a NULL
pointer. This can happen if the correct gallium driver is not enabled.

Signed-off-by: Rob Herring <robh@kernel.org>

24e22e3 2016-04-01 14:55:38 Rob Herring

Fix gralloc_drm_handle_t size mismatch on 32 and 64 bit builds, take 2

On x86 there was still a size mismatch due to x86-32 structs not following
natural alignment for 64-bit values. Force the alignment of the union.
Also, there appeared to be some padding on the end, so move the union to
the end of the struct.

Signed-off-by: Rob Herring <robh@kernel.org>

c041339 2016-03-18 18:21:52 Chih-Wei Huang

gralloc_drm_pipe: ignore mode_quirk_vmwgfx

Probably we don't need this quirk anymore?

5b5c6ba 2016-03-17 19:51:53 Chih-Wei Huang

Revert "Changed format constants to match what vmwgfx driver expects"

This partially reverts commit dc21193e3252ba2d6526546ba1d0c02116baf3ee.

048080b 2016-03-17 19:45:46 Rob Herring

Android.mk: remove unneeded static libraries

With the load_pipe_screen support, these libraries are no longer needed.

Signed-off-by: Rob Herring <robh@kernel.org>

42156ec 2016-03-17 19:45:35 Rob Herring

Build pipe support by default

Build pipe support by default when any unlisted driver is enabled. This way
gralloc doesn't have to be updated for every new driver.

Signed-off-by: Rob Herring <robh@kernel.org>

579e335 2016-03-17 19:43:47 Rob Clark

WIP: synchronize gralloc entry points

Note entirely sure what synchronization guarantees android provides
before calling in to module.. but stuff inside gralloc module is
definately not thread-safe so slap a big lock around the outside.

aac8ca7 2016-03-17 17:10:43 Rob Herring

Add gralloc_drm_get_prime_fd function

Mesa EGL needs to retrieve prime fds from gralloc handles.

Signed-off-by: Rob Herring <robh@kernel.org>

55002c8 2016-03-17 11:54:50 Rob Herring

pipe: use gallium loader function

Based on Rob Clark's work to avoid duplicating gallium driver loading
code and statically linking each driver's pipe and winsys libraries.

Signed-off-by: Rob Herring <robh@kernel.org>

564c471 2016-03-17 11:54:50 Rob Herring

fix pipe building with upstream

Signed-off-by: Rob Herring <robh@kernel.org>

556f7c1 2016-01-06 22:14:16 WuZhen

add padding to gralloc_drm_handle_t

gralloc_drm_handle_t size differs for 32/64 bit process. thus on
x86_64, this will crash any 32bit app, add propper padding.

Change-Id: I03663b36dd841bf69c84973fd2f5e99741317c15

02584da 2015-11-14 01:22:00 Chih-Wei Huang

Merge remote-tracking branch 'x86/lollipop-x86' into marshmallow-x86

9b65142 lollipop-x86 2015-11-14 01:18:41 Mauro Rossi

fix GRALLOC_DRM_HANDLE_NUM_INTS definition for 64-bit

As highlighted by pstglia current definition of GRALLOC_DRM_HANDLE_NUM_INTS
causes issues with 64-bit, because a pointer is accounted as having size of
an integer, which is not applicable to 64-bit pointer

The same definition adopted in AOSP hardware/drm_gralloc master branch has
been used, without changing the structure of gralloc_drm_handle_t.

Show on old repository browser