[Mesa-dev] [PATCH 02/10] dri_interface: add __DRI_IMAGE_TRANSFER_USER_STRIDE
Marek Olšák
maraeo at gmail.com
Thu Apr 26 22:08:03 UTC 2018
On Thu, Apr 26, 2018 at 2:40 PM, Gurchetan Singh <
gurchetansingh at chromium.org> wrote:
> On Thu, Apr 26, 2018 at 10:23 AM, Marek Olšák <maraeo at gmail.com> wrote:
> > Gurchetan, can you confirm that the stride returned at alloc() is only
> used
> > for CPU access and not for display programming?
>
> It really depends on how you couple your HWComposer and gralloc HALs
> together. For example, drm_hwcomposer calls drmModeAddFB2 from with
> the allocation time stride:
>
> https://anongit.freedesktop.org/git/drm_hwcomposer.git
>
> For the minigbm + wayland_hwcomposer use case, we have a
> GRALLOC_DRM_GET_STRIDE call that returns the allocation time pixel
> stride to the Wayland client.
>
> We could:
> - Return the stride that works for display with
> GRALLOC_DRM_GET_STRIDE
> - Return the stride that works for CPU access with the alloc() call.
>
> Just curious -- which Android app and/or test case is running into this
> issue?
>
There is some cros_gralloc test case that is failing, but nobody told me
which one. Can you have a look at the attached minigbm patch?
Marek
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/mesa-dev/attachments/20180426/e508e24f/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-amdgpu-always-set-the-CPU-stride-as-the-BO-stride.patch
Type: text/x-patch
Size: 1674 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/mesa-dev/attachments/20180426/e508e24f/attachment.bin>
More information about the mesa-dev
mailing list