From 619f009ff216b4e7fb1c689266e1da143ed48d76 Mon Sep 17 00:00:00 2001 From: Pierre-Eric Pelloux-Prayer Date: Tue, 18 Oct 2022 11:35:25 +0200 Subject: [PATCH] radeonsi/sqtt: simplify condition to determine if sqtt is on MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Part-of: --- src/gallium/drivers/radeonsi/si_state_draw.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gallium/drivers/radeonsi/si_state_draw.cpp b/src/gallium/drivers/radeonsi/si_state_draw.cpp index 2c4436985ea..128a5657aad 100644 --- a/src/gallium/drivers/radeonsi/si_state_draw.cpp +++ b/src/gallium/drivers/radeonsi/si_state_draw.cpp @@ -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.