diff options
author | Eric Anholt <eric@anholt.net> | 2011-01-30 21:13:17 -0800 |
---|---|---|
committer | Eric Anholt <eric@anholt.net> | 2011-02-04 12:18:38 -0600 |
commit | 1b80622c4e94e8c59eb2f7ee9989d99712baff8f (patch) | |
tree | cdb3e1db0dd030d6f9a13c3897d7faafaf990ab2 /src/mesa/drivers/dri/i965/brw_vtbl.c | |
parent | 95cdce7f703ff24ee39ec9a341141622842d61b9 (diff) |
i965: Drop the dead tracking of color_regions[].
We pull the draw regions right out of the renderbuffers these days.
Diffstat (limited to 'src/mesa/drivers/dri/i965/brw_vtbl.c')
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_vtbl.c | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_vtbl.c b/src/mesa/drivers/dri/i965/brw_vtbl.c index 100a21b59d..a7bed95732 100644 --- a/src/mesa/drivers/dri/i965/brw_vtbl.c +++ b/src/mesa/drivers/dri/i965/brw_vtbl.c @@ -73,9 +73,6 @@ static void brw_destroy_context( struct intel_context *intel ) free(brw->wm.compile_data); } - for (i = 0; i < brw->state.nr_color_regions; i++) - intel_region_release(&brw->state.color_regions[i]); - brw->state.nr_color_regions = 0; intel_region_release(&brw->state.depth_region); dri_bo_release(&brw->curbe.curbe_bo); @@ -122,20 +119,14 @@ static void brw_set_draw_region( struct intel_context *intel, GLuint num_color_regions) { struct brw_context *brw = brw_context(&intel->ctx); - GLuint i; /* release old color/depth regions */ if (brw->state.depth_region != depth_region) brw->state.dirty.brw |= BRW_NEW_DEPTH_BUFFER; - for (i = 0; i < brw->state.nr_color_regions; i++) - intel_region_release(&brw->state.color_regions[i]); intel_region_release(&brw->state.depth_region); /* reference new color/depth regions */ - for (i = 0; i < num_color_regions; i++) - intel_region_reference(&brw->state.color_regions[i], color_regions[i]); intel_region_reference(&brw->state.depth_region, depth_region); - brw->state.nr_color_regions = num_color_regions; } |