freedreno: Don't call setup_slices for buffers

We already use fdl_layout_buffer() when the resource is allocated.  But
it was missed to convert fd_resource_resize().  Convert it so there is
no path into ->setup_slices() with something that is a buffer.

Signed-off-by: Rob Clark <rob.clark@oss.qualcomm.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36075>
This commit is contained in:
Rob Clark
2025-07-10 15:06:59 -07:00
committed by Marge Bot
parent d485c7b446
commit 43bd9082fa
@@ -1175,7 +1175,9 @@ fd_resource_resize(struct pipe_resource *prsc, uint32_t sz)
assert(prsc->bind == PIPE_BIND_QUERY_BUFFER);
prsc->width0 = sz;
realloc_bo(rsc, fd_screen(prsc->screen)->setup_slices(rsc));
fdl_layout_buffer(&rsc->layout, sz);
realloc_bo(rsc, rsc->layout.size);
}
static void