diff options
author | Rob Clark <[email protected]> | 2019-04-03 19:55:34 -0400 |
---|---|---|
committer | Rob Clark <[email protected]> | 2019-04-25 14:13:31 -0700 |
commit | 4d08c1b595e36c0a8f64410b7328fc0c9b6cbeb6 (patch) | |
tree | 6dcbee3d7ab1839718d83d5f2eeadcd96f1de819 /src/compiler | |
parent | 96d2e4ab8ad394a4c3e8d315880b7af7a0cc824c (diff) |
compiler: rename SYSTEM_VALUE_VARYING_COORD
And add corresponding enums for different sorts of varying
interpolation.
Signed-off-by: Rob Clark <[email protected]>
Diffstat (limited to 'src/compiler')
-rw-r--r-- | src/compiler/shader_enums.c | 5 | ||||
-rw-r--r-- | src/compiler/shader_enums.h | 10 |
2 files changed, 12 insertions, 3 deletions
diff --git a/src/compiler/shader_enums.c b/src/compiler/shader_enums.c index 15ab6d81dae..451f1b758de 100644 --- a/src/compiler/shader_enums.c +++ b/src/compiler/shader_enums.c @@ -247,7 +247,10 @@ gl_system_value_name(gl_system_value sysval) ENUM(SYSTEM_VALUE_DEVICE_INDEX), ENUM(SYSTEM_VALUE_VIEW_INDEX), ENUM(SYSTEM_VALUE_VERTEX_CNT), - ENUM(SYSTEM_VALUE_VARYING_COORD), + ENUM(SYSTEM_VALUE_BARYCENTRIC_PIXEL), + ENUM(SYSTEM_VALUE_BARYCENTRIC_SAMPLE), + ENUM(SYSTEM_VALUE_BARYCENTRIC_CENTROID), + ENUM(SYSTEM_VALUE_BARYCENTRIC_SIZE), }; STATIC_ASSERT(ARRAY_SIZE(names) == SYSTEM_VALUE_MAX); return NAME(sysval); diff --git a/src/compiler/shader_enums.h b/src/compiler/shader_enums.h index f9a4006f072..ac293af4519 100644 --- a/src/compiler/shader_enums.h +++ b/src/compiler/shader_enums.h @@ -621,10 +621,16 @@ typedef enum SYSTEM_VALUE_VERTEX_CNT, /** - * Driver internal varying-coord, used for varying-fetch instructions. + * Driver internal varying-coords, used for varying-fetch instructions. * Not externally visible. + * + * The _SIZE value is "primitive size", used to scale i/j in primitive + * space to pixel space. */ - SYSTEM_VALUE_VARYING_COORD, + SYSTEM_VALUE_BARYCENTRIC_PIXEL, + SYSTEM_VALUE_BARYCENTRIC_SAMPLE, + SYSTEM_VALUE_BARYCENTRIC_CENTROID, + SYSTEM_VALUE_BARYCENTRIC_SIZE, SYSTEM_VALUE_MAX /**< Number of values */ } gl_system_value; |