Module: Mesa
Branch: main
Commit: 2cc3288089707fe4f8615c45051d122ddc8c5fad
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=2cc3288089707fe4f8615c45051d122ddc8c5fad

Author: Samuel Pitoiset <[email protected]>
Date:   Tue Sep 19 14:27:01 2023 +0200

radv: mark GDS as needed for XFB queries with NGG streamout on GFX11

This doesn't fix anything because gds_needed should already be TRUE
because it's initialized at pipeline bind time, but this will be needed
for skipping GDS allocation on GFX11.

Signed-off-by: Samuel Pitoiset <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25284>

---

 src/amd/vulkan/radv_query.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/amd/vulkan/radv_query.c b/src/amd/vulkan/radv_query.c
index 25184a27fe5..0e78b5a030e 100644
--- a/src/amd/vulkan/radv_query.c
+++ b/src/amd/vulkan/radv_query.c
@@ -1782,6 +1782,9 @@ emit_begin_query(struct radv_cmd_buffer *cmd_buffer, 
struct radv_query_pool *poo
          gfx10_copy_gds_query(cmd_buffer, 
RADV_SHADER_QUERY_PRIM_XFB_OFFSET(index), va + 8);
          radv_emit_write_data_imm(cs, V_370_ME, va + 12, 0x80000000);
 
+         /* Record that the command buffer needs GDS. */
+         cmd_buffer->gds_needed = true;
+
          if (!cmd_buffer->state.active_prims_xfb_gds_queries)
             cmd_buffer->state.dirty |= RADV_CMD_DIRTY_SHADER_QUERY;
 

Reply via email to