diff options
author | Ilia Mirkin <[email protected]> | 2020-04-10 13:47:05 -0400 |
---|---|---|
committer | Ilia Mirkin <[email protected]> | 2020-04-15 20:12:00 -0400 |
commit | 54424a3d13f97bb1714f168f127f40d180f78a6b (patch) | |
tree | ec25c85bcb76aaf3c7d6c4e000af1c0e1fbbcd42 /src/compiler | |
parent | 3a9e66277af68824fcfa1650d87222f37f0582cf (diff) |
compiler: add VARYING_SLOT_VIEWPORT_MASK
See GL_NV_viewport_array2::gl_ViewportMask for how this is supposed
to work.
Signed-off-by: Ilia Mirkin <[email protected]>
Reviewed-by: Marek Olšák <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4529>
Diffstat (limited to 'src/compiler')
-rw-r--r-- | src/compiler/shader_enums.c | 1 | ||||
-rw-r--r-- | src/compiler/shader_enums.h | 2 |
2 files changed, 3 insertions, 0 deletions
diff --git a/src/compiler/shader_enums.c b/src/compiler/shader_enums.c index 977be6b89e0..a2a5eb82a61 100644 --- a/src/compiler/shader_enums.c +++ b/src/compiler/shader_enums.c @@ -165,6 +165,7 @@ gl_varying_slot_name(gl_varying_slot slot) ENUM(VARYING_SLOT_BOUNDING_BOX0), ENUM(VARYING_SLOT_BOUNDING_BOX1), ENUM(VARYING_SLOT_VIEW_INDEX), + ENUM(VARYING_SLOT_VIEWPORT_MASK), ENUM(VARYING_SLOT_VAR0), ENUM(VARYING_SLOT_VAR1), ENUM(VARYING_SLOT_VAR2), diff --git a/src/compiler/shader_enums.h b/src/compiler/shader_enums.h index bf10a14a881..56062894a94 100644 --- a/src/compiler/shader_enums.h +++ b/src/compiler/shader_enums.h @@ -261,6 +261,7 @@ typedef enum VARYING_SLOT_BOUNDING_BOX0, /* Only appears as TCS output. */ VARYING_SLOT_BOUNDING_BOX1, /* Only appears as TCS output. */ VARYING_SLOT_VIEW_INDEX, + VARYING_SLOT_VIEWPORT_MASK, /* Does not appear in FS */ VARYING_SLOT_VAR0, /* First generic varying slot */ /* the remaining are simply for the benefit of gl_varying_slot_name() * and not to be construed as an upper bound: @@ -343,6 +344,7 @@ const char *gl_varying_slot_name(gl_varying_slot slot); #define VARYING_BIT_TESS_LEVEL_INNER BITFIELD64_BIT(VARYING_SLOT_TESS_LEVEL_INNER) #define VARYING_BIT_BOUNDING_BOX0 BITFIELD64_BIT(VARYING_SLOT_BOUNDING_BOX0) #define VARYING_BIT_BOUNDING_BOX1 BITFIELD64_BIT(VARYING_SLOT_BOUNDING_BOX1) +#define VARYING_BIT_VIEWPORT_MASK BITFIELD64_BIT(VARYING_SLOT_VIEWPORT_MASK) #define VARYING_BIT_VAR(V) BITFIELD64_BIT(VARYING_SLOT_VAR0 + (V)) /*@}*/ |