summaryrefslogtreecommitdiffstats
path: root/src/compiler
diff options
context:
space:
mode:
authorSamuel Pitoiset <[email protected]>2020-01-24 10:52:25 +0100
committerMarge Bot <[email protected]>2020-01-29 09:49:50 +0000
commit61d24080bb710bb258b89ed90eaab6054be7b7ee (patch)
tree78c9f20f36b12497a1aea636f75fa4f57d33245a /src/compiler
parent15d53d8294bf5cfd0685422de99e8398bb52fdb8 (diff)
compiler: add new SYSTEM_VALUE_BARYCENTRIC_*
Signed-off-by: Samuel Pitoiset <[email protected]> Reviewed-by: Bas Nieuwenhuizen <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3578>
Diffstat (limited to 'src/compiler')
-rw-r--r--src/compiler/shader_enums.c4
-rw-r--r--src/compiler/shader_enums.h8
2 files changed, 10 insertions, 2 deletions
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