r300: Enable the vertprog point size again.
authorOliver McFadden <z3ro.geek@gmail.com>
Mon, 16 Jul 2007 12:21:38 +0000 (12:21 +0000)
committerOliver McFadden <z3ro.geek@gmail.com>
Mon, 16 Jul 2007 12:21:38 +0000 (12:21 +0000)
src/mesa/drivers/dri/r300/r300_emit.c
src/mesa/drivers/dri/r300/r300_vertprog.c

index 6da22f652f3f3c2d92204e9d321b1b38c7bcba2c..424bf44e595159dbe48d59d733bc2f1ca087cc93 100644 (file)
@@ -308,10 +308,10 @@ GLuint r300VAPOutputCntl0(GLcontext * ctx, GLuint OutputsWritten)
 
 #if 0
        if (OutputsWritten & (1 << VERT_RESULT_FOGC)) ;
+#endif
 
        if (OutputsWritten & (1 << VERT_RESULT_PSIZ))
                ret |= R300_VAP_OUTPUT_VTX_FMT_0__PT_SIZE_PRESENT;
-#endif
 
        return ret;
 }
index 7d8ac4c8c1302a81f5a7233b263ce73410206ceb..313d0b28cf218ddb71178f55140c6b0e6a6639ab 100644 (file)
@@ -924,11 +924,14 @@ static void t_inputs_outputs(struct r300_vertex_program *vp)
 
        assert(vp->key.OutputsWritten & (1 << VERT_RESULT_HPOS));
 
-       /* Assign outputs */
        if (vp->key.OutputsWritten & (1 << VERT_RESULT_HPOS)) {
                vp->outputs[VERT_RESULT_HPOS] = cur_reg++;
        }
 
+       if (vp->key.OutputsWritten & (1 << VERT_RESULT_PSIZ)) {
+               vp->outputs[VERT_RESULT_PSIZ] = cur_reg++;
+       }
+
        if (vp->key.OutputsWritten & (1 << VERT_RESULT_COL0)) {
                vp->outputs[VERT_RESULT_COL0] = cur_reg++;
        }
@@ -954,10 +957,6 @@ static void t_inputs_outputs(struct r300_vertex_program *vp)
        if (vp->key.OutputsWritten & (1 << VERT_RESULT_FOGC)) {
                vp->outputs[VERT_RESULT_FOGC] = cur_reg++;
        }
-
-       if (vp->key.OutputsWritten & (1 << VERT_RESULT_PSIZ)) {
-               vp->outputs[VERT_RESULT_PSIZ] = cur_reg++;
-       }
 #endif
 
        for (i = VERT_RESULT_TEX0; i <= VERT_RESULT_TEX7; i++) {