From: Samuel Pitoiset Date: Thu, 3 Aug 2023 13:09:05 +0000 (+0200) Subject: radv: remove redundant check in radv_cmd_buffer_after_draw() X-Git-Tag: upstream/23.3.3~4656 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b56c2885890b6aca39dbdb65229f06acaf0e9560;p=platform%2Fupstream%2Fmesa.git radv: remove redundant check in radv_cmd_buffer_after_draw() RADV_CMD_FLAG_PS_PARTIAL_FLUSH is only used for draws with RADV_DEBUG=syncshaders, which implies a valid graphics pipeline. Signed-off-by: Samuel Pitoiset Part-of: --- diff --git a/src/amd/vulkan/radv_cmd_buffer.c b/src/amd/vulkan/radv_cmd_buffer.c index 01f1fc3..53c9640 100644 --- a/src/amd/vulkan/radv_cmd_buffer.c +++ b/src/amd/vulkan/radv_cmd_buffer.c @@ -731,8 +731,7 @@ radv_cmd_buffer_after_draw(struct radv_cmd_buffer *cmd_buffer, enum radv_cmd_flu radv_cmd_buffer_uses_mec(cmd_buffer), flags, &sqtt_flush_bits, cmd_buffer->gfx9_eop_bug_va); - if (cmd_buffer->state.graphics_pipeline && (flags & RADV_CMD_FLAG_PS_PARTIAL_FLUSH) && - radv_cmdbuf_has_stage(cmd_buffer, MESA_SHADER_TASK)) { + if ((flags & RADV_CMD_FLAG_PS_PARTIAL_FLUSH) && radv_cmdbuf_has_stage(cmd_buffer, MESA_SHADER_TASK)) { /* Force wait for compute engines to be idle on the internal cmdbuf. */ si_cs_emit_cache_flush(device->ws, cmd_buffer->gang.cs, device->physical_device->rad_info.gfx_level, NULL, 0, true, RADV_CMD_FLAG_CS_PARTIAL_FLUSH, &sqtt_flush_bits, 0);