From: Kenneth Graunke Date: Thu, 27 Sep 2018 10:50:26 +0000 (+0200) Subject: iris: fix random failures via CS stall...but why? X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=f5a8908bd1a995d48902b9b3066eae5f2d6a8817;p=mesa.git iris: fix random failures via CS stall...but why? --- 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; }