radv: only enable SQTT for SE0 on GFX11

For weird reasons, the hardware doesn't return any data for other SEs.
RadeonSI is also affected by the same issue, enable only SE0 for now.

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20338>
This commit is contained in:
Samuel Pitoiset
2022-12-15 15:39:44 +01:00
committed by Marge Bot
parent ad4ad2ba84
commit c2bc4aff54
+4
View File
@@ -38,6 +38,10 @@ radv_is_instruction_timing_enabled(void)
static bool
radv_se_is_disabled(struct radv_device *device, unsigned se)
{
/* FIXME: SQTT only works on SE0 for some unknown reasons. */
if (device->physical_device->rad_info.gfx_level == GFX11 && se != 0)
return true;
/* No active CU on the SE means it is disabled. */
return device->physical_device->rad_info.cu_mask[se][0] == 0;
}