diff options
author | Kenneth Graunke <[email protected]> | 2018-09-27 12:50:26 +0200 |
---|---|---|
committer | Kenneth Graunke <[email protected]> | 2019-02-21 10:26:08 -0800 |
commit | f5a8908bd1a995d48902b9b3066eae5f2d6a8817 (patch) | |
tree | 5c23e8e9adf966cc4c405cd4cae6d8d1345dc2d7 /src/gallium/drivers/iris/iris_query.c | |
parent | ad1479580559f6dc5bbe6eb9527b3aa82268c826 (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.c | 6 |
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; } |