X-Git-Url: https://git.libre-soc.org/?a=blobdiff_plain;f=src%2Fglsl%2Fnir%2Fnir_types.cpp;h=01f0e9b5abcc6a17bdd7fd47423a8349609f1175;hb=fc2a66cfcddea34af0e93dd2221ae1fd3fdd9e87;hp=f3f3af97fde7fe1b09cc4478dba0ef54fea1f8a2;hpb=9b387b5d3f4103c51079ea5298d33086af6da433;p=mesa.git diff --git a/src/glsl/nir/nir_types.cpp b/src/glsl/nir/nir_types.cpp index f3f3af97fde..01f0e9b5abc 100644 --- a/src/glsl/nir/nir_types.cpp +++ b/src/glsl/nir/nir_types.cpp @@ -138,6 +138,13 @@ glsl_get_sampler_result_type(const struct glsl_type *type) return (glsl_base_type)type->sampler_type; } +unsigned +glsl_get_record_location_offset(const struct glsl_type *type, + unsigned length) +{ + return type->record_location_offset(length); +} + bool glsl_type_is_void(const glsl_type *type) { @@ -252,7 +259,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); }