diff options
author | Samuel Pitoiset <[email protected]> | 2018-07-25 17:01:46 +0200 |
---|---|---|
committer | Samuel Pitoiset <[email protected]> | 2018-07-27 14:31:29 +0200 |
commit | df679b1643cdf7cb9110a7898cec7617f8154d2d (patch) | |
tree | 5c5a761f959e0a16c5232f1bbced62f0a6df51c7 /src | |
parent | c08ae911d9a6e4d327fd1fb5316edd093e8d245b (diff) |
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 <[email protected]>
Reviewed-by: Bas Nieuwenhuizen <[email protected]>
Diffstat (limited to 'src')
-rw-r--r-- | src/amd/vulkan/radv_cmd_buffer.c | 2 |
1 files changed, 2 insertions, 0 deletions
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, |