Module: Mesa Branch: master Commit: 001247d230f022fffac68f4578348087a53d3940 URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=001247d230f022fffac68f4578348087a53d3940
Author: Eric Anholt <[email protected]> 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 _______________________________________________ mesa-commit mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/mesa-commit
