diff options
author | Timothy Arceri <[email protected]> | 2020-02-10 11:22:32 +1100 |
---|---|---|
committer | Marge Bot <[email protected]> | 2020-02-14 01:37:03 +0000 |
commit | 676869e1d4bb1660430fcdb99443238a7de50eb8 (patch) | |
tree | f1f896b4648fab8daf15f8a5dc9486513556806b /src/util/anon_file.c | |
parent | 6baeca36899109cd9d8e06d1b5f4b9db8becd5fa (diff) |
glsl: fix gl_nir_set_uniform_initializers() for image arrays
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: 2bf91733fcb5 ("nir/linker: Set the uniform initial values")
Reviewed-by: Alejandro PiƱeiro <[email protected]>
Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3757>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3757>
Diffstat (limited to 'src/util/anon_file.c')
0 files changed, 0 insertions, 0 deletions