[Mesa-dev] [PATCH 06/21] i965/vec4: Drop an assertion from type_size_vec4
Jason Ekstrand
jason at jlekstrand.net
Wed Aug 19 22:45:41 PDT 2015
It isn't really needed and ARB programs that get run though prog_to_nir
will sometimes generate a zero-length uniform array which will cause the
assertion to fail.
---
src/mesa/drivers/dri/i965/brw_vec4_visitor.cpp | 1 -
1 file changed, 1 deletion(-)
diff --git a/src/mesa/drivers/dri/i965/brw_vec4_visitor.cpp b/src/mesa/drivers/dri/i965/brw_vec4_visitor.cpp
index ca86e8b..bee8621 100644
--- a/src/mesa/drivers/dri/i965/brw_vec4_visitor.cpp
+++ b/src/mesa/drivers/dri/i965/brw_vec4_visitor.cpp
@@ -619,7 +619,6 @@ type_size_vec4(const struct glsl_type *type)
return 1;
}
case GLSL_TYPE_ARRAY:
- assert(type->length > 0);
return type_size_vec4(type->fields.array) * type->length;
case GLSL_TYPE_STRUCT:
size = 0;
--
2.4.3
More information about the mesa-dev
mailing list