From: Samuel Pitoiset Date: Wed, 25 Jul 2018 15:01:46 +0000 (+0200) Subject: radv: allocate enough space in radv_cmd_buffer_after_draw() X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=df679b1643cdf7cb9110a7898cec7617f8154d2d;p=mesa.git radv: allocate enough space in radv_cmd_buffer_after_draw() The driver might emit up to 4 dwords when RADV_TRACE_FILE is used. Signed-off-by: Samuel Pitoiset Reviewed-by: Bas Nieuwenhuizen --- diff --git a/src/amd/vulkan/radv_cmd_buffer.c b/src/amd/vulkan/radv_cmd_buffer.c index 2fb64d91d8e..e0222d0b50b 100644 --- a/src/amd/vulkan/radv_cmd_buffer.c +++ b/src/amd/vulkan/radv_cmd_buffer.c @@ -482,6 +482,8 @@ radv_cmd_buffer_after_draw(struct radv_cmd_buffer *cmd_buffer, ptr = &cmd_buffer->gfx9_fence_idx; } + radeon_check_space(cmd_buffer->device->ws, cmd_buffer->cs, 4); + /* Force wait for graphics or compute engines to be idle. */ si_cs_emit_cache_flush(cmd_buffer->cs, cmd_buffer->device->physical_device->rad_info.chip_class,