[1/2] radeonsi: add AMD_DEBUG env var as an alternative to R600_DEBUG

Submitted by Marek Olšák on Feb. 11, 2019, 8:26 p.m.

Details

Message ID 20190211202615.4950-1-maraeo@gmail.com
State New
Headers show
Series "Series without cover letter" ( rev: 1 ) in Mesa

Not browsing as part of any series.

Commit Message

Marek Olšák Feb. 11, 2019, 8:26 p.m.
From: Marek Olšák <marek.olsak@amd.com>

---
 src/gallium/drivers/radeonsi/si_pipe.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

Patch hide | download patch | download mbox

diff --git a/src/gallium/drivers/radeonsi/si_pipe.c b/src/gallium/drivers/radeonsi/si_pipe.c
index c6f93e7b15e..20767c806d2 100644
--- a/src/gallium/drivers/radeonsi/si_pipe.c
+++ b/src/gallium/drivers/radeonsi/si_pipe.c
@@ -842,21 +842,23 @@  struct pipe_screen *radeonsi_screen_create(struct radeon_winsys *ws,
 	if (sscreen->info.chip_class >= GFX9) {
 		sscreen->se_tile_repeat = 32 * sscreen->info.max_se;
 	} else {
 		ac_get_raster_config(&sscreen->info,
 				     &sscreen->pa_sc_raster_config,
 				     &sscreen->pa_sc_raster_config_1,
 				     &sscreen->se_tile_repeat);
 	}
 
 	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;
 	sscreen->b.destroy = si_destroy_screen;
 
 	si_init_screen_get_functions(sscreen);
 	si_init_screen_buffer_functions(sscreen);
 	si_init_screen_fence_functions(sscreen);
 	si_init_screen_state_functions(sscreen);
 	si_init_screen_texture_functions(sscreen);