Mesa (master): r600g: Honour legacy debugging environment variables

Michel Dänzer daenzer at kemper.freedesktop.org
Fri Mar 22 09:36:49 UTC 2013


Module: Mesa
Branch: master
Commit: 31009b45213ae9efab6af9d8efcc061194919b12
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=31009b45213ae9efab6af9d8efcc061194919b12

Author: Michel Dänzer <michel.daenzer at amd.com>
Date:   Thu Mar 21 17:56:52 2013 +0100

r600g: Honour legacy debugging environment variables

This helps minimize confusion / effort when moving between branches or
helping others.

Reviewed-by: Alex Deucher <alexander.deucher at amd.com>
Reviewed-by: Marek Olšák <maraeo at gmail.com>

---

 src/gallium/drivers/r600/r600_pipe.c |   10 ++++++++++
 1 files changed, 10 insertions(+), 0 deletions(-)

diff --git a/src/gallium/drivers/r600/r600_pipe.c b/src/gallium/drivers/r600/r600_pipe.c
index 9ed8814..7a84f3d 100644
--- a/src/gallium/drivers/r600/r600_pipe.c
+++ b/src/gallium/drivers/r600/r600_pipe.c
@@ -1088,6 +1088,16 @@ struct pipe_screen *r600_screen_create(struct radeon_winsys *ws)
 	ws->query_info(ws, &rscreen->info);
 
 	rscreen->debug_flags = debug_get_flags_option("R600_DEBUG", debug_options, 0);
+	if (debug_get_bool_option("R600_DEBUG_COMPUTE", FALSE))
+		rscreen->debug_flags |= DBG_COMPUTE;
+	if (debug_get_bool_option("R600_DUMP_SHADERS", FALSE))
+		rscreen->debug_flags |= DBG_FS | DBG_VS | DBG_GS | DBG_PS | DBG_CS;
+	if (!debug_get_bool_option("R600_HYPERZ", TRUE))
+		rscreen->debug_flags |= DBG_NO_HYPERZ;
+	if (!debug_get_bool_option("R600_LLVM", TRUE))
+		rscreen->debug_flags |= DBG_NO_LLVM;
+	if (debug_get_bool_option("R600_PRINT_TEXDEPTH", FALSE))
+		rscreen->debug_flags |= DBG_TEX_DEPTH;
 	rscreen->family = rscreen->info.family;
 	rscreen->chip_class = rscreen->info.chip_class;
 




More information about the mesa-commit mailing list