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 _______________________________________________ mesa-dev mailing list mesa-dev@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/mesa-dev