mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-20 02:20:22 +01:00
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:
parent
cc5dd491ec
commit
619f009ff2
1 changed files with 1 additions and 1 deletions
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue