From 1585b4584d856981be1ec540cb9582dd77e9d318 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Ol=C5=A1=C3=A1k?= Date: Sat, 22 Jan 2022 10:02:19 -0500 Subject: [PATCH] radeonsi: document an unexpected behavior of PS_DONE Reviewed-by: Pierre-Eric Pelloux-Prayer Part-of: --- src/gallium/drivers/radeonsi/si_state_streamout.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/gallium/drivers/radeonsi/si_state_streamout.c b/src/gallium/drivers/radeonsi/si_state_streamout.c index 9167171691e..b5557610947 100644 --- a/src/gallium/drivers/radeonsi/si_state_streamout.c +++ b/src/gallium/drivers/radeonsi/si_state_streamout.c @@ -264,6 +264,7 @@ static void gfx10_emit_streamout_end(struct si_context *sctx) uint64_t va = t[i]->buf_filled_size->gpu_address + t[i]->buf_filled_size_offset; + /* TODO: PS_DONE doesn't ensure completion of VS if there are no PS waves. */ si_cp_release_mem(sctx, &sctx->gfx_cs, V_028A90_PS_DONE, 0, EOP_DST_SEL_TC_L2, EOP_INT_SEL_SEND_DATA_AFTER_WR_CONFIRM, EOP_DATA_SEL_GDS, t[i]->buf_filled_size, va, EOP_DATA_GDS(i, 1), 0);