[virglrenderer-devel] [PATCH] vrend: Add GL_ARB_uniform_buffer_object for gles
Jakob Bornecrantz
jakob at collabora.com
Tue Apr 3 13:47:54 UTC 2018
Signed-off-by: Jakob Bornecrantz <jakob at collabora.com>
---
src/vrend_renderer.c | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/src/vrend_renderer.c b/src/vrend_renderer.c
index 23bf472..0d4e4a5 100644
--- a/src/vrend_renderer.c
+++ b/src/vrend_renderer.c
@@ -6672,6 +6672,13 @@ void vrend_renderer_fill_caps_gles(uint32_t set, uint32_t version,
caps->v1.bset.primitive_restart = 1;
}
+ if (gles_ver >= 30) {
+ caps->v1.bset.instanceid = 1;
+ glGetIntegerv(GL_MAX_VERTEX_UNIFORM_BLOCKS, &max);
+ vrend_state.max_uniform_blocks = max;
+ caps->v1.max_uniform_blocks = max + 1;
+ }
+
if (!fill_capset2) {
return;
}
--
2.14.1
More information about the virglrenderer-devel
mailing list