From 675444f92ec5d5d17cf0641c66384e2e67a68b35 Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Sun, 20 Jun 2004 19:16:52 +0000 Subject: store's to RC/HC didn't work (bug 976287) --- src/mesa/swrast/s_nvfragprog.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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; -- cgit v1.2.3