glsl/nir: Propagate access qualifiers
authorConnor Abbott <cwabbott0@gmail.com>
Tue, 4 Jun 2019 09:41:25 +0000 (11:41 +0200)
committerConnor Abbott <cwabbott0@gmail.com>
Wed, 19 Jun 2019 12:08:27 +0000 (14:08 +0200)
commit364996d70dec716707493d667e17d2c1efcb7259
treef3ba6565e88e415aaca84e5646d76dfe2262db45
parent6f20643b471a851c936fc8b569cf05dcd6e6e7fe
glsl/nir: Propagate access qualifiers

We were completely ignoring these before, except for putting them on
variables. While we're here, don't set access qualifiers when converting
to bindless since glsl_to_nir will already have set a more accurate
qualifier that includes any qualifiers on struct members that are
dereferenced.

Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
src/compiler/glsl/glsl_to_nir.cpp
src/compiler/nir/nir.c