shader: also require GL_EXT_shader_framebuffer_fetch for gles

Just like we do for normal GL, we also need to generate the extension
require string for OpenGL ES.

This fixes dEQP-GLES31.functional.blend_equation_advanced.*

Signed-off-by: Erik Faye-Lund <erik.faye-lund@collabora.com>
Tested-by: Gert Wollny gert.wollny@collabora.com
Signed-off-by: Dave Airlie <airlied@redhat.com>
macos/master
Erik Faye-Lund 6 years ago committed by Dave Airlie
parent 47b89a4a63
commit 964d08aa3b
  1. 5
      src/vrend_shader.c

@ -4004,6 +4004,11 @@ static char *emit_header(struct dump_ctx *ctx, char *glsl_hdr)
if (ctx->shader_req_bits & SHADER_REQ_SAMPLER_MS)
STRCAT_WITH_RET(glsl_hdr, "#extension GL_OES_texture_storage_multisample_2d_array : require\n");
if (ctx->prog_type == TGSI_PROCESSOR_FRAGMENT) {
if (ctx->shader_req_bits & SHADER_REQ_FBFETCH)
STRCAT_WITH_RET(glsl_hdr, "#extension GL_EXT_shader_framebuffer_fetch : require\n");
}
if (ctx->prog_type == TGSI_PROCESSOR_GEOMETRY) {
STRCAT_WITH_RET(glsl_hdr, "#extension GL_EXT_geometry_shader : require\n");
if (ctx->shader_req_bits & SHADER_REQ_PSIZE)

Loading…
Cancel
Save