pan/mdg: Identify per-sample interpolation mode
authorAlyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Wed, 15 Jul 2020 01:39:06 +0000 (21:39 -0400)
committerMarge Bot <eric+marge@anholt.net>
Wed, 15 Jul 2020 22:19:36 +0000 (22:19 +0000)
So this is what .interp0 was this whole time.

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

src/panfrost/midgard/disassemble.c
src/panfrost/midgard/midgard.h

index 2b9fb0a2318c631ea813b6104804e5dd5c48d6bb..1e598e8161ce45615cfcdbc9f4d89a063ba7a7b0 100644 (file)
@@ -1082,6 +1082,8 @@ print_varying_parameters(FILE *fp, midgard_load_store_word *word)
                 if (param.interpolation != midgard_interp_default) {
                         if (param.interpolation == midgard_interp_centroid)
                                 fprintf(fp, ".centroid");
+                        else if (param.interpolation == midgard_interp_sample)
+                                fprintf(fp, ".sample");
                         else
                                 fprintf(fp, ".interp%d", param.interpolation);
                 }
index 0b6ab9e28be29501c728cb750c9617ad55f908ea..04a7555150f99dca90038ef06ec181316ff8dc35 100644 (file)
@@ -519,6 +519,7 @@ typedef enum {
 } midgard_load_store_op;
 
 typedef enum {
+        midgard_interp_sample = 0,
         midgard_interp_centroid = 1,
         midgard_interp_default = 2
 } midgard_interpolation;