vrend,caps: Add GLES entry for gl_prim_restart

Use the new cap code path for setting it on GLES

Reviewed-by: Gurchetan Singh <gurchetansingh@chromium.org>
Reviewed-by: Erik Faye-Lund <erik.faye-lund@collabora.com>
Signed-off-by: Gert Wollny <gert.wollny@collabora.com>
Signed-off-by: Jakob Bornecrantz <jakob@collabora.com>
macos/master
Gert Wollny 6 years ago committed by Jakob Bornecrantz
parent adbd163914
commit 0bed90c245
  1. 6
      src/vrend_renderer.c

@ -166,7 +166,7 @@ static const struct {
[feat_framebuffer_fetch] = { UNAVAIL, UNAVAIL, { "GL_EXT_shader_framebuffer_fetch" } }, [feat_framebuffer_fetch] = { UNAVAIL, UNAVAIL, { "GL_EXT_shader_framebuffer_fetch" } },
[feat_geometry_shader] = { 32, UNAVAIL, {} }, [feat_geometry_shader] = { 32, UNAVAIL, {} },
[feat_gl_conditional_render] = { 30, 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_gles_khr_robustness] = { UNAVAIL, UNAVAIL, { "GL_KHR_robustness" } },
[feat_gles31_vertex_attrib_binding] = { 43, 31, { "GL_ARB_vertex_attrib_binding" } }, [feat_gles31_vertex_attrib_binding] = { 43, 31, { "GL_ARB_vertex_attrib_binding" } },
[feat_images] = { 42, 31, { "GL_ARB_shader_image_load_store" } }, [feat_images] = { 42, 31, { "GL_ARB_shader_image_load_store" } },
@ -7864,10 +7864,6 @@ static void vrend_renderer_fill_caps_gles(int gles_ver, union virgl_caps *caps)
} else { } else {
caps->v1.glsl_level = 120; 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, static void vrend_renderer_fill_caps_gl(bool fill_capset2, int gl_ver,

Loading…
Cancel
Save