mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-20 16:00:08 +01:00
radeonsi: fix AMD_DEBUG=usellvm
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:
parent
906b2b36ee
commit
a35a12dd38
1 changed files with 10 additions and 6 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue