From: Oliver McFadden Date: Wed, 26 Mar 2008 07:53:16 +0000 (+0000) Subject: r300: Cleaned up the default vertex program code with longer lines. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=82770b8c835812dd04d93083a0ac6cc2b6250e46;p=mesa.git r300: Cleaned up the default vertex program code with longer lines. --- diff --git a/src/mesa/drivers/dri/r300/r300_state.c b/src/mesa/drivers/dri/r300/r300_state.c index f39245b2477..c4de022d84a 100644 --- a/src/mesa/drivers/dri/r300/r300_state.c +++ b/src/mesa/drivers/dri/r300/r300_state.c @@ -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; } }