shader: Emit winsys_adjust_y when TGSI_SEMANTIC_PCOORD

Make sure that the condition for which we are emitting the uniform
corresponds to the one in the iter_declaration function.

Signed-off-by: Corentin Noël <corentin.noel@collabora.com>
Reviewed-by: Gert Wollny <gert.wollny@collabora.com>
macos/master
Corentin Noël 3 years ago
parent dbb81cf868
commit 3c1846eec0
  1. 3
      src/vrend_shader.c

@ -6632,7 +6632,8 @@ static void emit_ios_fs(const struct dump_ctx *ctx,
}
if (ctx->cfg->use_gles && !ctx->winsys_adjust_y_emitted &&
(ctx->key->fs.coord_replace & (1 << ctx->inputs[i].sid))) {
(ctx->inputs[i].name == TGSI_SEMANTIC_PCOORD ||
(ctx->key->fs.coord_replace & (1 << ctx->inputs[i].sid)))){
*winsys_adjust_y_emitted = true;
emit_hdr(glsl_strbufs, "uniform float winsys_adjust_y;\n");
}

Loading…
Cancel
Save