radeonsi: fix AMD_DEBUG=usellvm
Some checks are pending
macOS-CI / macOS-CI (dri) (push) Waiting to run
macOS-CI / macOS-CI (xlib) (push) Waiting to run

It did nothing for streamout and blits.

Reviewed-by: Qiang Yu <yuq825@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35392>
This commit is contained in:
Marek Olšák 2025-06-02 10:04:15 -04:00 committed by Marge Bot
parent 906b2b36ee
commit a35a12dd38

View file

@ -375,12 +375,16 @@ void si_nir_scan_shader(struct si_screen *sscreen, struct nir_shader *nir,
}
}
nir->info.use_aco_amd = aco_is_gpu_supported(&sscreen->info) &&
sscreen->info.has_image_opcodes &&
(sscreen->use_aco || nir->info.use_aco_amd || force_use_aco ||
/* Use ACO for streamout on gfx12 because it's faster. */
(sscreen->info.gfx_level >= GFX12 && nir->xfb_info &&
nir->xfb_info->output_count));
if (sscreen->debug_flags & DBG(USE_LLVM)) {
nir->info.use_aco_amd = false;
} else {
nir->info.use_aco_amd = aco_is_gpu_supported(&sscreen->info) &&
sscreen->info.has_image_opcodes &&
(sscreen->use_aco || nir->info.use_aco_amd || force_use_aco ||
/* Use ACO for streamout on gfx12 because it's faster. */
(sscreen->info.gfx_level >= GFX12 && nir->xfb_info &&
nir->xfb_info->output_count));
}
#else
assert(aco_is_gpu_supported(&sscreen->info));
nir->info.use_aco_amd = true;