From: Samuel Pitoiset Date: Fri, 12 Jul 2019 16:12:33 +0000 (+0200) Subject: radv: allow to emit PS_DONE/CS_DONE with RELEASE_MEM X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=3c6d6bd71f3ffb741538207f6eb6ee098218b2c3;p=mesa.git radv: allow to emit PS_DONE/CS_DONE with RELEASE_MEM Signed-off-by: Samuel Pitoiset Reviewed-by: Dave Airlie --- diff --git a/src/amd/vulkan/si_cmd_buffer.c b/src/amd/vulkan/si_cmd_buffer.c index e996fa250a9..e7e2cf9ccaf 100644 --- a/src/amd/vulkan/si_cmd_buffer.c +++ b/src/amd/vulkan/si_cmd_buffer.c @@ -765,7 +765,8 @@ void si_cs_emit_write_event_eop(struct radeon_cmdbuf *cs, uint64_t gfx9_eop_bug_va) { unsigned op = EVENT_TYPE(event) | - EVENT_INDEX(5) | + EVENT_INDEX(event == V_028A90_CS_DONE || + event == V_028A90_PS_DONE ? 6 : 5) | event_flags; unsigned is_gfx8_mec = is_mec && chip_class < GFX9; unsigned sel = EOP_DATA_SEL(data_sel);