summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Paul <brian.paul@tungstengraphics.com>2004-06-20 19:16:52 +0000
committerBrian Paul <brian.paul@tungstengraphics.com>2004-06-20 19:16:52 +0000
commit675444f92ec5d5d17cf0641c66384e2e67a68b35 (patch)
tree112a66f45f84d4034706a810bda05618ca3b216f
parent6cfaa4e8e5de9450d749477d09d8f2e8a50180b3 (diff)
store's to RC/HC didn't work (bug 976287)
-rw-r--r--src/mesa/swrast/s_nvfragprog.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/mesa/swrast/s_nvfragprog.c b/src/mesa/swrast/s_nvfragprog.c
index 3124c89fc1..f7aac440e5 100644
--- a/src/mesa/swrast/s_nvfragprog.c
+++ b/src/mesa/swrast/s_nvfragprog.c
@@ -1,6 +1,6 @@
/*
* Mesa 3-D graphics library
- * Version: 6.0
+ * Version: 6.0.2
*
* Copyright (C) 1999-2004 Brian Paul All Rights Reserved.
*
@@ -390,6 +390,7 @@ store_vector4( const struct fp_instruction *inst,
const GLboolean clamp = inst->Saturate;
const GLboolean updateCC = inst->UpdateCondRegister;
GLfloat *dstReg;
+ GLfloat dummyReg[4];
GLfloat clampedValue[4];
const GLboolean *writeMask = dest->WriteMask;
GLboolean condWriteMask[4];
@@ -401,6 +402,9 @@ store_vector4( const struct fp_instruction *inst,
case PROGRAM_TEMPORARY:
dstReg = machine->Temporaries[dest->Index];
break;
+ case PROGRAM_WRITE_ONLY:
+ dstReg = dummyReg;
+ return;
default:
_mesa_problem(NULL, "bad register file in store_vector4(fp)");
return;