agx: Require tag writes with side effects

Otherwise the fragment shader might be skipped entirely. (Possibly this is the
wrong approach to this though...)

Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24258>
This commit is contained in:
Alyssa Rosenzweig 2023-06-15 08:48:31 -04:00 committed by Marge Bot
parent 46bb0037ce
commit 56bb3dcc21

View file

@ -2658,7 +2658,7 @@ agx_compile_shader_nir(nir_shader *nir, struct agx_shader_key *key,
/* If required, tag writes will be enabled by instruction selection */
if (nir->info.stage == MESA_SHADER_FRAGMENT)
out->tag_write_disable = true;
out->tag_write_disable = !nir->info.writes_memory;
/* Late sysval lowering creates large loads. Load lowering creates unpacks */
nir_lower_mem_access_bit_sizes_options lower_mem_access_options = {