Skip to content

radv: Fix shader mask for SQ_WGP SPM counters

Josh Simmons requested to merge jsimmons1/mesa:radv_fix_sq_wgp_spm_counters into main

My GFX11 laptop wasn't showing any cache counters in RGP captures, which after investigation turned out to be because we're not setting the shader mask for the new SQ_WGP counters, which re-uses the old R_036780_SQ_PERFCOUNTER_CTRL register. For now just use the existing shader mask for both registers.

This CL matches PAL behavior. https://github.com/GPUOpen-Drivers/pal/blob/695337aa8131913d883ff15787cd75f6fcb11229/src/core/hw/gfxip/gfx9/gfx9PerfExperiment.cpp#L2107-L2110

radv: Fix WGP mask for SQ_WGP SPM counters

Signed-off-by: Josh Simmons <josh@nega.tv>

Merge request reports