Mesa (main): panfrost: Make alpha=0 NOP / 1 store Bifrost only
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Thu Apr 7 15:24:28 UTC 2022
Module: Mesa
Branch: main
Commit: dd735bcb698d053c33c311d9cc382068efa4e54a
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=dd735bcb698d053c33c311d9cc382068efa4e54a
Author: Alyssa Rosenzweig <alyssa at collabora.com>
Date: Thu Apr 7 10:27:34 2022 -0400
panfrost: Make alpha=0 NOP / 1 store Bifrost only
These fields were removed in Valhall in favour of a simpler overdraw mechanism.
Signed-off-by: Alyssa Rosenzweig <alyssa at collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15795>
---
src/gallium/drivers/panfrost/pan_cmdstream.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/src/gallium/drivers/panfrost/pan_cmdstream.c b/src/gallium/drivers/panfrost/pan_cmdstream.c
index dc87f682e18..94ac319f833 100644
--- a/src/gallium/drivers/panfrost/pan_cmdstream.c
+++ b/src/gallium/drivers/panfrost/pan_cmdstream.c
@@ -361,10 +361,12 @@ panfrost_emit_blend(struct panfrost_batch *batch, void *rts, mali_ptr *blend_sha
fs->info.bifrost.blend[i].format;
cfg.fixed_function.rt = i;
+#if PAN_ARCH <= 7
if (!info.opaque) {
cfg.fixed_function.alpha_zero_nop = info.alpha_zero_nop;
cfg.fixed_function.alpha_one_store = info.alpha_one_store;
}
+#endif
}
}
#endif
More information about the mesa-commit
mailing list