mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-28 14:40:10 +01:00
nir: fix printing of var_decl with more than 4 components.
Reviewed-By: Timur Kristóf <timur.kristof@gmail.com>
Fixes: a8ec4082a4 ('nir+vtn: vec8+vec16 support')
Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3320>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3320>
This commit is contained in:
parent
e298e78a01
commit
cd31da4587
1 changed files with 1 additions and 1 deletions
|
|
@ -572,7 +572,7 @@ print_var_decl(nir_variable *var, print_state *state)
|
|||
unsigned int num_components =
|
||||
glsl_get_components(glsl_without_array(var->type));
|
||||
const char *components = NULL;
|
||||
char components_local[6] = {'.' /* the rest is 0-filled */};
|
||||
char components_local[18] = {'.' /* the rest is 0-filled */};
|
||||
switch (var->data.mode) {
|
||||
case nir_var_shader_in:
|
||||
case nir_var_shader_out:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue