[Mesa-dev] [PATCH v4 01/10] mesa/program: Add missing file types to _mesa_register_file_name
Gert Wollny
gw.fossdev at gmail.com
Tue Dec 12 13:40:51 UTC 2017
This is useful for debugging in glsl_to_tgsi.
Signed-off-by: Gert Wollny <gw.fossdev at gmail.com>
---
src/mesa/program/prog_print.c | 16 ++++++++++++++--
1 file changed, 14 insertions(+), 2 deletions(-)
diff --git a/src/mesa/program/prog_print.c b/src/mesa/program/prog_print.c
index 9462510f3a..b273bbf4c8 100644
--- a/src/mesa/program/prog_print.c
+++ b/src/mesa/program/prog_print.c
@@ -50,12 +50,14 @@ _mesa_register_file_name(gl_register_file f)
switch (f) {
case PROGRAM_TEMPORARY:
return "TEMP";
- case PROGRAM_STATE_VAR:
- return "STATE";
+ case PROGRAM_ARRAY:
+ return "ARRAY";
case PROGRAM_INPUT:
return "INPUT";
case PROGRAM_OUTPUT:
return "OUTPUT";
+ case PROGRAM_STATE_VAR:
+ return "STATE";
case PROGRAM_CONSTANT:
return "CONST";
case PROGRAM_UNIFORM:
@@ -68,6 +70,16 @@ _mesa_register_file_name(gl_register_file f)
return "SYSVAL";
case PROGRAM_UNDEFINED:
return "UNDEFINED";
+ case PROGRAM_IMMEDIATE:
+ return "IMM";
+ case PROGRAM_BUFFER:
+ return "BUFFER";
+ case PROGRAM_MEMORY:
+ return "MEMORY";
+ case PROGRAM_IMAGE:
+ return "IMAGE";
+ case PROGRAM_HW_ATOMIC:
+ return "HWATOMIC";
default:
{
static char s[20];
--
2.13.6
More information about the mesa-dev
mailing list