radv: exclude perf counters for SQTT also on GFX10.3

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9300>
This commit is contained in:
Samuel Pitoiset 2021-02-26 16:36:39 +01:00 committed by Marge Bot
parent 859dbf953d
commit 6b53f7f969
1 changed files with 4 additions and 2 deletions

View File

@ -75,8 +75,10 @@ radv_emit_thread_trace_start(struct radv_device *device,
V_008D18_REG_INCLUDE_CONTEXT |
V_008D18_REG_INCLUDE_CONFIG);
if (device->physical_device->rad_info.chip_class < GFX10_3)
thread_trace_token_mask |= S_008D18_TOKEN_EXCLUDE(V_008D18_TOKEN_EXCLUDE_PERF);
/* Performance counters with SQTT are considered
* deprecated.
*/
thread_trace_token_mask |= S_008D18_TOKEN_EXCLUDE(V_008D18_TOKEN_EXCLUDE_PERF);
radeon_set_privileged_config_reg(cs, R_008D18_SQ_THREAD_TRACE_TOKEN_MASK,
thread_trace_token_mask);