[virglrenderer-devel] [PATCH 05/21] vrend: add tessellation availability flag
Dave Airlie
airlied at gmail.com
Wed Jun 13 00:56:39 UTC 2018
From: Dave Airlie <airlied at redhat.com>
This just adds a flag to say we have tessellation available
---
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;
--
2.14.3
More information about the virglrenderer-devel
mailing list