asahi: optimize pass type with depth-only passes

Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36399>
This commit is contained in:
Alyssa Rosenzweig
2025-07-30 14:32:37 -04:00
parent 7f2a6cdd26
commit 626fa80c1b
+6
View File
@@ -205,6 +205,12 @@ agx_fast_link(struct agx_linked_shader *linked, struct agx_device *dev,
cfg.unk_5 = 0x0;
}
/* If we skip the fragment shader, we can optimize the pass type */
if (tag_write_disable) {
reads_tib = false;
writes_sample_mask = false;
}
agx_pack(&linked->fragment_control, FRAGMENT_CONTROL, cfg) {
cfg.tag_write_disable = tag_write_disable;
cfg.disable_tri_merging = disable_tri_merging;