summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/v3d
diff options
context:
space:
mode:
authorIago Toral Quiroga <[email protected]>2019-06-17 08:21:32 +0200
committerIago Toral Quiroga <[email protected]>2019-06-18 08:09:03 +0200
commit6d97c8fac12b781d8bc54d25053dd1ced835d2d9 (patch)
tree9a7584ad031b4c0012a62f1ebd846d4b4db0dd4d /src/gallium/drivers/v3d
parent5491883a9ad678393621082c03c2e1a24019e86c (diff)
v3d: only flush jobs accessing the query BO when reading query results
Reviewed-by: Eric Anholt <[email protected]>
Diffstat (limited to 'src/gallium/drivers/v3d')
-rw-r--r--src/gallium/drivers/v3d/v3d_query.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gallium/drivers/v3d/v3d_query.c b/src/gallium/drivers/v3d/v3d_query.c
index d3447793b0a..f68c42321a1 100644
--- a/src/gallium/drivers/v3d/v3d_query.c
+++ b/src/gallium/drivers/v3d/v3d_query.c
@@ -116,12 +116,12 @@ static boolean
v3d_get_query_result(struct pipe_context *pctx, struct pipe_query *query,
boolean wait, union pipe_query_result *vresult)
{
+ struct v3d_context *v3d = v3d_context(pctx);
struct v3d_query *q = (struct v3d_query *)query;
uint32_t result = 0;
if (q->bo) {
- /* XXX: Only flush the jobs using this BO. */
- v3d_flush(pctx);
+ v3d_flush_jobs_using_bo(v3d, q->bo);
if (wait) {
if (!v3d_bo_wait(q->bo, 0, "query"))