radeonsi: add AMD_DEBUG env var as an alternative to R600_DEBUG
authorMarek Olšák <marek.olsak@amd.com>
Thu, 7 Feb 2019 05:02:33 +0000 (00:02 -0500)
committerMarek Olšák <marek.olsak@amd.com>
Tue, 12 Feb 2019 18:08:54 +0000 (13:08 -0500)
Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
src/gallium/drivers/radeonsi/si_pipe.c

index c6f93e7..20767c8 100644 (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;