i965g: fix order of calculation of brw->wm.nr_surfaces

This commit is contained in:
Keith Whitwell
2009-11-04 23:41:30 +00:00
parent 220566d8dc
commit c2e51effe6
@@ -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;
}