From: Samuel Pitoiset Date: Fri, 24 Jan 2020 09:52:25 +0000 (+0100) Subject: compiler: add new SYSTEM_VALUE_BARYCENTRIC_* X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=61d24080bb710bb258b89ed90eaab6054be7b7ee;p=mesa.git compiler: add new SYSTEM_VALUE_BARYCENTRIC_* Signed-off-by: Samuel Pitoiset Reviewed-by: Bas Nieuwenhuizen Part-of: --- diff --git a/src/compiler/shader_enums.c b/src/compiler/shader_enums.c index 6f61728032a..977be6b89e0 100644 --- a/src/compiler/shader_enums.c +++ b/src/compiler/shader_enums.c @@ -254,6 +254,10 @@ gl_system_value_name(gl_system_value sysval) ENUM(SYSTEM_VALUE_BARYCENTRIC_PERSP_SAMPLE), ENUM(SYSTEM_VALUE_BARYCENTRIC_PERSP_CENTROID), ENUM(SYSTEM_VALUE_BARYCENTRIC_PERSP_SIZE), + ENUM(SYSTEM_VALUE_BARYCENTRIC_LINEAR_PIXEL), + ENUM(SYSTEM_VALUE_BARYCENTRIC_LINEAR_CENTROID), + ENUM(SYSTEM_VALUE_BARYCENTRIC_LINEAR_SAMPLE), + ENUM(SYSTEM_VALUE_BARYCENTRIC_PULL_MODEL), ENUM(SYSTEM_VALUE_GS_HEADER_IR3), ENUM(SYSTEM_VALUE_TCS_HEADER_IR3), }; diff --git a/src/compiler/shader_enums.h b/src/compiler/shader_enums.h index 29b88c9cd43..bf10a14a881 100644 --- a/src/compiler/shader_enums.h +++ b/src/compiler/shader_enums.h @@ -630,8 +630,8 @@ typedef enum SYSTEM_VALUE_VERTEX_CNT, /** - * Driver internal varying-coords, used for varying-fetch instructions. - * Not externally visible. + * Required for AMD_shader_explicit_vertex_parameter and also used for + * varying-fetch instructions. * * The _SIZE value is "primitive size", used to scale i/j in primitive * space to pixel space. @@ -640,6 +640,10 @@ typedef enum SYSTEM_VALUE_BARYCENTRIC_PERSP_SAMPLE, SYSTEM_VALUE_BARYCENTRIC_PERSP_CENTROID, SYSTEM_VALUE_BARYCENTRIC_PERSP_SIZE, + SYSTEM_VALUE_BARYCENTRIC_LINEAR_PIXEL, + SYSTEM_VALUE_BARYCENTRIC_LINEAR_CENTROID, + SYSTEM_VALUE_BARYCENTRIC_LINEAR_SAMPLE, + SYSTEM_VALUE_BARYCENTRIC_PULL_MODEL, /** * IR3 specific geometry shader and tesselation control shader system