compiler: add new SYSTEM_VALUE_BARYCENTRIC_*
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Fri, 24 Jan 2020 09:52:25 +0000 (10:52 +0100)
committerMarge Bot <eric+marge@anholt.net>
Wed, 29 Jan 2020 09:49:50 +0000 (09:49 +0000)
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3578>

src/compiler/shader_enums.c
src/compiler/shader_enums.h

index 6f61728032a9d78795cacb148c53f20c12e057d7..977be6b89e01a842548a57f0fbdb3aaf2cde0eb3 100644 (file)
@@ -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),
    };
index 29b88c9cd43a67c209fb5db78f2762339778bccd..bf10a14a881e71446331d526efb3ddd63a6c2973 100644 (file)
@@ -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