mesa: add missing VARYING case to storage_string()
authorBrian Paul <brian.paul@tungstengraphics.com>
Tue, 8 Jul 2008 19:02:24 +0000 (13:02 -0600)
committerBrian Paul <brian.paul@tungstengraphics.com>
Tue, 8 Jul 2008 21:11:53 +0000 (15:11 -0600)
src/mesa/shader/slang/slang_ir.c

index 31ad94183c2e954ebfac0962d4ca727cb21208f3..16c36aad0c1eb878cf6f52060a1494caf117a380 100644 (file)
@@ -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);