[Mesa-dev] [PATCH 4/7] i965: Delete unused brw->sol.offset_0_batch_start field.

Kenneth Graunke kenneth at whitecape.org
Mon May 20 15:54:34 PDT 2013


This was only used for the the non-hardware context code.

Signed-off-by: Kenneth Graunke <kenneth at whitecape.org>
Cc: Eric Anholt <eric at anholt.net>
Cc: Paul Berry <stereotype441 at gmail.com>
---
 src/mesa/drivers/dri/i965/brw_context.h | 1 -
 src/mesa/drivers/dri/i965/brw_vtbl.c    | 6 ------
 src/mesa/drivers/dri/i965/gen6_sol.c    | 1 -
 3 files changed, 8 deletions(-)

diff --git a/src/mesa/drivers/dri/i965/brw_context.h b/src/mesa/drivers/dri/i965/brw_context.h
index fbff10b..8587dd0 100644
--- a/src/mesa/drivers/dri/i965/brw_context.h
+++ b/src/mesa/drivers/dri/i965/brw_context.h
@@ -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;
diff --git a/src/mesa/drivers/dri/i965/brw_vtbl.c b/src/mesa/drivers/dri/i965/brw_vtbl.c
index 4ca83e4..96a6cd5 100644
--- a/src/mesa/drivers/dri/i965/brw_vtbl.c
+++ b/src/mesa/drivers/dri/i965/brw_vtbl.c
@@ -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.
diff --git a/src/mesa/drivers/dri/i965/gen6_sol.c b/src/mesa/drivers/dri/i965/gen6_sol.c
index bb2dd12..668a99e 100644
--- a/src/mesa/drivers/dri/i965/gen6_sol.c
+++ b/src/mesa/drivers/dri/i965/gen6_sol.c
@@ -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. */
-- 
1.8.2.3



More information about the mesa-dev mailing list