summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBrian Paul <brian.paul@tungstengraphics.com>2003-04-21 15:03:46 +0000
committerBrian Paul <brian.paul@tungstengraphics.com>2003-04-21 15:03:46 +0000
commit7bb832f9f7f417616c949e7152b955572b9d0212 (patch)
treec55a3a95552887cd8fe8607b08f30b53c2ff3a66 /src
parente5b244ff7f984805c1bcc020342f1300f2639c71 (diff)
fix DDX, DDY instructions (probably not finished though)
Diffstat (limited to 'src')
-rw-r--r--src/mesa/swrast/s_nvfragprog.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mesa/swrast/s_nvfragprog.c b/src/mesa/swrast/s_nvfragprog.c
index 5700b1e784..59d7c0f826 100644
--- a/src/mesa/swrast/s_nvfragprog.c
+++ b/src/mesa/swrast/s_nvfragprog.c
@@ -1,5 +1,3 @@
-/* $Id: s_nvfragprog.c,v 1.15 2003/04/11 01:20:15 brianp Exp $ */
-
/*
* Mesa 3-D graphics library
* Version: 5.1
@@ -556,6 +554,7 @@ execute_program( GLcontext *ctx,
* Finally, find the difference in the register values for
* the original and derivative runs.
*/
+ fetch_vector4( &inst->SrcReg[0], machine, program, a);
init_machine_deriv(ctx, machine, program, span,
'X', &dMachine);
execute_program(ctx, program, pc, &dMachine, span, column);
@@ -575,6 +574,7 @@ execute_program( GLcontext *ctx,
if (!fetch_vector4_deriv(&inst->SrcReg[0], span, 'Y', result)) {
init_machine_deriv(ctx, machine, program, span,
'Y', &dMachine);
+ fetch_vector4( &inst->SrcReg[0], machine, program, a);
execute_program(ctx, program, pc, &dMachine, span, column);
fetch_vector4( &inst->SrcReg[0], &dMachine, program, aNext );
result[0] = aNext[0] - a[0];