Mesa (master): nvc0: fix emit_dfdx,dfdy

Christoph Bumiller chrisbmr at kemper.freedesktop.org
Wed Feb 16 14:48:36 UTC 2011


Module: Mesa
Branch: master
Commit: 3f1361e060822c369f3b375bc695c9e65db59c29
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=3f1361e060822c369f3b375bc695c9e65db59c29

Author: Christoph Bumiller <e0425955 at student.tuwien.ac.at>
Date:   Wed Feb 16 11:57:00 2011 +0100

nvc0: fix emit_dfdx,dfdy

---

 src/gallium/drivers/nvc0/nvc0_pc_emit.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/src/gallium/drivers/nvc0/nvc0_pc_emit.c b/src/gallium/drivers/nvc0/nvc0_pc_emit.c
index b2a8056..c10f920 100644
--- a/src/gallium/drivers/nvc0/nvc0_pc_emit.c
+++ b/src/gallium/drivers/nvc0/nvc0_pc_emit.c
@@ -479,6 +479,7 @@ emit_ddx(struct nv_pc *pc, struct nv_instruction *i)
 {
    i->quadop = 0x99;
    i->lanes = 4;
+   i->src[1] = i->src[0];
    emit_quadop(pc, i);
 }
 
@@ -487,6 +488,7 @@ emit_ddy(struct nv_pc *pc, struct nv_instruction *i)
 {
    i->quadop = 0xa5;
    i->lanes = 5;
+   i->src[1] = i->src[0];
    emit_quadop(pc, i);
 }
 




More information about the mesa-commit mailing list