panfrost: Remove shader dump
authorAlyssa Rosenzweig <alyssa@rosenzweig.io>
Tue, 30 Apr 2019 01:54:27 +0000 (01:54 +0000)
committerAlyssa Rosenzweig <alyssa@rosenzweig.io>
Wed, 1 May 2019 23:20:48 +0000 (23:20 +0000)
Redundant via the midgard shader dump.

Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
src/gallium/drivers/panfrost/pan_blend_shaders.c
src/gallium/drivers/panfrost/pan_screen.c
src/gallium/drivers/panfrost/pan_util.h
src/gallium/drivers/panfrost/pan_wallpaper.c

index fadcdecb044842a8cd19d586a26a6b73b5cdb29b..5367b7ccf5e40d73383816c505cc2beb2eb46241 100644 (file)
@@ -131,15 +131,11 @@ panfrost_make_blend_shader(struct panfrost_context *ctx, struct panfrost_blend_s
         /* Build a trivial blend shader */
         nir_store_var(b, c_out, nir_blending_f(blend, b, s_src, s_dst, s_con), 0xFF);
 
-       if (pan_debug & PAN_DBG_SHADERS)
-               nir_print_shader(shader, stdout);
-
         /* Compile the built shader */
 
         midgard_program program;
         midgard_compile_shader_nir(shader, &program, true);
 
-
         /* Upload the shader */
 
         int size = program.compiled.size;
index 5dddb801578c5c0df21b006a472aeb1427de5b32..4f23dd5cdf06af7cc54360525040137d42601b7e 100644 (file)
@@ -54,7 +54,6 @@
 
 static const struct debug_named_value debug_options[] = {
        {"msgs",      PAN_DBG_MSGS,     "Print debug messages"},
-       {"shaders",   PAN_DBG_SHADERS,  "Dump shaders in NIR"},
        DEBUG_NAMED_VALUE_END
 };
 
index 35d95d887c077d6b74ef7edd6e247f0feb971d07..c467a35176fbc272dca6318f9faf6cdee0b0600b 100644 (file)
@@ -29,7 +29,6 @@
 #define PAN_UTIL_H
 
 #define PAN_DBG_MSGS           0x0001
-#define PAN_DBG_SHADERS                0x0002
 
 extern int pan_debug;
 
index b402519a7673491ebbc348bfde5dc6b7cf7f6e77..ac77ad089bc1d5deb22ccf7aaed0e73e9d164bf1 100644 (file)
@@ -79,9 +79,6 @@ panfrost_build_wallpaper_program()
 
         nir_store_var(b, c_out, texel, 0xFF);
 
-       if (pan_debug & PAN_DBG_SHADERS)
-               nir_print_shader(shader, stdout);
-
         return shader;
 }