Module: Mesa
Branch: master
Commit: b2749c141d542191c22fb2e824b6bb2d8e684250
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=b2749c141d542191c22fb2e824b6bb2d8e684250

Author: Alyssa Rosenzweig <alyssa.rosenzw...@collabora.com>
Date:   Tue Jul 14 21:39:06 2020 -0400

pan/mdg: Identify per-sample interpolation mode

So this is what .interp0 was this whole time.

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

---

 src/panfrost/midgard/disassemble.c | 2 ++
 src/panfrost/midgard/midgard.h     | 1 +
 2 files changed, 3 insertions(+)

diff --git a/src/panfrost/midgard/disassemble.c 
b/src/panfrost/midgard/disassemble.c
index 2b9fb0a2318..1e598e8161c 100644
--- a/src/panfrost/midgard/disassemble.c
+++ b/src/panfrost/midgard/disassemble.c
@@ -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);
                 }
diff --git a/src/panfrost/midgard/midgard.h b/src/panfrost/midgard/midgard.h
index 0b6ab9e28be..04a7555150f 100644
--- a/src/panfrost/midgard/midgard.h
+++ b/src/panfrost/midgard/midgard.h
@@ -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;

_______________________________________________
mesa-commit mailing list
mesa-commit@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to