radv: allow to emit PS_DONE/CS_DONE with RELEASE_MEM
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Fri, 12 Jul 2019 16:12:33 +0000 (18:12 +0200)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Tue, 16 Jul 2019 09:16:55 +0000 (11:16 +0200)
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Dave Airlie <airlied@redhat.com>
src/amd/vulkan/si_cmd_buffer.c

index e996fa250a931a1b9458006b6f569387fc782669..e7e2cf9ccafecd5c1190a22847e50e6908ba1d9d 100644 (file)
@@ -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);