[virglrenderer-devel] [PATCH 6/8] vrend: don't call glShaderStorageBlockBinding on GLES and warn about it's use
Gert Wollny
gert.wollny at collabora.com
Sun Aug 5 14:46:01 UTC 2018
v2: change warning message into debug message
Signed-off-by: Gert Wollny <gert.wollny at collabora.com>
---
src/vrend_renderer.c | 12 ++++++++++--
1 file changed, 10 insertions(+), 2 deletions(-)
diff --git a/src/vrend_renderer.c b/src/vrend_renderer.c
index 1e59d59..1a52064 100644
--- a/src/vrend_renderer.c
+++ b/src/vrend_renderer.c
@@ -3603,8 +3607,12 @@ static void vrend_draw_bind_ssbo_shader(struct vrend_context *ctx, int shader_ty
res = (struct vrend_resource *)ssbo->res;
glBindBufferRange(GL_SHADER_STORAGE_BUFFER, i, res->id,
ssbo->buffer_offset, ssbo->buffer_size);
- if (ctx->sub->prog->ssbo_locs[shader_type][i] != GL_INVALID_INDEX)
- glShaderStorageBlockBinding(ctx->sub->prog->id, ctx->sub->prog->ssbo_locs[shader_type][i], i);
+ if (ctx->sub->prog->ssbo_locs[shader_type][i] != GL_INVALID_INDEX) {
+ if (!vrend_state.use_gles)
+ glShaderStorageBlockBinding(ctx->sub->prog->id, ctx->sub->prog->ssbo_locs[shader_type][i], i);
+ else
+ debug_printf("glShaderStorageBlockBinding not supported on gles \n");
+ }
}
}
--
2.17.1
More information about the virglrenderer-devel
mailing list