projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0f2d1df
)
v3d: handle wait requirement when retrieving query results correctly
author
Iago Toral Quiroga
<itoral@igalia.com>
Thu, 1 Aug 2019 12:43:35 +0000
(14:43 +0200)
committer
Iago Toral Quiroga
<itoral@igalia.com>
Thu, 8 Aug 2019 06:36:52 +0000
(08:36 +0200)
Reviewed-by: Eric Anholt <eric@anholt.net>
src/gallium/drivers/v3d/v3d_query.c
patch
|
blob
|
history
diff --git
a/src/gallium/drivers/v3d/v3d_query.c
b/src/gallium/drivers/v3d/v3d_query.c
index 72bb2e43c51a1c04a3d7e50dcf13517aaf7d4434..f8419605dc260e3f8d84529e477b27e631b0e35d 100644
(file)
--- a/
src/gallium/drivers/v3d/v3d_query.c
+++ b/
src/gallium/drivers/v3d/v3d_query.c
@@
-143,10
+143,10
@@
v3d_get_query_result(struct pipe_context *pctx, struct pipe_query *query,
v3d_flush_jobs_using_bo(v3d, q->bo);
if (wait) {
- if (!v3d_bo_wait(q->bo,
0
, "query"))
+ if (!v3d_bo_wait(q->bo,
~0ull
, "query"))
return false;
} else {
- if (!v3d_bo_wait(q->bo,
~0ull
, "query"))
+ if (!v3d_bo_wait(q->bo,
0
, "query"))
return false;
}