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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user