summaryrefslogtreecommitdiffstats
path: root/src/amd
diff options
context:
space:
mode:
authorSamuel Pitoiset <[email protected]>2019-07-12 18:12:33 +0200
committerSamuel Pitoiset <[email protected]>2019-07-16 11:16:55 +0200
commit3c6d6bd71f3ffb741538207f6eb6ee098218b2c3 (patch)
tree3cdbffee719e75ed2c1af42a70225852db54c6e5 /src/amd
parent219dc1b25ccacbd6c0d3db35c5284419319c3cb2 (diff)
radv: allow to emit PS_DONE/CS_DONE with RELEASE_MEM
Signed-off-by: Samuel Pitoiset <[email protected]> Reviewed-by: Dave Airlie <[email protected]>
Diffstat (limited to 'src/amd')
-rw-r--r--src/amd/vulkan/si_cmd_buffer.c3
1 files changed, 2 insertions, 1 deletions
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);