iris: add support for gl_ClipVertex in geometry shaders

This will enable us to support the OpenGL compat profile.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
This commit is contained in:
Timothy Arceri
2019-06-27 15:06:30 +10:00
committed by Kenneth Graunke
parent 70dc017aec
commit 00b5bf2d72
4 changed files with 57 additions and 21 deletions

View File

@@ -323,6 +323,15 @@ struct brw_tes_prog_key
struct brw_gs_prog_key
{
struct brw_base_prog_key base;
/**
* How many user clipping planes are being uploaded to the geometry shader
* as push constants.
*
* These are used for lowering legacy gl_ClipVertex/gl_Position clipping to
* clip distances.
*/
unsigned nr_userclip_plane_consts:4;
};
enum brw_sf_primitive {