Mesa (master): panfrost: Add MALI_PER_SAMPLE bit
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Wed Jul 15 22:34:42 UTC 2020
Module: Mesa
Branch: master
Commit: 5c65a27adc69e24cda053cfad85c0973926348aa
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=5c65a27adc69e24cda053cfad85c0973926348aa
Author: Alyssa Rosenzweig <alyssa.rosenzweig at collabora.com>
Date: Tue Jul 14 21:36:59 2020 -0400
panfrost: Add MALI_PER_SAMPLE bit
For gl_SampleID reads.
Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig at collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5929>
---
src/panfrost/include/panfrost-job.h | 4 ++++
src/panfrost/pandecode/decode.c | 1 +
2 files changed, 5 insertions(+)
diff --git a/src/panfrost/include/panfrost-job.h b/src/panfrost/include/panfrost-job.h
index 720420f8ed1..21b52ad4ea5 100644
--- a/src/panfrost/include/panfrost-job.h
+++ b/src/panfrost/include/panfrost-job.h
@@ -92,6 +92,10 @@ enum mali_func {
/* Flags apply to unknown2_3? */
#define MALI_HAS_MSAA (1 << 0)
+
+/* Execute fragment shader per-sample if set (e.g. to implement gl_SampleID
+ * reads) */
+#define MALI_PER_SAMPLE (1 << 2)
#define MALI_CAN_DISCARD (1 << 5)
/* Applies on SFBD systems, specifying that programmable blending is in use */
diff --git a/src/panfrost/pandecode/decode.c b/src/panfrost/pandecode/decode.c
index b659614467e..6950fe9f913 100644
--- a/src/panfrost/pandecode/decode.c
+++ b/src/panfrost/pandecode/decode.c
@@ -223,6 +223,7 @@ static const struct pandecode_flag_info mask_flag_info[] = {
#define FLAG_INFO(flag) { MALI_##flag, "MALI_" #flag }
static const struct pandecode_flag_info u3_flag_info[] = {
FLAG_INFO(HAS_MSAA),
+ FLAG_INFO(PER_SAMPLE),
FLAG_INFO(CAN_DISCARD),
FLAG_INFO(HAS_BLEND_SHADER),
FLAG_INFO(DEPTH_WRITEMASK),
More information about the mesa-commit
mailing list