fix assertion
authorBrian <brian@yutani.localnet.net>
Thu, 8 Mar 2007 22:19:34 +0000 (15:19 -0700)
committerBrian <brian@yutani.localnet.net>
Thu, 8 Mar 2007 22:19:34 +0000 (15:19 -0700)
src/mesa/shader/slang/slang_emit.c

index f07ad662237dc3987406303c689a85c621708f3d..a134bb97110884ffdbb41ed54ce21ddc7f8da144 100644 (file)
@@ -450,7 +450,7 @@ storage_to_dst_reg(struct prog_dst_register *dst, const slang_ir_storage *st,
       WRITEMASK_X | WRITEMASK_Y | WRITEMASK_Z,
       WRITEMASK_X | WRITEMASK_Y | WRITEMASK_Z | WRITEMASK_W
    };
-   assert(st->Index >= 0 && st->Index <= 16);
+   assert(st->Index >= 0);
    dst->File = st->File;
    dst->Index = st->Index;
    assert(st->File != PROGRAM_UNDEFINED);