Mesa (master): freedreno/a2xx: ir2: remove pointcoord y invert
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Fri Sep 6 02:24:44 UTC 2019
Module: Mesa
Branch: master
Commit: 22799787b5bd593fe7b7d9d0ef742ff599998d80
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=22799787b5bd593fe7b7d9d0ef742ff599998d80
Author: Jonathan Marek <jonathan at marek.ca>
Date: Thu Sep 5 11:17:45 2019 -0400
freedreno/a2xx: ir2: remove pointcoord y invert
Fixes the following deqp test:
dEQP-GLES2.functional.shaders.builtin_variable.pointcoord
Signed-off-by: Jonathan Marek <jonathan at marek.ca>
Reviewed-by: Rob Clark <robdclark at chromium.org>
Reviewed-by: Eric Anholt <eric at anholt.net>
---
src/gallium/drivers/freedreno/a2xx/ir2_nir.c | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/src/gallium/drivers/freedreno/a2xx/ir2_nir.c b/src/gallium/drivers/freedreno/a2xx/ir2_nir.c
index bb3ca9c9c0c..c08566ab0ce 100644
--- a/src/gallium/drivers/freedreno/a2xx/ir2_nir.c
+++ b/src/gallium/drivers/freedreno/a2xx/ir2_nir.c
@@ -504,12 +504,10 @@ load_input(struct ir2_context *ctx, nir_dest *dst, unsigned idx)
switch (slot) {
case VARYING_SLOT_PNTC:
- /* need to extract with abs and invert y */
- instr = instr_create_alu_dest(ctx, nir_op_ffma, dst);
+ /* need to extract with abs */
+ instr = instr_create_alu_dest(ctx, nir_op_mov, dst);
instr->src[0] = ir2_src(ctx->f->inputs_count, IR2_SWIZZLE_ZW, IR2_SRC_INPUT);
instr->src[0].abs = true;
- instr->src[1] = load_const(ctx, (float[]) {1.0f, -1.0f}, 2);
- instr->src[2] = load_const(ctx, (float[]) {0.0f, 1.0f}, 2);
break;
case VARYING_SLOT_POS:
/* need to extract xy with abs and add tile offset on a20x
More information about the mesa-commit
mailing list