Fix secondary color for VP's
authorAapo Tahkola <aet@rasterburn.org>
Tue, 6 Dec 2005 19:49:18 +0000 (19:49 +0000)
committerAapo Tahkola <aet@rasterburn.org>
Tue, 6 Dec 2005 19:49:18 +0000 (19:49 +0000)
src/mesa/drivers/dri/r300/r300_maos.c
src/mesa/drivers/dri/r300/r300_vertexprog.c

index 426d0288271d521a4dfe9c7a1ca86bb344742ad7..447cd026d5fdeb363a41b5ee05fb80015940d550 100644 (file)
@@ -523,9 +523,9 @@ void r300EmitArrays(GLcontext * ctx, GLboolean immd)
                        r300->hw.vof.cmd[R300_VOF_CNTL_0] |= R300_VAP_OUTPUT_VTX_FMT_0__POS_PRESENT;
                if(OutputsWritten & (1<<VERT_RESULT_COL0))
                        r300->hw.vof.cmd[R300_VOF_CNTL_0] |= R300_VAP_OUTPUT_VTX_FMT_0__COLOR_PRESENT;
-               /*if(OutputsWritten & (1<<VERT_RESULT_COL1))
+               if(OutputsWritten & (1<<VERT_RESULT_COL1))
                        r300->hw.vof.cmd[R300_VOF_CNTL_0] |= R300_VAP_OUTPUT_VTX_FMT_0__COLOR_1_PRESENT;
-               if(OutputsWritten & (1<<VERT_RESULT_BFC0))
+               /*if(OutputsWritten & (1<<VERT_RESULT_BFC0))
                        r300->hw.vof.cmd[R300_VOF_CNTL_0] |= R300_VAP_OUTPUT_VTX_FMT_0__COLOR_2_PRESENT;
                if(OutputsWritten & (1<<VERT_RESULT_BFC1))
                        r300->hw.vof.cmd[R300_VOF_CNTL_0] |= R300_VAP_OUTPUT_VTX_FMT_0__COLOR_3_PRESENT;*/
@@ -843,9 +843,9 @@ void r300EmitArraysVtx(GLcontext * ctx, GLboolean immd)
                        r300->hw.vof.cmd[R300_VOF_CNTL_0] |= R300_VAP_OUTPUT_VTX_FMT_0__POS_PRESENT;
                if(OutputsWritten & (1<<VERT_RESULT_COL0))
                        r300->hw.vof.cmd[R300_VOF_CNTL_0] |= R300_VAP_OUTPUT_VTX_FMT_0__COLOR_PRESENT;
-               /*if(OutputsWritten & (1<<VERT_RESULT_COL1))
+               if(OutputsWritten & (1<<VERT_RESULT_COL1))
                        r300->hw.vof.cmd[R300_VOF_CNTL_0] |= R300_VAP_OUTPUT_VTX_FMT_0__COLOR_1_PRESENT;
-               if(OutputsWritten & (1<<VERT_RESULT_BFC0))
+               /*if(OutputsWritten & (1<<VERT_RESULT_BFC0))
                        r300->hw.vof.cmd[R300_VOF_CNTL_0] |= R300_VAP_OUTPUT_VTX_FMT_0__COLOR_2_PRESENT;
                if(OutputsWritten & (1<<VERT_RESULT_BFC1))
                        r300->hw.vof.cmd[R300_VOF_CNTL_0] |= R300_VAP_OUTPUT_VTX_FMT_0__COLOR_3_PRESENT;*/
index f6c9db9fdc1f3f755a5f7cbe8c102dcd6c6e7207..c7a0c105266f74b7f0fec331c9b7cfc2d5ddb3ea 100644 (file)
@@ -475,13 +475,13 @@ void translate_vertex_shader(struct r300_vertex_program *vp)
        if(mesa_vp->Base.OutputsWritten & (1 << VERT_RESULT_COL0))
                vp->outputs[VERT_RESULT_COL0] = cur_reg++;
        
+       if(mesa_vp->Base.OutputsWritten & (1 << VERT_RESULT_COL1))
+               vp->outputs[VERT_RESULT_COL1] = cur_reg++;
+       
 #if 0 /* Not supported yet */
        if(mesa_vp->Base.OutputsWritten & (1 << VERT_RESULT_BFC0))
                vp->outputs[VERT_RESULT_BFC0] = cur_reg++;
        
-       if(mesa_vp->Base.OutputsWritten & (1 << VERT_RESULT_COL1))
-               vp->outputs[VERT_RESULT_COL1] = cur_reg++;
-       
        if(mesa_vp->Base.OutputsWritten & (1 << VERT_RESULT_BFC1))
                vp->outputs[VERT_RESULT_BFC1] = cur_reg++;