radeonsi/sqtt: simplify condition to determine if sqtt is on

We don't need to load screen->debug_flags because sctx->thread_trace
is already telling us if sqtt is enabled.
Furthermore we can perform this check only for GFX9 because sqtt
isn't supported  currently on older chips.

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18865>
This commit is contained in:
Pierre-Eric Pelloux-Prayer 2022-10-18 11:35:25 +02:00 committed by Marge Bot
parent cc5dd491ec
commit 619f009ff2

View file

@ -304,7 +304,7 @@ static bool si_update_shaders(struct si_context *sctx)
si_mark_atom_dirty(sctx, &sctx->atoms.s.msaa_sample_locs);
}
if (unlikely(sctx->screen->debug_flags & DBG(SQTT) && sctx->thread_trace)) {
if (GFX_VERSION >= GFX9 && unlikely(sctx->thread_trace)) {
/* Pretend the bound shaders form a vk pipeline. Include the scratch size in
* the hash calculation to force re-emitting the pipeline if the scratch bo
* changes.