radeonsi: add AMD_DEBUG env var as an alternative to R600_DEBUG

Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
This commit is contained in:
Marek Olšák 2019-02-07 00:02:33 -05:00
parent 1b8983c25b
commit f8e4c9df47
1 changed files with 3 additions and 1 deletions

View File

@ -849,7 +849,9 @@ struct pipe_screen *radeonsi_screen_create(struct radeon_winsys *ws,
}
sscreen->debug_flags = debug_get_flags_option("R600_DEBUG",
debug_options, 0);
debug_options, 0);
sscreen->debug_flags |= debug_get_flags_option("AMD_DEBUG",
debug_options, 0);
/* Set functions first. */
sscreen->b.context_create = si_pipe_create_context;