[Mesa-dev] [PATCH 32/51] i965: Set buffer dirty flags for this batch
Chris Wilson
chris at chris-wilson.co.uk
Tue Jan 10 21:23:55 UTC 2017
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 eaa9f9173c..cd2e9e05a6 100644
--- a/src/mesa/drivers/dri/i965/brw_draw.c
+++ b/src/mesa/drivers/dri/i965/brw_draw.c
@@ -617,12 +617,10 @@ retry:
brw_render_state_finished(brw);
}
- brw_batch_maybe_flush(&brw->batch);
-
- brw_program_cache_check_size(brw);
brw_postdraw_set_buffers_need_resolve(brw);
+ brw_program_cache_check_size(brw);
- return;
+ brw_batch_maybe_flush(&brw->batch);
}
void
--
2.11.0
More information about the mesa-dev
mailing list