[Mesa-dev] [PATCH 1/7] i965: Flush pipeline before saving SO_WRITE_OFFSETS
Chris Wilson
chris at chris-wilson.co.uk
Fri Dec 9 10:54:17 UTC 2016
Before saving the current position of the pipeline for the render
stream, we need to flush.
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=99030
Testcase: piglit/arb_transform_feedback2-draw-auto
Signed-off-by: Chris Wilson <chris at chris-wilson.co.uk>
---
src/mesa/drivers/dri/i965/hsw_sol.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/src/mesa/drivers/dri/i965/hsw_sol.c b/src/mesa/drivers/dri/i965/hsw_sol.c
index e299b02270..87d4ab531b 100644
--- a/src/mesa/drivers/dri/i965/hsw_sol.c
+++ b/src/mesa/drivers/dri/i965/hsw_sol.c
@@ -201,6 +201,8 @@ hsw_pause_transform_feedback(struct gl_context *ctx,
(struct brw_transform_feedback_object *) obj;
if (brw->is_haswell) {
+ brw_emit_mi_flush(brw);
+
/* Save the SOL buffer offset register values. */
for (int i = 0; i < BRW_MAX_XFB_STREAMS; i++) {
BEGIN_BATCH(3);
--
2.11.0
More information about the mesa-dev
mailing list