[virglrenderer-devel] [PATCH] vrend: Add GL_EXT_transform_feedback for gles

Jakob Bornecrantz jakob at collabora.com
Tue Apr 3 16:08:58 UTC 2018


Signed-off-by: Jakob Bornecrantz <jakob at collabora.com>
---
 src/vrend_renderer.c | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/src/vrend_renderer.c b/src/vrend_renderer.c
index 4a10a4e..c339fa2 100644
--- a/src/vrend_renderer.c
+++ b/src/vrend_renderer.c
@@ -6679,6 +6679,14 @@ void vrend_renderer_fill_caps_gles(uint32_t set, uint32_t version,
       caps->v1.max_uniform_blocks = max + 1;
    }
 
+   if (gles_ver >= 30) {
+      glGetIntegerv(GL_MAX_TRANSFORM_FEEDBACK_SEPARATE_ATTRIBS, &max);
+      /* As with the earlier version of transform feedback this min 4. */
+      if (max >= 4) {
+         caps->v1.max_streamout_buffers = 4;
+      }
+   }
+
    if (!fill_capset2) {
       return;
    }
-- 
2.14.1



More information about the virglrenderer-devel mailing list