shader: Do not emit textureQueryLevels with GLES

Signed-off-by: Elie Tournier <elie.tournier@collabora.com>
Reviewed-by: Gert Wollny <gert.wollny@collabora.com>
Reviewed-by: Rohan Garg <rohan.garg@collabora.com>
macos/master
Elie Tournier 4 years ago committed by Gert Wollny
parent 30eff50d54
commit 6f72e54912
  1. 2
      src/vrend_shader.c

@ -2281,6 +2281,8 @@ static void emit_txq(struct dump_ctx *ctx,
ctx->shader_req_bits |= SHADER_REQ_TXQ_LEVELS; ctx->shader_req_bits |= SHADER_REQ_TXQ_LEVELS;
if (inst->Dst[0].Register.WriteMask & 0x7) if (inst->Dst[0].Register.WriteMask & 0x7)
twm = TGSI_WRITEMASK_W; twm = TGSI_WRITEMASK_W;
if (!ctx->cfg->use_gles)
emit_buff(&ctx->glsl_strbufs, "%s%s = %s(textureQueryLevels(%s));\n", dst, emit_buff(&ctx->glsl_strbufs, "%s%s = %s(textureQueryLevels(%s));\n", dst,
get_wm_string(twm), get_string(dtypeprefix), get_wm_string(twm), get_string(dtypeprefix),
srcs[sampler_index]); srcs[sampler_index]);

Loading…
Cancel
Save