[Mesa-dev] [PATCH 1/3] panfrost: Remove shader dump
Alyssa Rosenzweig
alyssa at rosenzweig.io
Wed May 1 03:42:36 UTC 2019
Redundant via the midgard shader dump.
Signed-off-by: Alyssa Rosenzweig <alyssa at rosenzweig.io>
---
src/gallium/drivers/panfrost/pan_blend_shaders.c | 4 ----
src/gallium/drivers/panfrost/pan_screen.c | 1 -
src/gallium/drivers/panfrost/pan_util.h | 1 -
src/gallium/drivers/panfrost/pan_wallpaper.c | 3 ---
4 files changed, 9 deletions(-)
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;
}
--
2.20.1
More information about the mesa-dev
mailing list