From b2749c141d542191c22fb2e824b6bb2d8e684250 Mon Sep 17 00:00:00 2001 From: Alyssa Rosenzweig Date: Tue, 14 Jul 2020 21:39:06 -0400 Subject: [PATCH] pan/mdg: Identify per-sample interpolation mode So this is what .interp0 was this whole time. Signed-off-by: Alyssa Rosenzweig Part-of: --- 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; -- 2.30.2