[Mesa-dev] [PATCH 14/14] st/mesa: enable tessellation if the driver supports it

Marek Olšák maraeo at gmail.com
Tue Jun 16 16:04:55 PDT 2015


From: Marek Olšák <marek.olsak at amd.com>

---
 src/mesa/state_tracker/st_extensions.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/src/mesa/state_tracker/st_extensions.c b/src/mesa/state_tracker/st_extensions.c
index 8cebc7d..f4266b7 100644
--- a/src/mesa/state_tracker/st_extensions.c
+++ b/src/mesa/state_tracker/st_extensions.c
@@ -746,6 +746,11 @@ void st_init_extensions(struct pipe_screen *screen,
 #endif
    }
 
+   if (screen->get_shader_param(screen, PIPE_SHADER_TESS_CTRL,
+                                PIPE_SHADER_CAP_MAX_INSTRUCTIONS) > 0) {
+      extensions->ARB_tessellation_shader = GL_TRUE;
+   }
+
    if (screen->get_param(screen, PIPE_CAP_PRIMITIVE_RESTART)) {
       extensions->NV_primitive_restart = GL_TRUE;
    }
-- 
2.1.0



More information about the mesa-dev mailing list