From 891d7e3c9eb71ba42a7aea20dc45bdb3d624fc82 Mon Sep 17 00:00:00 2001 From: Ilia Mirkin Date: Mon, 30 May 2016 11:50:07 -0400 Subject: glsl: add gl_BoundingBox and associated varying slots Signed-off-by: Ilia Mirkin Reviewed-by: Ian Romanick --- src/compiler/shader_enums.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/compiler/shader_enums.h') diff --git a/src/compiler/shader_enums.h b/src/compiler/shader_enums.h index e128b172c20..c3a62e09dbe 100644 --- a/src/compiler/shader_enums.h +++ b/src/compiler/shader_enums.h @@ -214,6 +214,8 @@ typedef enum VARYING_SLOT_PNTC, /* FS only */ VARYING_SLOT_TESS_LEVEL_OUTER, /* Only appears as TCS output. */ VARYING_SLOT_TESS_LEVEL_INNER, /* Only appears as TCS output. */ + VARYING_SLOT_BOUNDING_BOX0, /* Only appears as TCS output. */ + VARYING_SLOT_BOUNDING_BOX1, /* Only appears as TCS output. */ 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: @@ -294,6 +296,8 @@ const char *gl_varying_slot_name(gl_varying_slot slot); #define VARYING_BIT_PNTC BITFIELD64_BIT(VARYING_SLOT_PNTC) #define VARYING_BIT_TESS_LEVEL_OUTER BITFIELD64_BIT(VARYING_SLOT_TESS_LEVEL_OUTER) #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_VAR(V) BITFIELD64_BIT(VARYING_SLOT_VAR0 + (V)) /*@}*/ -- cgit v1.2.3