summaryrefslogtreecommitdiffstats
path: root/src/gallium
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2018-09-16 21:18:47 -0400
committerMarek Olšák <[email protected]>2018-10-02 12:21:49 -0400
commit2fd58d8eb206a35ace797f8ba9f8b21e87648443 (patch)
treebb06825bf9ca77b51ceb51f1c769bf192a031507 /src/gallium
parent0b062f0419a06c703cbd78f916c64628d344b1be (diff)
radeonsi: initialize ac_gpu_info::name when using SI_FORCE_FAMILY
so that it's not NULL when loading radeonsi and a GCN GPU is not present in the system.
Diffstat (limited to 'src/gallium')
-rw-r--r--src/gallium/drivers/radeonsi/si_pipe.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gallium/drivers/radeonsi/si_pipe.c b/src/gallium/drivers/radeonsi/si_pipe.c
index 82af9dd1de7..aa5340668f9 100644
--- a/src/gallium/drivers/radeonsi/si_pipe.c
+++ b/src/gallium/drivers/radeonsi/si_pipe.c
@@ -710,6 +710,7 @@ static void si_handle_env_var_force_family(struct si_screen *sscreen)
if (!strcmp(family, ac_get_llvm_processor_name(i))) {
/* Override family and chip_class. */
sscreen->info.family = i;
+ sscreen->info.name = "GCN-NOOP";
if (i >= CHIP_VEGA10)
sscreen->info.chip_class = GFX9;