mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-07 13:38:06 +02:00
v3d: handle wait requirement when retrieving query results correctly
Reviewed-by: Eric Anholt <eric@anholt.net>
This commit is contained in:
parent
0f2d1dfe65
commit
fb9f7872e7
1 changed files with 2 additions and 2 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue