panfrost: Add MALI_PER_SAMPLE bit
authorAlyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Wed, 15 Jul 2020 01:36:59 +0000 (21:36 -0400)
committerMarge Bot <eric+marge@anholt.net>
Wed, 15 Jul 2020 22:19:37 +0000 (22:19 +0000)
For gl_SampleID reads.

Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5929>

src/panfrost/include/panfrost-job.h
src/panfrost/pandecode/decode.c

index 720420f8ed176923f037e930c1084aa25fe12d22..21b52ad4ea5c1423c4c29912c6bb1919925f81c3 100644 (file)
@@ -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 */
index b659614467ead34c83a60943a6abec8d99690aee..6950fe9f91374e9520341415221a88f2811a44f4 100644 (file)
@@ -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),