summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrancisco Jerez <currojerez@riseup.net>2020-02-06 20:58:40 -0800
committerFrancisco Jerez <currojerez@riseup.net>2020-02-06 22:21:55 -0800
commitc2f792d685bd5781c09b16ab06e9b3b9c577dbcf (patch)
treee1f28b6d9232688b88cde1397c9f2549bc0fe9c2
parent35108ba4511d77bcfe2f6ddc9643c94fa14b14c3 (diff)
WIP: iris: Replace unconditional QBO flush with iris_dirty_for_history().
-rw-r--r--src/gallium/drivers/iris/iris_query.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/src/gallium/drivers/iris/iris_query.c b/src/gallium/drivers/iris/iris_query.c
index 4c852236d6a..532019659e9 100644
--- a/src/gallium/drivers/iris/iris_query.c
+++ b/src/gallium/drivers/iris/iris_query.c
@@ -698,13 +698,8 @@ iris_get_query_result_resource(struct pipe_context *ctx,
ice->vtbl.store_data_imm64(batch, dst_bo, 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,
- "query: unknown QBO flushing hack",
- PIPE_CONTROL_CS_STALL);
+ /* Make sure QBO is flushed before its result is used elsewhere. */
+ iris_dirty_for_history(ice, res);
return;
}