Commit 7626ad8d authored by Marek Olšák's avatar Marek Olšák

st/mesa: enable tessellation if the driver supports it

parent bda9094f
......@@ -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;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment