From de542784f8ccd2c7511572dedbf0e91a155b193e Mon Sep 17 00:00:00 2001 From: Samuel Pitoiset Date: Wed, 17 Feb 2021 10:28:44 +0100 Subject: [PATCH] radv: make sure to allocate enough space when emitting SQTT userdata If we emit a lot of markers, we might reach the limit easily. Signed-off-by: Samuel Pitoiset Reviewed-by: Bas Nieuwenhuizen Part-of: --- src/amd/vulkan/radv_sqtt.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/amd/vulkan/radv_sqtt.c b/src/amd/vulkan/radv_sqtt.c index 12f32ca0d6f..35de6e6976c 100644 --- a/src/amd/vulkan/radv_sqtt.c +++ b/src/amd/vulkan/radv_sqtt.c @@ -327,6 +327,8 @@ radv_emit_thread_trace_userdata(const struct radv_device *device, while (num_dwords > 0) { uint32_t count = MIN2(num_dwords, 2); + radeon_check_space(device->ws, cs, 2 + count); + /* Without the perfctr bit the CP might not always pass the * write on correctly. */ if (device->physical_device->rad_info.chip_class >= GFX10)