[Mesa-dev] [PATCH 00/10] DRI interface, gallium: User-specified transfer stride
Marek Olšák
maraeo at gmail.com
Wed Apr 25 21:16:21 UTC 2018
Hi,
This feature is for gralloc, which requires drivers to be able to map
an image with a stride of its own choosing, which is usually the same
as the image stride. This is a very silly feature that probably comes
from designing around mobile GPUs, and must be emulated on everything
else.
GCN is pretty limited here. A 16x16 tiled image can have a stride of 16
because it's tiled, but the stride of a linear mapping of that image
will be 64 on <= Polaris, or 256 on >= Vega.
The hardware doesn't have the capability to give you a stride that is
not a multiple of 64 or 256, so gralloc will have to deal with it.
Nicolai wrote the first 6 commits. I added the last 4.
(so I'll put my Rb on the first 6)
Please review,
Thanks,
Marek
More information about the mesa-dev
mailing list