To RADV_SHADER_QUERY_GS_PRIM_EMIT_OFFSET.
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24231>
break;
}
case nir_intrinsic_atomic_add_gs_emit_prim_count_amd:
- nir_gds_atomic_add_amd(b, 32, intrin->src[0].ssa, nir_imm_int(b, RADV_SHADER_QUERY_PIPELINE_STAT_OFFSET),
+ nir_gds_atomic_add_amd(b, 32, intrin->src[0].ssa, nir_imm_int(b, RADV_SHADER_QUERY_GS_PRIM_EMIT_OFFSET),
nir_imm_int(b, 0x100));
break;
case nir_intrinsic_atomic_add_gen_prim_count_amd:
/* Shader GDS counters:
* offset 0| 4| 8|12 - reserved for NGG streamout counters
- * offset 16 - pipeline statistics counter for all streams
+ * offset 16 - number of primitives generated by geometry shader invocations
* offset 20|24|28|32 - generated primitive counter for stream 0|1|2|3
* offset 36|40|44|48 - written primitive counter for stream 0|1|2|3
*/
-#define RADV_SHADER_QUERY_PIPELINE_STAT_OFFSET 16
+#define RADV_SHADER_QUERY_GS_PRIM_EMIT_OFFSET 16
#define RADV_SHADER_QUERY_PRIM_GEN_OFFSET(stream) (20 + stream * 4)
#define RADV_SHADER_QUERY_PRIM_XFB_OFFSET(stream) (36 + stream * 4)
va += gs_prim_offset;
/* pipeline statistics counter for all streams */
- gfx10_copy_gds_query(cmd_buffer, RADV_SHADER_QUERY_PIPELINE_STAT_OFFSET, va);
+ gfx10_copy_gds_query(cmd_buffer, RADV_SHADER_QUERY_GS_PRIM_EMIT_OFFSET, va);
/* Record that the command buffer needs GDS. */
cmd_buffer->gds_needed = true;
va += gs_prim_offset;
/* pipeline statistics counter for all streams */
- gfx10_copy_gds_query(cmd_buffer, RADV_SHADER_QUERY_PIPELINE_STAT_OFFSET, va);
+ gfx10_copy_gds_query(cmd_buffer, RADV_SHADER_QUERY_GS_PRIM_EMIT_OFFSET, va);
cmd_buffer->state.active_pipeline_gds_queries--;