summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/iris/iris_query.c
diff options
context:
space:
mode:
authorKenneth Graunke <[email protected]>2018-09-27 12:50:26 +0200
committerKenneth Graunke <[email protected]>2019-02-21 10:26:08 -0800
commitf5a8908bd1a995d48902b9b3066eae5f2d6a8817 (patch)
tree5c23e8e9adf966cc4c405cd4cae6d8d1345dc2d7 /src/gallium/drivers/iris/iris_query.c
parentad1479580559f6dc5bbe6eb9527b3aa82268c826 (diff)
iris: fix random failures via CS stall...but why?
Diffstat (limited to 'src/gallium/drivers/iris/iris_query.c')
-rw-r--r--src/gallium/drivers/iris/iris_query.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/gallium/drivers/iris/iris_query.c b/src/gallium/drivers/iris/iris_query.c
index fac5e6b5e99..f746349361d 100644
--- a/src/gallium/drivers/iris/iris_query.c
+++ b/src/gallium/drivers/iris/iris_query.c
@@ -359,6 +359,12 @@ iris_get_query_result_resource(struct pipe_context *ctx,
ice->vtbl.store_data_imm64(batch, iris_resource_bo(p_res), offset,
q->result);
}
+
+ /* Make sure the result lands before they use bind the QBO elsewhere
+ * and use the result.
+ */
+ // XXX: Why? i965 doesn't do this.
+ iris_emit_pipe_control_flush(batch, PIPE_CONTROL_CS_STALL);
return;
}