mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-04 05:28:05 +02:00
radeonsi: Fix unused variable when LLVM is not used for AMD.
use_aco is only used when define AMD_LLVM_AVAILABLE is set. Inline it into its only user. Reviewed-by: Marek Olšák <marek.olsak@amd.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/29862>
This commit is contained in:
parent
5cb15a6c67
commit
3274af99bf
1 changed files with 5 additions and 6 deletions
|
|
@ -3089,14 +3089,13 @@ si_get_shader_part(struct si_screen *sscreen, struct si_shader_part **list,
|
|||
result = CALLOC_STRUCT(si_shader_part);
|
||||
result->key = *key;
|
||||
|
||||
ASSERTED bool use_aco = sscreen->use_aco ||
|
||||
(stage == MESA_SHADER_FRAGMENT &&
|
||||
((prolog && key->ps_prolog.use_aco) ||
|
||||
(!prolog && key->ps_epilog.use_aco)));
|
||||
|
||||
bool ok =
|
||||
#if AMD_LLVM_AVAILABLE
|
||||
!use_aco ? si_llvm_build_shader_part(sscreen, stage, prolog, compiler, debug, name, result) :
|
||||
!(sscreen->use_aco ||
|
||||
(stage == MESA_SHADER_FRAGMENT &&
|
||||
((prolog && key->ps_prolog.use_aco) ||
|
||||
(!prolog && key->ps_epilog.use_aco)))) ?
|
||||
si_llvm_build_shader_part(sscreen, stage, prolog, compiler, debug, name, result) :
|
||||
#endif
|
||||
si_aco_build_shader_part(sscreen, stage, prolog, debug, name, result);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue