From: Connor Abbott Date: Fri, 19 Jun 2015 01:51:51 +0000 (-0700) Subject: nir/types: be less strict about constructing matrix types X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=d0fc04aacf12ad834f9542289f3c915d5ec9b945;p=mesa.git nir/types: be less strict about constructing matrix types --- diff --git a/src/glsl/nir/nir_types.cpp b/src/glsl/nir/nir_types.cpp index d44d48095da..3c00bdb3c18 100644 --- a/src/glsl/nir/nir_types.cpp +++ b/src/glsl/nir/nir_types.cpp @@ -240,7 +240,7 @@ glsl_vector_type(enum glsl_base_type base_type, unsigned components) const glsl_type * glsl_matrix_type(enum glsl_base_type base_type, unsigned rows, unsigned columns) { - assert(rows > 1 && rows <= 4 && columns > 1 && columns <= 4); + assert(rows >= 1 && rows <= 4 && columns >= 1 && columns <= 4); return glsl_type::get_instance(base_type, rows, columns); }