summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBrian Paul <brian.paul@tungstengraphics.com>2008-07-08 13:02:33 -0600
committerBrian Paul <brian.paul@tungstengraphics.com>2008-07-08 15:07:28 -0600
commit2e638cfe3c3a8ab639d9cdb13abced6dc8ed0755 (patch)
treee88adda7da2126c07a74ab913ccd716f8e7ced2c /src
parent2e7e1837512c1959a97f51903a770cf182fc9820 (diff)
mesa: add missing VARYING case to storage_string()
Diffstat (limited to 'src')
-rw-r--r--src/mesa/shader/slang/slang_ir.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mesa/shader/slang/slang_ir.c b/src/mesa/shader/slang/slang_ir.c
index 31ad94183c..16c36aad0c 100644
--- a/src/mesa/shader/slang/slang_ir.c
+++ b/src/mesa/shader/slang/slang_ir.c
@@ -218,12 +218,14 @@ storage_string(const slang_ir_storage *st)
"NAMED_PARAM",
"CONSTANT",
"UNIFORM",
+ "VARYING",
"WRITE_ONLY",
"ADDRESS",
"SAMPLER",
"UNDEFINED"
};
static char s[100];
+ assert(Elements(files) == PROGRAM_FILE_MAX);
#if 0
if (st->Size == 1)
sprintf(s, "%s[%d]", files[st->File], st->Index);