mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-26 19:20:08 +01:00
glsl: don't validate array types in ir_dereference_variable
Fixes: 8d62969cfe - glsl: validate more stuff
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/3245
Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5813>
This commit is contained in:
parent
9ad19fff3e
commit
d2bd77eae4
1 changed files with 4 additions and 1 deletions
|
|
@ -98,7 +98,10 @@ ir_validate::visit(ir_dereference_variable *ir)
|
|||
abort();
|
||||
}
|
||||
|
||||
if (ir->var->type != ir->type) {
|
||||
/* Compare types without arrays, because one side can be sized and
|
||||
* the other unsized.
|
||||
*/
|
||||
if (ir->var->type->without_array() != ir->type->without_array()) {
|
||||
printf("ir_dereference_variable type is not equal to variable type: ");
|
||||
ir->print();
|
||||
printf("\n");
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue