radeonsi: handle SI_FORCE_FAMILY early
authorMarek Olšák <marek.olsak@amd.com>
Fri, 20 Jul 2018 02:44:27 +0000 (22:44 -0400)
committerMarek Olšák <marek.olsak@amd.com>
Tue, 24 Jul 2018 18:21:29 +0000 (14:21 -0400)
before LLVM target machines are created

src/gallium/drivers/radeonsi/si_pipe.c

index 9823ddbaf83fe1bc0394a20096cb666dc4ef7401..9e3a579d7439900c37268845a771b68ea68a4b92 100644 (file)
@@ -791,6 +791,7 @@ struct pipe_screen *radeonsi_screen_create(struct radeon_winsys *ws,
 
        sscreen->ws = ws;
        ws->query_info(ws, &sscreen->info);
+       si_handle_env_var_force_family(sscreen);
 
        sscreen->debug_flags = debug_get_flags_option("R600_DEBUG",
                                                        debug_options, 0);
@@ -880,8 +881,6 @@ struct pipe_screen *radeonsi_screen_create(struct radeon_winsys *ws,
               return NULL;
        }
 
-       si_handle_env_var_force_family(sscreen);
-
        if (!debug_get_bool_option("RADEON_DISABLE_PERFCOUNTERS", false))
                si_init_perfcounters(sscreen);