From: Alyssa Rosenzweig Date: Wed, 15 Jul 2020 01:39:06 +0000 (-0400) Subject: pan/mdg: Identify per-sample interpolation mode X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b2749c141d542191c22fb2e824b6bb2d8e684250;p=mesa.git pan/mdg: Identify per-sample interpolation mode So this is what .interp0 was this whole time. Signed-off-by: Alyssa Rosenzweig Part-of: --- 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;