From 8f98242d40b58c517181bc4777f4910ad24e6866 Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Wed, 2 Jul 2008 12:47:18 -0600 Subject: [PATCH] mesa: disable some debug assertions We can sometimes fail these assertions because of how swizzled storage works. Will revisit someday. --- src/mesa/shader/slang/slang_vartable.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/mesa/shader/slang/slang_vartable.c b/src/mesa/shader/slang/slang_vartable.c index 1d817000c60..26411255dfe 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 { -- 2.30.2