[Mesa-dev] [PATCH 3/6] radv: allow to emit PS_DONE/CS_DONE with RELEASE_MEM
Samuel Pitoiset
samuel.pitoiset at gmail.com
Fri Jul 12 16:12:33 UTC 2019
Signed-off-by: Samuel Pitoiset <samuel.pitoiset at gmail.com>
---
src/amd/vulkan/si_cmd_buffer.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/amd/vulkan/si_cmd_buffer.c b/src/amd/vulkan/si_cmd_buffer.c
index a832dbd89eb..089c7d861c8 100644
--- a/src/amd/vulkan/si_cmd_buffer.c
+++ b/src/amd/vulkan/si_cmd_buffer.c
@@ -741,7 +741,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);
--
2.22.0
More information about the mesa-dev
mailing list