From 7be965bf1728c33125f2e6fb3d8e253da057bc83 Mon Sep 17 00:00:00 2001 From: Samuel Pitoiset Date: Mon, 9 Sep 2024 15:20:09 +0200 Subject: [PATCH] radv: stop allocating upload space for indirect descriptors with DGC The indirect descriptors are uploaded from the CPU and nothing needs to be allocated in the DGC buffer. Signed-off-by: Samuel Pitoiset Part-of: --- src/amd/vulkan/radv_device_generated_commands.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/amd/vulkan/radv_device_generated_commands.c b/src/amd/vulkan/radv_device_generated_commands.c index 210c620964e..9064e92eacf 100644 --- a/src/amd/vulkan/radv_device_generated_commands.c +++ b/src/amd/vulkan/radv_device_generated_commands.c @@ -92,9 +92,6 @@ radv_get_sequence_size_compute(const struct radv_indirect_command_layout *layout /* PKT3_SET_SH_REG for indirect descriptor sets pointer */ *cmd_size += 3 * 4; - - /* Reserve space for indirect pipelines because they might use indirect descriptor sets. */ - *upload_size += MAX_SETS * 4; } if (device->sqtt.bo) {