[virglrenderer-devel] [PATCH 04/19] vrend: add tessellation availability flag

Dave Airlie airlied at gmail.com
Fri Jun 8 05:14:08 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 d2066bb..ab0cc94 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;
@@ -4275,6 +4276,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