radeonsi: handle SI_FORCE_FAMILY early

before LLVM target machines are created
This commit is contained in:
Marek Olšák 2018-07-19 22:44:27 -04:00
parent 9ebd8372b9
commit 98ab24fdab
1 changed files with 1 additions and 2 deletions

View 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);