[Mesa-dev] [PATCH shader-db 2/3] run: work with tessellation shaders

Ilia Mirkin imirkin at alum.mit.edu
Sat Nov 7 23:43:01 PST 2015


---
 run.c | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/run.c b/run.c
index de85665..2c2a810 100644
--- a/run.c
+++ b/run.c
@@ -80,6 +80,8 @@ get_shaders(const struct context_info *core, const struct context_info *compat,
     static const char *gs = "geometry shader]\n";
     static const char *fs = "fragment ";
     static const char *vs = "vertex ";
+    static const char *tcs = "tessellation control shader]\n";
+    static const char *tes = "tessellation evaluation shader]\n";
     static const char *shder = "shader]\n";
     static const char *program = "program]\n";
     static const char *test = "test]\n";
@@ -169,6 +171,14 @@ get_shaders(const struct context_info *core, const struct context_info *compat,
             text += strlen(gs);
             shader[i].type = GL_GEOMETRY_SHADER;
             shader[i].text = text;
+        } else if (memcmp(text, tcs, strlen(tcs)) == 0) {
+            text += strlen(tcs);
+            shader[i].type = GL_TESS_CONTROL_SHADER;
+            shader[i].text = text;
+        } else if (memcmp(text, tes, strlen(tes)) == 0) {
+            text += strlen(tes);
+            shader[i].type = GL_TESS_EVALUATION_SHADER;
+            shader[i].text = text;
         } else if (memcmp(text, test, strlen(test)) == 0) {
             shader[i - 1].length = save_text + 1 - shader[i - 1].text;
             goto out;
-- 
2.4.10



More information about the mesa-dev mailing list