[virglrenderer-devel] [PATCH] shader: require GL_OES_texture_storage_multisample_2d_array for 2D MS.

Elie Tournier tournier.elie at gmail.com
Fri Aug 3 15:16:52 UTC 2018


This fix all dEQP-GLES31.functional.shaders.builtin_functions.* tests on GLES

Signed-off-by: Elie Tournier <elie.tournier at collabora.com>
---
I tested this patch on top of Gert's branch in order to run GLES31 on GLES.
https://gitlab.collabora.com/virgl-es/virglrenderer/tree/gerddie-enable-gles31-on-gles

 src/vrend_shader.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/vrend_shader.c b/src/vrend_shader.c
index bc846d1..20db7e1 100644
--- a/src/vrend_shader.c
+++ b/src/vrend_shader.c
@@ -3941,6 +3941,8 @@ static char *emit_header(struct dump_ctx *ctx, char *glsl_hdr)
 {
    if (ctx->cfg->use_gles) {
       STRCAT_WITH_RET(glsl_hdr, "#version 300 es\n");
+      if (ctx->shader_req_bits & SHADER_REQ_SAMPLER_MS)
+         STRCAT_WITH_RET(glsl_hdr, "#extension GL_OES_texture_storage_multisample_2d_array : require\n");
       PAD_GPU_SHADER5(glsl_hdr);
       STRCAT_WITH_RET(glsl_hdr, "precision highp float;\n");
       STRCAT_WITH_RET(glsl_hdr, "precision highp int;\n");
-- 
2.18.0



More information about the virglrenderer-devel mailing list