[virglrenderer-devel] [PATCH 2/4] vrend: Add GL_ARB_uniform_buffer_object for gles
Jakob Bornecrantz
jakob at collabora.com
Wed May 16 14:34:25 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 6d61284..7e04609 100644
--- a/src/vrend_renderer.c
+++ b/src/vrend_renderer.c
@@ -6759,6 +6759,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 (gles_ver >= 30) {
caps->v1.bset.texture_multisample = 1;
}
--
2.14.1
More information about the virglrenderer-devel
mailing list