| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
| |
Modifiers are used to describe buffer metadata like if and how they are
compressed or if tiling is used.
This is needed to allow different devices to communicate about buffers
that have these properties.
Signed-off-by: Robert Foss <robert.foss@collabora.com>
|
|
|
|
|
|
| |
Add description of the perform call GRALLOC_MODULE_PERFORM_GET_DRM_FD.
Signed-off-by: Robert Foss <robert.foss@collabora.com>
|
|
|
|
| |
Signed-off-by: Robert Foss <robert.foss@collabora.com>
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
| |
Quiet down various informational tracing messages switching them to
verbose log level
Change-Id: I0a78a9bcb1f807dc2db060ab1551cd5f62fa3f2d
Signed-off-by: Rob Herring <robh@kernel.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
| |
Using 0x5f47424d ("_GBM") is less likely to colide than the generic
0x12345678.
Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
|
|
|
|
|
|
| |
Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
---
Not 100% sure it is supported on Android.
|
|
|
|
| |
Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
|
|
|
|
| |
Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
|
|\
| |
| | |
GRALLOC_MODULE_PERFORM_GET_USAGE stub and compiler warning fix
|
| |
| |
| |
| |
| |
| | |
This implements an initial stub for GRALLOC_MODULE_PERFORM_GET_USAGE
Signed-off-by: Robert Foss <robert.foss@collabora.com>
|
|/
|
|
|
|
| |
Add static_cast to op, to prevent compiler warnings.
Signed-off-by: Robert Foss <robert.foss@collabora.com>
|
|
|
|
|
|
| |
The component ordering was wrong causing GBM allocation failures.
Signed-off-by: Rob Herring <robh@kernel.org>
|
|
|
|
|
|
| |
Remove some unused code throwing warnings.
Signed-off-by: Rob Herring <robh@kernel.org>
|
|
|
|
|
|
| |
Add stride return parameter and properly pass usage flags.
Signed-off-by: Rob Herring <robh@kernel.org>
|
|
|
|
|
|
|
|
|
|
|
| |
Add missing support for GRALLOC_USAGE_SW_READ_OFTEN,
GRALLOC_USAGE_SW_WRITE_OFTEN, GRALLOC_USAGE_HW_TEXTURE, and
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>
|
|
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>
|