| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
| |
This allows the GPU driver to optimize the buffer allocation.
Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
|
|
|
|
|
|
|
|
|
|
| |
Commit 4026744fcb31f1d27c1b32e6945aadd4da415c6d in mesa introduced an
updated `struct gbm_import_fd_modifier_data' with arrays for fds,
strides and offsets, instead of single values.
Fix just by specifying one single item in the arrays.
Signed-off-by: Aleksander Morgado <aleksander@aleksander.es>
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
| |
Signed-off-by: Robert Foss <robert.foss@collabora.com>
|
|
|
|
|
|
|
| |
This fixes issue where drm_hwcomposer carried a local definition
of this struct.
Signed-off-by: Robert Foss <robert.foss@collabora.com>
|
|
|
|
|
|
|
|
| |
Quiet down various informational tracing messages switching them to
verbose log level
Change-Id: I0a78a9bcb1f807dc2db060ab1551cd5f62fa3f2d
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>
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
| |
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>
|