From: Alyssa Rosenzweig Date: Tue, 30 Apr 2019 01:54:27 +0000 (+0000) Subject: panfrost: Remove shader dump X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b304b30f2c6cc7d20ed615b27bf971bf8ca1445d;p=mesa.git panfrost: Remove shader dump Redundant via the midgard shader dump. Signed-off-by: Alyssa Rosenzweig --- diff --git a/src/gallium/drivers/panfrost/pan_blend_shaders.c b/src/gallium/drivers/panfrost/pan_blend_shaders.c index fadcdecb044..5367b7ccf5e 100644 --- a/src/gallium/drivers/panfrost/pan_blend_shaders.c +++ b/src/gallium/drivers/panfrost/pan_blend_shaders.c @@ -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; diff --git a/src/gallium/drivers/panfrost/pan_screen.c b/src/gallium/drivers/panfrost/pan_screen.c index 5dddb801578..4f23dd5cdf0 100644 --- a/src/gallium/drivers/panfrost/pan_screen.c +++ b/src/gallium/drivers/panfrost/pan_screen.c @@ -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 }; diff --git a/src/gallium/drivers/panfrost/pan_util.h b/src/gallium/drivers/panfrost/pan_util.h index 35d95d887c0..c467a35176f 100644 --- a/src/gallium/drivers/panfrost/pan_util.h +++ b/src/gallium/drivers/panfrost/pan_util.h @@ -29,7 +29,6 @@ #define PAN_UTIL_H #define PAN_DBG_MSGS 0x0001 -#define PAN_DBG_SHADERS 0x0002 extern int pan_debug; diff --git a/src/gallium/drivers/panfrost/pan_wallpaper.c b/src/gallium/drivers/panfrost/pan_wallpaper.c index b402519a767..ac77ad089bc 100644 --- a/src/gallium/drivers/panfrost/pan_wallpaper.c +++ b/src/gallium/drivers/panfrost/pan_wallpaper.c @@ -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; }