summaryrefslogtreecommitdiff
path: root/src/mesa
diff options
context:
space:
mode:
authorBrian Paul <brian.paul@tungstengraphics.com>2008-07-02 12:47:18 -0600
committerBrian Paul <brian.paul@tungstengraphics.com>2008-07-02 12:47:18 -0600
commit8f98242d40b58c517181bc4777f4910ad24e6866 (patch)
tree1365b684f411f3190241285b27a35dd168fe54fd /src/mesa
parenteab88236b3ef5a4f861c1b99dc7220abd5c9f6c7 (diff)
mesa: disable some debug assertions
We can sometimes fail these assertions because of how swizzled storage works. Will revisit someday.
Diffstat (limited to 'src/mesa')
-rw-r--r--src/mesa/shader/slang/slang_vartable.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/mesa/shader/slang/slang_vartable.c b/src/mesa/shader/slang/slang_vartable.c
index 1d817000c6..26411255df 100644
--- a/src/mesa/shader/slang/slang_vartable.c
+++ b/src/mesa/shader/slang/slang_vartable.c
@@ -298,10 +298,15 @@ _slang_free_temp(slang_var_table *vt, slang_ir_storage *store)
if (dbg) printf("Free temp sz %d at %d (level %d)\n", store->Size, r, t->Level);
if (store->Size == 1) {
const GLuint comp = GET_SWZ(store->Swizzle, 0);
+ /* we can actually fail some of these assertions because of the
+ * troublesome IR_SWIZZLE handling.
+ */
+#if 0
assert(store->Swizzle == MAKE_SWIZZLE4(comp, comp, comp, comp));
assert(comp < 4);
assert(t->ValSize[r * 4 + comp] == 1);
assert(t->Temps[r * 4 + comp] == TEMP);
+#endif
t->Temps[r * 4 + comp] = FREE;
}
else {