[Piglit] [PATCH] piglit_drm_dma_buf: fix the stride

Marek Olšák maraeo at gmail.com
Mon Jun 19 20:58:11 UTC 2017

On Mon, Jun 19, 2017 at 6:06 PM, Eric Anholt <eric at anholt.net> wrote:
> Marek Olšák <maraeo at gmail.com> writes:
>> From: Marek Olšák <marek.olsak at amd.com>
>> dst_stride is from gbm_bo_map (CPU mapping), but we need the real stride.
>> This fixes piglit DMABUF tests with tiled surfaces.
> If you also update the dst_strides used in buf->offset/stride fields of
> the switch (fourcc) down below, you can add:

I'll send out v2. It's more involved. I can fix some obvious things,
but I can't fix the function completely. The whole file assumes a
linear layout with an unaligned height, which is rare even for a
linear layout.


More information about the Piglit mailing list