Mesa (master): vc4: Fix perspective interpolation.
Eric Anholt
anholt at kemper.freedesktop.org
Fri Sep 19 18:26:37 UTC 2014
Module: Mesa
Branch: master
Commit: 001247d230f022fffac68f4578348087a53d3940
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=001247d230f022fffac68f4578348087a53d3940
Author: Eric Anholt <eric at anholt.net>
Date: Fri Sep 19 10:09:55 2014 -0700
vc4: Fix perspective interpolation.
Fixes the mesa reflect demo and 6 tests under interpolation/
---
src/gallium/drivers/vc4/vc4_program.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/gallium/drivers/vc4/vc4_program.c b/src/gallium/drivers/vc4/vc4_program.c
index a527f8b..38d0608 100644
--- a/src/gallium/drivers/vc4/vc4_program.c
+++ b/src/gallium/drivers/vc4/vc4_program.c
@@ -852,7 +852,7 @@ emit_fragment_varying(struct vc4_compile *c, int index)
};
/* XXX: multiply by W */
- return qir_VARY_ADD_C(c, qir_MOV(c, vary));
+ return qir_VARY_ADD_C(c, qir_FMUL(c, vary, qir_FRAG_W(c)));
}
static void
More information about the mesa-commit
mailing list