mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-27 14:50:10 +01:00
nir: Stop assuming glsl_get_length() returns 0 for vectors
Reviewed-by: Alyssa Rosenzweig <alyssa@rosenzweig.io> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22580>
This commit is contained in:
parent
a1f3c5eea7
commit
d17dc3e9cd
1 changed files with 1 additions and 1 deletions
|
|
@ -318,7 +318,7 @@ nir_create_variable_with_location(nir_shader *shader, nir_variable_mode mode, in
|
|||
/* Only supporting non-array, or arrayed-io types, because otherwise we don't
|
||||
* know how much to increment num_inputs/outputs
|
||||
*/
|
||||
assert(glsl_get_length(type) <= 1);
|
||||
assert(glsl_type_is_vector_or_scalar(type) || glsl_type_is_unsized_array(type));
|
||||
|
||||
const char *name;
|
||||
switch (mode) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue