nir/opt_access: don't ignore image arrays in process_variable()

Signed-off-by: Rhys Perry <pendingchaos02@gmail.com>
Reviewed-by: Connor Abbott <cwabbott0@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6483>
This commit is contained in:
Rhys Perry 2020-12-01 14:26:40 +00:00 committed by Marge Bot
parent bdd09066fa
commit 7ddea94819
1 changed files with 2 additions and 2 deletions

View File

@ -154,9 +154,9 @@ gather_intrinsic(struct access_state *state, nir_intrinsic_instr *instr)
static bool
process_variable(struct access_state *state, nir_variable *var)
{
const struct glsl_type *type = glsl_without_array(var->type);
if (var->data.mode != nir_var_mem_ssbo &&
!(var->data.mode == nir_var_uniform &&
glsl_type_is_image(var->type)))
!(var->data.mode == nir_var_uniform && glsl_type_is_image(type)))
return false;
/* Ignore variables we've already marked */