store's to RC/HC didn't work (bug 976287)
authorBrian Paul <brian.paul@tungstengraphics.com>
Sun, 20 Jun 2004 19:16:55 +0000 (19:16 +0000)
committerBrian Paul <brian.paul@tungstengraphics.com>
Sun, 20 Jun 2004 19:16:55 +0000 (19:16 +0000)
src/mesa/swrast/s_nvfragprog.c

index f679ca67a2af7e84752f7085dabe83c3871703b4..cc88e86d9aab20870dc5b8ae4a5a3bfd3519e501 100644 (file)
@@ -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;