Commit 6d97c8fa authored by Iago Toral's avatar Iago Toral

v3d: only flush jobs accessing the query BO when reading query results

Reviewed-by: Eric Anholt's avatarEric Anholt <eric@anholt.net>
parent 5491883a
...@@ -116,12 +116,12 @@ static boolean ...@@ -116,12 +116,12 @@ static boolean
v3d_get_query_result(struct pipe_context *pctx, struct pipe_query *query, v3d_get_query_result(struct pipe_context *pctx, struct pipe_query *query,
boolean wait, union pipe_query_result *vresult) boolean wait, union pipe_query_result *vresult)
{ {
struct v3d_context *v3d = v3d_context(pctx);
struct v3d_query *q = (struct v3d_query *)query; struct v3d_query *q = (struct v3d_query *)query;
uint32_t result = 0; uint32_t result = 0;
if (q->bo) { if (q->bo) {
/* XXX: Only flush the jobs using this BO. */ v3d_flush_jobs_using_bo(v3d, q->bo);
v3d_flush(pctx);
if (wait) { if (wait) {
if (!v3d_bo_wait(q->bo, 0, "query")) if (!v3d_bo_wait(q->bo, 0, "query"))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment