From de00899d4a4563a52f64e48a57e10b396d14c575 Mon Sep 17 00:00:00 2001 From: Gert Wollny Date: Wed, 12 Sep 2018 17:31:27 +0200 Subject: [PATCH] vrend,feat: check for GL_OES_draw_buffers_indexed on GLES < 3.2 This helps expose GL_EXT_draw_buffers_indexed in the guest when the host is not GLES 3.2 but provides the extension. Enables tests dEQP-GLES31.functional.draw_buffers_indexed.random. max_required_draw_buffers.* Signed-off-by: Gert Wollny --- src/vrend_renderer.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/vrend_renderer.c b/src/vrend_renderer.c index afa11fc..3769fe0 100644 --- a/src/vrend_renderer.c +++ b/src/vrend_renderer.c @@ -178,8 +178,8 @@ static const struct { [feat_gles31_vertex_attrib_binding] = { 43, 31, { "GL_ARB_vertex_attrib_binding" } }, [feat_gpu_shader5] = { 40, 32, {"GL_ARB_gpu_shader5", "GL_EXT_gpu_shader5", "GL_OES_gpu_shader5" } }, [feat_images] = { 42, 31, { "GL_ARB_shader_image_load_store" } }, - [feat_indep_blend] = { 30, 32, { "GL_EXT_draw_buffers2" } }, - [feat_indep_blend_func] = { 40, 32, { "GL_ARB_draw_buffers_blend" } }, + [feat_indep_blend] = { 30, 32, { "GL_EXT_draw_buffers2", "GL_OES_draw_buffers_indexed" } }, + [feat_indep_blend_func] = { 40, 32, { "GL_ARB_draw_buffers_blend", "GL_OES_draw_buffers_indexed"} }, [feat_indirect_draw] = { 40, 31, { "GL_ARB_draw_indirect" } }, [feat_mesa_invert] = { UNAVAIL, UNAVAIL, { "GL_MESA_pack_invert" } }, [feat_ms_scaled_blit] = { UNAVAIL, UNAVAIL, { "GL_EXT_framebuffer_multisample_blit_scaled" } },