summaryrefslogtreecommitdiffstats
path: root/src/gallium
diff options
context:
space:
mode:
authorEric Anholt <[email protected]>2014-09-19 10:09:55 -0700
committerEric Anholt <[email protected]>2014-09-19 11:25:02 -0700
commit001247d230f022fffac68f4578348087a53d3940 (patch)
tree1cbccb7bda8d10919502d1f73a36af8516a8fc47 /src/gallium
parentdcd03e74768bb4ba55b5742250f3ed15771b6f66 (diff)
vc4: Fix perspective interpolation.
Fixes the mesa reflect demo and 6 tests under interpolation/
Diffstat (limited to 'src/gallium')
-rw-r--r--src/gallium/drivers/vc4/vc4_program.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/vc4/vc4_program.c b/src/gallium/drivers/vc4/vc4_program.c
index a527f8b0e57..38d0608480c 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