shader: require GL_OES_texture_storage_multisample_2d_array for 2D MS.

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

Signed-off-by: Elie Tournier <elie.tournier@collabora.com>
Reviewed-By: Gert Wollny <gert.wollny@collabora.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
macos/master
Elie Tournier 6 years ago committed by Dave Airlie
parent 41a0fd8717
commit da81b0c93d
  1. 2
      src/vrend_shader.c

@ -3941,6 +3941,8 @@ static char *emit_header(struct dump_ctx *ctx, char *glsl_hdr)
{ {
if (ctx->cfg->use_gles) { if (ctx->cfg->use_gles) {
STRCAT_WITH_RET(glsl_hdr, "#version 300 es\n"); 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); PAD_GPU_SHADER5(glsl_hdr);
STRCAT_WITH_RET(glsl_hdr, "precision highp float;\n"); STRCAT_WITH_RET(glsl_hdr, "precision highp float;\n");
STRCAT_WITH_RET(glsl_hdr, "precision highp int;\n"); STRCAT_WITH_RET(glsl_hdr, "precision highp int;\n");

Loading…
Cancel
Save