summaryrefslogtreecommitdiffstats
path: root/src/compiler/shader_enums.h
diff options
context:
space:
mode:
authorRob Clark <robdclark@gmail.com>2018-08-10 09:13:47 -0400
committerRob Clark <robdclark@gmail.com>2018-08-14 17:59:02 -0400
commit4a7f9feadab2435f25427345070262fcc719e7f3 (patch)
tree10c3d38384cb427e005b851252726d42efcc5691 /src/compiler/shader_enums.h
parentb5a098b20209305bf0929403915f63106cbe0abd (diff)
compiler: add SYSTEM_VALUE_VARYING_COORD
Used internally in freedreno/ir3 for the vec2 value that hw passes to shader to use as coordinate for bary.f (varying fetch) instruction. This is not the same as SYSTEM_VALUE_FRAG_COORD. Signed-off-by: Rob Clark <robdclark@gmail.com>
Diffstat (limited to 'src/compiler/shader_enums.h')
-rw-r--r--src/compiler/shader_enums.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/compiler/shader_enums.h b/src/compiler/shader_enums.h
index f8e22925f35..5c36f55283c 100644
--- a/src/compiler/shader_enums.h
+++ b/src/compiler/shader_enums.h
@@ -601,6 +601,12 @@ typedef enum
*/
SYSTEM_VALUE_VERTEX_CNT,
+ /**
+ * Driver internal varying-coord, used for varying-fetch instructions.
+ * Not externally visible.
+ */
+ SYSTEM_VALUE_VARYING_COORD,
+
SYSTEM_VALUE_MAX /**< Number of values */
} gl_system_value;