From 3e544932658d87beb661a3e762621264733171df Mon Sep 17 00:00:00 2001 From: David Airlie Date: Tue, 15 Aug 2017 14:02:43 +1000 Subject: [PATCH] radv: add gfx9 scissor workaround Reviewed-by: Bas Nieuwenhuizen Cc: 17.2 --- src/amd/vulkan/radv_cmd_buffer.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/amd/vulkan/radv_cmd_buffer.c b/src/amd/vulkan/radv_cmd_buffer.c index fbbb1b1c68e..1e0e3668209 100644 --- a/src/amd/vulkan/radv_cmd_buffer.c +++ b/src/amd/vulkan/radv_cmd_buffer.c @@ -1010,6 +1010,11 @@ static void radv_emit_scissor(struct radv_cmd_buffer *cmd_buffer) { uint32_t count = cmd_buffer->state.dynamic.scissor.count; + + if (cmd_buffer->device->physical_device->rad_info.chip_class >= GFX9) { + cmd_buffer->state.flush_bits |= RADV_CMD_FLAG_PS_PARTIAL_FLUSH; + si_emit_cache_flush(cmd_buffer); + } si_write_scissors(cmd_buffer->cs, 0, count, cmd_buffer->state.dynamic.scissor.scissors, cmd_buffer->state.dynamic.viewport.viewports, -- 2.30.2