i965: Delete unused brw->sol.offset_0_batch_start field.
authorKenneth Graunke <kenneth@whitecape.org>
Fri, 17 May 2013 18:00:01 +0000 (11:00 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Tue, 21 May 2013 20:29:24 +0000 (13:29 -0700)
This was only used for the the non-hardware context code.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Eric Anholt <eric@anholt.net>
Reviewed-by: Paul Berry <stereotype441@gmail.com>
src/mesa/drivers/dri/i965/brw_context.h
src/mesa/drivers/dri/i965/brw_vtbl.c
src/mesa/drivers/dri/i965/gen6_sol.c

index fbff10b2e4497457668339c4edf788a5cbb2572b..8587dd0bf943be9f71fccd9613a52c35acbacb46 100644 (file)
@@ -1088,7 +1088,6 @@ struct brw_context
    struct brw_sol_state {
       uint32_t svbi_0_starting_index;
       uint32_t svbi_0_max_index;
-      uint32_t offset_0_batch_start;
       uint32_t primitives_generated;
       uint32_t primitives_written;
       bool counting_primitives_generated;
index 4ca83e4cc51bea2ef59646c6e63586eba6e8162d..96a6cd5e7e028e47f64e964f01216e979bead16e 100644 (file)
@@ -197,12 +197,6 @@ static void brw_new_batch( struct intel_context *intel )
 
    brw->state_batch_count = 0;
 
-   /* Gen7 needs to track what the real transform feedback vertex count was at
-    * the start of the batch, since the kernel will be resetting the offset to
-    * 0.
-    */
-   brw->sol.offset_0_batch_start = brw->sol.svbi_0_starting_index;
-
    brw->ib.type = -1;
 
    /* Mark that the current program cache BO has been used by the GPU.
index bb2dd12393034ab6febc0dd8a8afed58eae1a854..668a99e503dcf8e7a251f720f7ac35350f51af0a 100644 (file)
@@ -181,7 +181,6 @@ brw_begin_transform_feedback(struct gl_context *ctx, GLenum mode,
    brw->state.dirty.brw |= BRW_NEW_SOL_INDICES;
    brw->sol.svbi_0_starting_index = 0;
    brw->sol.svbi_0_max_index = max_index;
-   brw->sol.offset_0_batch_start = 0;
 
    if (intel->gen >= 7) {
       /* Reset the SOL buffer offset register. */