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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user