diff options
author | Antia Puentes <[email protected]> | 2018-04-28 14:09:18 +0200 |
---|---|---|
committer | Antia Puentes <[email protected]> | 2018-05-02 11:20:40 +0200 |
commit | 9e6b886cf25f88eea584d38c6763dbded99bd064 (patch) | |
tree | 5a26de9923666b27ded3420edcccd5819e04d20b /src/compiler/shader_enums.c | |
parent | 0737c1e3a603e13ce9764ff5432e332b233c4b9d (diff) |
compiler: Add SYSTEM_VALUE_IS_INDEXED_DRAW and instrinsics
This VS system value contains if the draw command used to start the
rendering was an indexed draw command or a non-indexed one
(~0/0 respectively). Useful to calculate the gl_BaseVertex as:
(SYSTEM_VALUE_IS_INDEXED_DRAW & SYSTEM_VALUE_FIRST_VERTEX).
Reviewed-by: Jason Ekstrand <[email protected]>
Diffstat (limited to 'src/compiler/shader_enums.c')
-rw-r--r-- | src/compiler/shader_enums.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/compiler/shader_enums.c b/src/compiler/shader_enums.c index ebee076b43c..d596d7d04a0 100644 --- a/src/compiler/shader_enums.c +++ b/src/compiler/shader_enums.c @@ -217,6 +217,7 @@ gl_system_value_name(gl_system_value sysval) ENUM(SYSTEM_VALUE_INSTANCE_INDEX), ENUM(SYSTEM_VALUE_VERTEX_ID_ZERO_BASE), ENUM(SYSTEM_VALUE_FIRST_VERTEX), + ENUM(SYSTEM_VALUE_IS_INDEXED_DRAW), ENUM(SYSTEM_VALUE_BASE_VERTEX), ENUM(SYSTEM_VALUE_BASE_INSTANCE), ENUM(SYSTEM_VALUE_DRAW_ID), |