From 2d02aadc6ef8f3af204d5a35c79cc42c017219fc Mon Sep 17 00:00:00 2001 From: Dave Airlie Date: Fri, 8 Jun 2018 12:57:08 +1000 Subject: [PATCH] vrend: add tessellation availability flag This just adds a flag to say we have tessellation available Tested-by: Elie Tournier Reviewed-by: Elie Tournier Tested-by: Jakob Bornecrantz --- src/vrend_renderer.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/vrend_renderer.c b/src/vrend_renderer.c index 2898cf8..52a781d 100644 --- a/src/vrend_renderer.c +++ b/src/vrend_renderer.c @@ -119,6 +119,7 @@ struct global_renderer_state { bool have_texture_buffer_range; bool have_polygon_offset_clamp; bool have_texture_storage; + bool have_tessellation; /* these appeared broken on at least one driver */ bool use_explicit_locations; @@ -4279,6 +4280,9 @@ int vrend_renderer_init(struct vrend_if_cbs *cbs, uint32_t flags) if (gl_ver >= 40 || epoxy_has_gl_extension("GL_ARB_sample_shading")) vrend_state.have_sample_shading = true; + if (gl_ver >= 40 || epoxy_has_gl_extension("GL_ARB_tessellation_shader")) + vrend_state.have_tessellation = true; + if (gl_ver >= 43 || epoxy_has_gl_extension("GL_ARB_texture_buffer_range")) vrend_state.have_texture_buffer_range = true;