From 7576b9b19d433f90c7f9daae01888e7bfea7e7b9 Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Sun, 20 Jun 2004 19:16:55 +0000 Subject: store's to RC/HC didn't work (bug 976287) --- src/mesa/swrast/s_nvfragprog.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/mesa/swrast') diff --git a/src/mesa/swrast/s_nvfragprog.c b/src/mesa/swrast/s_nvfragprog.c index f679ca67a2..cc88e86d9a 100644 --- a/src/mesa/swrast/s_nvfragprog.c +++ b/src/mesa/swrast/s_nvfragprog.c @@ -391,6 +391,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]; @@ -402,6 +403,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; -- cgit v1.2.3