[Mesa-dev] [PATCH 34/70] i965: Set buffer dirty flags for this batch
Chris Wilson
chris at chris-wilson.co.uk
Fri Aug 7 13:13:38 PDT 2015
Process the postdraw resolves (including setting the buffer dirty flag)
before any conditional batch flush as that flush will want to clear the
dirty flag.
Signed-off-by: Chris Wilson <chris at chris-wilson.co.uk>
---
src/mesa/drivers/dri/i965/brw_draw.c | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/src/mesa/drivers/dri/i965/brw_draw.c b/src/mesa/drivers/dri/i965/brw_draw.c
index 52e6993..82086e5 100644
--- a/src/mesa/drivers/dri/i965/brw_draw.c
+++ b/src/mesa/drivers/dri/i965/brw_draw.c
@@ -537,12 +537,10 @@ retry:
brw_render_state_finished(brw);
}
- brw_batch_maybe_flush(&brw->batch);
-
- brw_state_cache_check_size(brw);
brw_postdraw_set_buffers_need_resolve(brw);
+ brw_state_cache_check_size(brw);
- return;
+ brw_batch_maybe_flush(&brw->batch);
}
void
--
2.5.0
More information about the mesa-dev
mailing list