r300: Cleaned up the default vertex program code with longer lines.
authorOliver McFadden <z3ro.geek@gmail.com>
Wed, 26 Mar 2008 07:53:16 +0000 (07:53 +0000)
committerOliver McFadden <z3ro.geek@gmail.com>
Wed, 26 Mar 2008 07:53:16 +0000 (07:53 +0000)
src/mesa/drivers/dri/r300/r300_state.c

index f39245b247773503bc1a303e31bb948681b91b8b..c4de022d84a4833b1f37c867f7688d83a6d14935 100644 (file)
@@ -1659,34 +1659,10 @@ static void r300SetupDefaultVertexProgram(r300ContextPtr rmesa)
 
        for (i = VERT_ATTRIB_POS; i < VERT_ATTRIB_MAX; i++) {
                if (rmesa->state.sw_tcl_inputs[i] != -1) {
-                       prog->program.body.i[program_end + 0] =
-                           PVS_OP_DST_OPERAND(VE_MULTIPLY,
-                                      GL_FALSE,
-                                      GL_FALSE,
-                                      o_reg++,
-                                      VSF_FLAG_ALL,
-                                      PVS_DST_REG_OUT);
-                       prog->program.body.i[program_end + 1] =
-                           PVS_SRC_OPERAND(rmesa->state.sw_tcl_inputs[i],
-                                           PVS_SRC_SELECT_X,
-                                           PVS_SRC_SELECT_Y,
-                                           PVS_SRC_SELECT_Z,
-                                           PVS_SRC_SELECT_W,
-                                           PVS_SRC_REG_INPUT, VSF_FLAG_NONE);
-                       prog->program.body.i[program_end + 2] =
-                           PVS_SRC_OPERAND(rmesa->state.sw_tcl_inputs[i],
-                                           PVS_SRC_SELECT_FORCE_1,
-                                           PVS_SRC_SELECT_FORCE_1,
-                                           PVS_SRC_SELECT_FORCE_1,
-                                           PVS_SRC_SELECT_FORCE_1,
-                                           PVS_SRC_REG_INPUT, VSF_FLAG_NONE);
-                       prog->program.body.i[program_end + 3] =
-                           PVS_SRC_OPERAND(rmesa->state.sw_tcl_inputs[i],
-                                           PVS_SRC_SELECT_FORCE_1,
-                                           PVS_SRC_SELECT_FORCE_1,
-                                           PVS_SRC_SELECT_FORCE_1,
-                                           PVS_SRC_SELECT_FORCE_1,
-                                           /* FIXME */ 0, VSF_FLAG_NONE);
+                       prog->program.body.i[program_end + 0] = PVS_OP_DST_OPERAND(VE_MULTIPLY, GL_FALSE, GL_FALSE, o_reg++, VSF_FLAG_ALL, PVS_DST_REG_OUT);
+                       prog->program.body.i[program_end + 1] = PVS_SRC_OPERAND(rmesa->state.sw_tcl_inputs[i], PVS_SRC_SELECT_X, PVS_SRC_SELECT_Y, PVS_SRC_SELECT_Z, PVS_SRC_SELECT_W, PVS_SRC_REG_INPUT, VSF_FLAG_NONE);
+                       prog->program.body.i[program_end + 2] = PVS_SRC_OPERAND(rmesa->state.sw_tcl_inputs[i], PVS_SRC_SELECT_FORCE_1, PVS_SRC_SELECT_FORCE_1, PVS_SRC_SELECT_FORCE_1, PVS_SRC_SELECT_FORCE_1, PVS_SRC_REG_INPUT, VSF_FLAG_NONE);
+                       prog->program.body.i[program_end + 3] = PVS_SRC_OPERAND(rmesa->state.sw_tcl_inputs[i], PVS_SRC_SELECT_FORCE_1, PVS_SRC_SELECT_FORCE_1, PVS_SRC_SELECT_FORCE_1, PVS_SRC_SELECT_FORCE_1, PVS_SRC_REG_INPUT, VSF_FLAG_NONE);
                        program_end += 4;
                }
        }