nir/dead_write_vars: Handle volatile
authorJason Ekstrand <jason@jlekstrand.net>
Mon, 27 Apr 2020 06:54:40 +0000 (01:54 -0500)
committerMarge Bot <eric+marge@anholt.net>
Tue, 28 Apr 2020 22:55:25 +0000 (22:55 +0000)
commitcb9292091b162e0dd7d5069646e94d03e112e3ee
treeffcada9c7e7ad4f9e5ea1b4aa03e382d47baf7b1
parented677171675fe8ee204deac1e2089f480681b1b4
nir/dead_write_vars: Handle volatile

We can't remove volatile writes and we can't combine them with other
volatile writes so all we can do is clear the unused bits.

Reviewed-by: Caio Marcelo de Oliveira Filho <caio.oliveira@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4767>
src/compiler/nir/nir_opt_dead_write_vars.c
src/compiler/nir/tests/vars_tests.cpp