freedreno/fdl: Set pitch for buffers

In the import path, we test pitch.  So if we are to be able to import
buffers, we should also set the pitch for buffers.

Signed-off-by: Rob Clark <rob.clark@oss.qualcomm.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37696>
This commit is contained in:
Rob Clark 2025-10-03 14:56:19 -07:00 committed by Marge Bot
parent 0922a0dd50
commit ffcb8d0b89

View file

@ -16,6 +16,7 @@ void
fdl_layout_buffer(struct fdl_layout *layout, uint32_t size)
{
layout->width0 = size;
layout->pitch0 = size;
layout->height0 = 1;
layout->depth0 = 1;
layout->cpp = 1;