mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 05:18:08 +02:00
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:
parent
46bb0037ce
commit
56bb3dcc21
1 changed files with 1 additions and 1 deletions
|
|
@ -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 = {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue