[virglrenderer-devel] [PATCH v3 3/7] vrend, caps: Add GLES entry for gl_prim_restart

Gert Wollny gert.wollny at collabora.com
Mon Jul 30 13:01:07 UTC 2018


Use the new cap code path for setting it on GLES

Signed-off-by: Gert Wollny <gert.wollny at collabora.com>
---
 src/vrend_renderer.c | 7 +------
 1 file changed, 1 insertion(+), 6 deletions(-)

diff --git a/src/vrend_renderer.c b/src/vrend_renderer.c
index 715d4a2..eae679e 100644
--- a/src/vrend_renderer.c
+++ b/src/vrend_renderer.c
@@ -153,7 +153,7 @@ static const  struct {
    [feat_dual_src_blend] = { 33, UNAVAIL, { "GL_ARB_blend_func_extended" } },
    [feat_geometry_shader] = { 32, UNAVAIL, {} },
    [feat_gl_conditional_render] = { 30, UNAVAIL, {} },
-   [feat_gl_prim_restart] = { 31, UNAVAIL, {} },
+   [feat_gl_prim_restart] = { 31, 30, {} },
    [feat_gles_khr_robustness] = { UNAVAIL, UNAVAIL, { "GL_KHR_robustness" } },
    [feat_gles31_vertex_attrib_binding] = { 43, 31, { "GL_ARB_vertex_attrib_binding" } },
    [feat_indep_blend] = { 30, UNAVAIL, { "GL_EXT_draw_buffers2" } },
@@ -7471,11 +7471,6 @@ static void vrend_renderer_fill_caps_gles(UNUSED bool fill_capset2, int gles_ver
    } else {
       caps->v1.glsl_level = 120;
    }
-
-   if (gles_ver >= 30) {
-      caps->v1.bset.primitive_restart = 1;
-   }
-
 }
 
 static void vrend_renderer_fill_caps_gl(bool fill_capset2, int gl_ver,
-- 
2.16.4



More information about the virglrenderer-devel mailing list