diff options
author | Eric Anholt <[email protected]> | 2014-09-19 10:06:49 -0700 |
---|---|---|
committer | Eric Anholt <[email protected]> | 2014-09-19 11:09:04 -0700 |
commit | dcd03e74768bb4ba55b5742250f3ed15771b6f66 (patch) | |
tree | dc9b0ec1e5166452e45bb1c606da2ebc6cb435ee /src/gallium/drivers/vc4/vc4_program.c | |
parent | f2c39dd0e19e83dac922878b00a4b871c839b609 (diff) |
vc4: Use the same method as for FRAG_Z to handle fragcoord W.
I need to get the non-reciprocal version of W for interpolation, anyway.
Diffstat (limited to 'src/gallium/drivers/vc4/vc4_program.c')
-rw-r--r-- | src/gallium/drivers/vc4/vc4_program.c | 2 |
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 1afb587754b..a527f8b0e57 100644 --- a/src/gallium/drivers/vc4/vc4_program.c +++ b/src/gallium/drivers/vc4/vc4_program.c @@ -840,7 +840,7 @@ emit_fragcoord_input(struct vc4_compile *c, int attr) qir_FMUL(c, qir_ITOF(c, qir_FRAG_Z(c)), qir_uniform_f(c, 1.0 / 0xffffff)); - c->inputs[attr * 4 + 3] = qir_FRAG_RCP_W(c); + c->inputs[attr * 4 + 3] = qir_RCP(c, qir_FRAG_W(c)); } static struct qreg |