aboutsummaryrefslogtreecommitdiffstats
path: root/src/intel/compiler/brw_compiler.h
diff options
context:
space:
mode:
authorTimothy Arceri <[email protected]>2019-06-28 22:25:57 +1000
committerKenneth Graunke <[email protected]>2019-08-01 16:12:37 -0700
commit2afedfaf9aa161f8e8acbd1e8048a540db5fcfc8 (patch)
treecc4718ac28d97ab70241e1d1221015d524e4e8bb /src/intel/compiler/brw_compiler.h
parent00b5bf2d729f6c23525c4496552036c71d05479e (diff)
iris: add support for gl_ClipVertex in tess eval shaders
Required for OpenGL compat support. Reviewed-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'src/intel/compiler/brw_compiler.h')
-rw-r--r--src/intel/compiler/brw_compiler.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/intel/compiler/brw_compiler.h b/src/intel/compiler/brw_compiler.h
index 781e357f2f2..614410e3fb7 100644
--- a/src/intel/compiler/brw_compiler.h
+++ b/src/intel/compiler/brw_compiler.h
@@ -317,6 +317,15 @@ struct brw_tes_prog_key
/** A bitfield of per-vertex inputs read. */
uint64_t inputs_read;
+
+ /**
+ * How many user clipping planes are being uploaded to the tessellation
+ * evaluation shader as push constants.
+ *
+ * These are used for lowering legacy gl_ClipVertex/gl_Position clipping to
+ * clip distances.
+ */
+ unsigned nr_userclip_plane_consts:4;
};
/** The program key for Geometry Shaders. */