• R/O
  • HTTP
  • SSH


No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer


Rev. 时间 作者
0ce0178 2017-06-12 23:17:08 Robert Foss

Change #include guard to reflect filename

Signed-off-by: Robert Foss <robert.foss@collabora.com>

77f3299 2017-06-09 05:45:53 Rob Herring

Add libgralloc_drm library to export headers to mesa

Mesa mainline depends on libgralloc_drm shared library for importing
include paths. Add a dummy library for this purpose. This gets mesa master
building without any additional patches. Patches are still needed for
proper functioning.

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

7979b04 2017-04-14 03:54:36 Rob Herring

Fix missing 0 init of alloc_device_t

This fixes a crash of "dumpsys SurfaceFlinger" because the dump() pointer
is not NULL.

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

561c254 2017-04-14 03:53:26 Rob Herring

Quiet log prints changing them to verbose level

Quiet down various informational tracing messages switching them to
verbose log level

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

95c1cfb 2017-03-29 21:57:33 John Stultz

gbm_gralloc: Remove the invalid int cast and assignment in gbm_mod_perform()

In gbm_mod_perform(), for the cmd GRALLOC_MODULE_PERFORM_GET_USAGE,
the code takes the third argument, casts it as an int* and then writes
a zero into what the pointer points to.

The problem with this is that the third argument to that function is
actually a native_handle_t, so writing zero to the first int in that
structure ends up overwriting the version value, causing the
native_handle_t code to see the value as corrupt.

This results in lots of warnings and leaked fds.

Change-Id: If64770c164557b467f76ca97ddc182565730d394
Cc: Rob Herring <rob.herring@linaro.org>
Cc: Amit Pundir <amit.pundir@linaro.org>
Cc: Sumit Semwal <sumit.semwal@linaro.org>
Cc: Vishal Bhoj <vishal.bhoj@linaro.org>
Signed-off-by: John Stultz <john.stultz@linaro.org>
Signed-off-by: Rob Herring <robh@kernel.org>

e4017f7 2017-03-23 01:45:29 Rob Herring

Change module name to gralloc.gbm

Originally, the intent was to make GBM gralloc a drop-in replacement for
DRM gralloc, but this isn't really happening or needed. Change the name
so both can coexist.

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

640b8f1 2016-12-14 00:44:56 Rob Herring

Fix mapping for non-zero starting coordinates

While the gralloc API allows for specifying the starting coordinates (L,T),
it seems this doesn't really work. No other gralloc implementations found
use the rectangle bounds. Not exactly sure how this ever worked, but it
broke recently with AOSP master.

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

ff66db2 2016-12-14 00:43:50 Rob Herring

Add YV12 pixel format support

GBM doesn't support YV12 and we need a single buffer, so request GR88 from
GBM instead and adjust the width and height. GR88 also ensures (hopefully)
that the GPU texture alignment requirements are met.

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

2a8002b 2016-12-14 00:43:50 Rob Herring

Remove unused gralloc_drm_handle_t::name

Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
[robh: keep the name member for now for ABI/API compatibility with mesa]
Signed-off-by: Rob Herring <robh@kernel.org>

2df5343 2016-12-14 00:43:50 Emil Velikov


Using 0x5f47424d ("_GBM") is less likely to colide than the generic

Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>

46983bb 2016-12-14 00:43:49 Emil Velikov

Open the device node with O_CLOEXEC

Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
Not 100% sure it is supported on Android.

128f827 2016-12-14 00:43:49 Emil Velikov

Don't leak the FD in the gbm_dev_create error path

Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>

2375135 2016-12-14 00:43:49 Emil Velikov

Kill off unused variable

Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>

78e8025 2016-10-26 06:52:01 Rob Herring

Merge pull request #2 from robertfoss/master

GRALLOC_MODULE_PERFORM_GET_USAGE stub and compiler warning fix

7c5db46 2016-10-26 06:35:46 Robert Foss


This implements an initial stub for GRALLOC_MODULE_PERFORM_GET_USAGE

Signed-off-by: Robert Foss <robert.foss@collabora.com>

eab9ec3 2016-10-26 06:35:41 Robert Foss

Silence compiler type narrowing errors

Add static_cast to op, to prevent compiler warnings.

Signed-off-by: Robert Foss <robert.foss@collabora.com>

c51c10f 2016-06-02 06:30:34 Rob Herring

Fix RGB565 pixel format type

The component ordering was wrong causing GBM allocation failures.

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

f4a52c3 2016-04-23 02:54:14 Rob Herring

Clean-up of unused code

Remove some unused code throwing warnings.

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

cfc6f06 2016-04-23 02:52:45 Rob Herring

gbm_map: update to revised gbm_bo_map API

Add stride return parameter and properly pass usage flags.

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

2004d79 2016-04-23 02:50:35 Rob Herring

Update usage flag handling

Add missing support for GRALLOC_USAGE_SW_READ_OFTEN,
GRALLOC_USAGE_CURSOR usage flags mapping them to GBM flags.

For now, cursor flag is commented out because the Android side doesn't seem
to honor a larger stride.

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

f6a3358 2016-04-02 05:32:25 Rob Herring

Initial GBM based gralloc

Based on drm_gralloc. Some remants of drm_gralloc remain to be
compatible with mesa and drm_hwcomposer.

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