mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 18:18:06 +02:00
radeonsi: set use_aco when no llvm available
Reviewed-by: Marek Olšák <marek.olsak@amd.com> Signed-off-by: Qiang Yu <yuq825@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25632>
This commit is contained in:
parent
18e19a53e9
commit
c2e2a78c72
1 changed files with 14 additions and 2 deletions
|
|
@ -25,6 +25,8 @@
|
|||
#include "vl/vl_decoder.h"
|
||||
#include "si_utrace.h"
|
||||
|
||||
#include "aco_interface.h"
|
||||
|
||||
#ifdef LLVM_AVAILABLE
|
||||
#include "ac_llvm_util.h"
|
||||
#endif
|
||||
|
|
@ -1200,8 +1202,18 @@ static struct pipe_screen *radeonsi_screen_create_impl(struct radeon_winsys *ws,
|
|||
sscreen->info.has_dedicated_vram;
|
||||
}
|
||||
|
||||
/* ACO does not support compute cards yet. */
|
||||
sscreen->use_aco = (sscreen->debug_flags & DBG(USE_ACO)) && sscreen->info.has_graphics;
|
||||
#ifdef LLVM_AVAILABLE
|
||||
sscreen->use_aco = (sscreen->debug_flags & DBG(USE_ACO));
|
||||
#else
|
||||
sscreen->use_aco = true;
|
||||
#endif
|
||||
|
||||
if (sscreen->use_aco && !aco_is_gpu_supported(&sscreen->info)) {
|
||||
fprintf(stderr, "radeonsi: ACO does not support this chip yet\n");
|
||||
FREE(sscreen->nir_options);
|
||||
FREE(sscreen);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
if (sscreen->debug_flags & DBG(NO_GFX))
|
||||
sscreen->info.has_graphics = false;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue