nir: Consider atomic counter intrinsics when setting writes_memory
authorCaio Marcelo de Oliveira Filho <caio.oliveira@intel.com>
Tue, 19 May 2020 00:43:34 +0000 (17:43 -0700)
committerCaio Marcelo de Oliveira Filho <caio.oliveira@intel.com>
Tue, 19 May 2020 02:06:53 +0000 (19:06 -0700)
commitc4544f47167ab5fe170e5131ad45b20b02507bce
treeab67a2b4cb5e9b35faf697218f75ab4cf5edd4e9
parentee90339cfbe960ccf59e486b845476a277cc9dc7
nir: Consider atomic counter intrinsics when setting writes_memory

In i965 these get lowered after gather info, so let's consider them
too.  Fixes

    piglit.spec.arb_framebuffer_no_attachments.arb_framebuffer_no_attachments-atomic

in Gen9, HSW and IVB.

Fixes: 6a6c36e9776 ("intel/fs: Use writes_memory from shader_info")
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5093>
src/compiler/nir/nir_gather_info.c