Module: Mesa Branch: main Commit: 3ab6eceac0d656606720eccc394ed70108bd08b3 URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=3ab6eceac0d656606720eccc394ed70108bd08b3
Author: Iago Toral Quiroga <[email protected]> Date: Wed Jul 27 09:53:45 2022 +0200 v3dv: fix tile state allocation If we had decided that we only need one layer worth of tile state we should actually only allocate one layer. Reviewed-by: Alejandro PiƱeiro <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17854> --- src/broadcom/vulkan/v3dv_cmd_buffer.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/broadcom/vulkan/v3dv_cmd_buffer.c b/src/broadcom/vulkan/v3dv_cmd_buffer.c index 4d6ef4d5df5..93c332a4068 100644 --- a/src/broadcom/vulkan/v3dv_cmd_buffer.c +++ b/src/broadcom/vulkan/v3dv_cmd_buffer.c @@ -446,7 +446,7 @@ v3dv_job_start_frame(struct v3dv_job *job, /* The PTB will request the tile alloc initial size per tile at start * of tile binning. */ - uint32_t tile_alloc_size = 64 * tiling->layers * + uint32_t tile_alloc_size = 64 * layers * tiling->draw_tiles_x * tiling->draw_tiles_y; @@ -475,7 +475,7 @@ v3dv_job_start_frame(struct v3dv_job *job, v3dv_job_add_bo_unchecked(job, job->tile_alloc); const uint32_t tsda_per_tile_size = 256; - const uint32_t tile_state_size = tiling->layers * + const uint32_t tile_state_size = layers * tiling->draw_tiles_x * tiling->draw_tiles_y * tsda_per_tile_size;
