aboutsummaryrefslogtreecommitdiff
path: root/mesalib/src/mesa/program/prog_print.c
diff options
context:
space:
mode:
Diffstat (limited to 'mesalib/src/mesa/program/prog_print.c')
-rw-r--r--mesalib/src/mesa/program/prog_print.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/mesalib/src/mesa/program/prog_print.c b/mesalib/src/mesa/program/prog_print.c
index 02ba01eca..4a5c1c1fb 100644
--- a/mesalib/src/mesa/program/prog_print.c
+++ b/mesalib/src/mesa/program/prog_print.c
@@ -1021,6 +1021,9 @@ _mesa_write_shader_to_file(const struct gl_shader *shader)
case MESA_SHADER_GEOMETRY:
type = "geom";
break;
+ case MESA_SHADER_COMPUTE:
+ type = "comp";
+ break;
}
_mesa_snprintf(filename, sizeof(filename), "shader_%u.%s", shader->Name, type);