summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKeith Whitwell <keithw@vmware.com>2009-11-04 23:41:30 +0000
committerKeith Whitwell <keithw@vmware.com>2009-11-04 23:41:30 +0000
commitc2e51effe6228aa2fe6610c695b494e86490bc80 (patch)
treed74e1ecd97b6f2ca0deee7466b6d7817c3d40d1d
parent220566d8dc4ff023ef833fd6519ab7b187e598d2 (diff)
i965g: fix order of calculation of brw->wm.nr_surfaces
-rw-r--r--src/gallium/drivers/i965/brw_wm_surface_state.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gallium/drivers/i965/brw_wm_surface_state.c b/src/gallium/drivers/i965/brw_wm_surface_state.c
index 6c29db045f..b055dde20c 100644
--- a/src/gallium/drivers/i965/brw_wm_surface_state.c
+++ b/src/gallium/drivers/i965/brw_wm_surface_state.c
@@ -215,14 +215,14 @@ static int prepare_wm_surfaces(struct brw_context *brw )
}
#endif
- brw->sws->bo_unreference(brw->wm.bind_bo);
- brw->wm.bind_bo = brw_wm_get_binding_table(brw);
-
if (brw->wm.nr_surfaces != nr_surfaces) {
brw->wm.nr_surfaces = nr_surfaces;
brw->state.dirty.brw |= BRW_NEW_NR_WM_SURFACES;
}
+ brw->sws->bo_unreference(brw->wm.bind_bo);
+ brw->wm.bind_bo = brw_wm_get_binding_table(brw);
+
return 0;
}