diff options
author | Alyssa Rosenzweig <[email protected]> | 2020-07-14 21:39:06 -0400 |
---|---|---|
committer | Marge Bot <[email protected]> | 2020-07-15 22:19:36 +0000 |
commit | b2749c141d542191c22fb2e824b6bb2d8e684250 (patch) | |
tree | 0b3aeefac16296c78868775a06491aec3e696d0f /src/panfrost/midgard | |
parent | 59308a3a6480a0b7c9fa9d5effaa23ea4b634477 (diff) |
pan/mdg: Identify per-sample interpolation mode
So this is what .interp0 was this whole time.
Signed-off-by: Alyssa Rosenzweig <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5929>
Diffstat (limited to 'src/panfrost/midgard')
-rw-r--r-- | src/panfrost/midgard/disassemble.c | 2 | ||||
-rw-r--r-- | src/panfrost/midgard/midgard.h | 1 |
2 files changed, 3 insertions, 0 deletions
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; |