[virglrenderer-devel] [PATCH] gles: report maximum vertex-attrib stride to guest

Erik Faye-Lund erik.faye-lund at collabora.com
Thu Jul 19 16:03:22 UTC 2018


Similar to e387116, we also need to report this for GLES hosts.

Signed-off-by: Erik Faye-Lund <erik.faye-lund at collabora.com>
---

Without this, there's no chance for GLES hosts to get GLES3.1 support.

Dave: Sorry for the spam, I sent the previous copy to the wrong mailing
list.

 src/vrend_renderer.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/vrend_renderer.c b/src/vrend_renderer.c
index 9fb2f92..405993a 100644
--- a/src/vrend_renderer.c
+++ b/src/vrend_renderer.c
@@ -7396,6 +7396,9 @@ static void vrend_renderer_fill_caps_gles(uint32_t set, UNUSED uint32_t version,
    if (gles_ver >= 31)
       glGetIntegerv(GL_SHADER_STORAGE_BUFFER_OFFSET_ALIGNMENT, (GLint*)&caps->v2.shader_buffer_offset_alignment);
 
+   if (gles_ver >= 31)
+      glGetIntegerv(GL_MAX_VERTEX_ATTRIB_STRIDE, (GLint*)&caps->v2.max_vertex_attrib_stride);
+
    /* Not available on GLES */
    caps->v2.texture_buffer_offset_alignment = 0;
 
-- 
2.18.0



More information about the virglrenderer-devel mailing list