r300: The vpi, vpp, and vps counts are already initialized; don't do it twice.
authorOliver McFadden <z3ro.geek@gmail.com>
Wed, 20 Jun 2007 12:23:47 +0000 (12:23 +0000)
committerOliver McFadden <z3ro.geek@gmail.com>
Sun, 24 Jun 2007 14:01:19 +0000 (14:01 +0000)
src/mesa/drivers/dri/r300/r300_state.c

index 03c65b467504d76702dca0ce362185ceb884b8b5..9d6de67bbf3ad8b2c488fb1458abf5786f4e5f1f 100644 (file)
@@ -1590,7 +1590,6 @@ static void r300SetupVertexProgram(r300ContextPtr rmesa)
        int param_count;
        struct r300_vertex_program *prog = (struct r300_vertex_program *)CURRENT_VERTEX_SHADER(ctx);
 
-       ((drm_r300_cmd_header_t *) rmesa->hw.vpp.cmd)->vpu.count = 0;
        R300_STATECHANGE(rmesa, vpp);
        param_count = r300VertexProgUpdateParams(ctx, (struct r300_vertex_program_cont *)
                                                 ctx->VertexProgram._Current /*prog */ ,
@@ -1598,10 +1597,6 @@ static void r300SetupVertexProgram(r300ContextPtr rmesa)
        bump_vpu_count(rmesa->hw.vpp.cmd, param_count);
        param_count /= 4;
 
-       /* Reset state, in case we don't use something */
-       ((drm_r300_cmd_header_t *) rmesa->hw.vpi.cmd)->vpu.count = 0;
-       ((drm_r300_cmd_header_t *) rmesa->hw.vps.cmd)->vpu.count = 0;
-
        setup_vertex_shader_fragment(rmesa, VSF_DEST_PROGRAM, &(prog->program));
 #if 0
        setup_vertex_shader_fragment(rmesa, VSF_DEST_UNKNOWN1, &(rmesa->state.vertex_shader.unknown1));