[Mesa-dev] [PATCH 3/7] compiler: add fields for tes metadata to shader info

Timothy Arceri timothy.arceri at collabora.com
Thu Oct 13 08:43:06 UTC 2016


---
 src/compiler/shader_info.h | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/src/compiler/shader_info.h b/src/compiler/shader_info.h
index 68800a1..8266fc3 100644
--- a/src/compiler/shader_info.h
+++ b/src/compiler/shader_info.h
@@ -117,6 +117,13 @@ typedef struct shader_info {
          /** The number of vertices in the TCS output patch. */
          unsigned vertices_out;
       } tcs;
+
+      struct {
+         uint32_t primitive_mode; /* GL_TRIANGLES, GL_QUADS or GL_ISOLINES */
+         uint32_t spacing;        /* GL_EQUAL, GL_FRACTIONAL_EVEN, GL_FRACTIONAL_ODD */
+         uint32_t vertex_order;   /* GL_CW or GL_CCW */
+         bool point_mode;
+      } tes;
    };
 } shader_info;
 
-- 
2.7.4



More information about the mesa-dev mailing list