Skip to content

ARB_gl_spirv / glsl: fix gl_nir_set_uniform_initializers() for image arrays

Timothy Arceri requested to merge tarceri/mesa:fix_spirv_image_arrays into master

The if was incorrectly checking for an image type on what could be an array of images. Here we change it to use the type stored in uniform storage which has already been stripped of arrays, this is what the above code for samplers does also.

Fixes: 2bf91733 ("nir/linker: Set the uniform initial values")

Merge request reports