summaryrefslogtreecommitdiffstats
path: root/src/mesa/state_tracker
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2015-02-22 19:50:42 +0100
committerMarek Olšák <[email protected]>2015-07-23 00:59:30 +0200
commit7626ad8d6daad147bf9a1a82fa4c3ac9e2d3347c (patch)
tree1dcd462ce97b5652db3816d3e4ef915b646d3f98 /src/mesa/state_tracker
parentbda9094f1d69817ed1a51677d38e157ec3b37826 (diff)
st/mesa: enable tessellation if the driver supports it
Diffstat (limited to 'src/mesa/state_tracker')
-rw-r--r--src/mesa/state_tracker/st_extensions.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/mesa/state_tracker/st_extensions.c b/src/mesa/state_tracker/st_extensions.c
index 899442fe43e..dc5cdfd1fe7 100644
--- a/src/mesa/state_tracker/st_extensions.c
+++ b/src/mesa/state_tracker/st_extensions.c
@@ -747,6 +747,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;
}