From 95bed95df5ffaecbfcfd9836760131918eceedf7 Mon Sep 17 00:00:00 2001 From: Gert Wollny Date: Wed, 13 Mar 2019 17:03:48 +0100 Subject: [PATCH] shader: Don't emit GL_OES_gpu_shader5 on GLES This is not required and actually an error. Signed-off-by: Gert Wollny Reviewed-by: --- src/vrend_shader.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/vrend_shader.c b/src/vrend_shader.c index 7d8f446..252d9c4 100644 --- a/src/vrend_shader.c +++ b/src/vrend_shader.c @@ -4628,13 +4628,15 @@ iter_instruction(struct tgsi_iterate_context *iter, case TGSI_OPCODE_UMUL_HI: emit_buff(ctx, "umulExtended(%s, %s, umul_temp, mul_utemp);\n", srcs[0], srcs[1]); emit_buff(ctx, "%s = %s(%s(umul_temp%s));\n", dsts[0], get_string(dinfo.dstconv), get_string(dinfo.dtypeprefix), writemask); - ctx->shader_req_bits |= SHADER_REQ_GPU_SHADER5; + if (!ctx->cfg->use_gles) + ctx->shader_req_bits |= SHADER_REQ_GPU_SHADER5; ctx->write_mul_utemp = true; break; case TGSI_OPCODE_IMUL_HI: emit_buff(ctx, "imulExtended(%s, %s, imul_temp, mul_itemp);\n", srcs[0], srcs[1]); emit_buff(ctx, "%s = %s(%s(imul_temp%s));\n", dsts[0], get_string(dinfo.dstconv), get_string(dinfo.dtypeprefix), writemask); - ctx->shader_req_bits |= SHADER_REQ_GPU_SHADER5; + if (!ctx->cfg->use_gles) + ctx->shader_req_bits |= SHADER_REQ_GPU_SHADER5; ctx->write_mul_itemp = true; break;