diff options
author | Tiziano Bacocco <[email protected]> | 2015-02-06 19:03:41 +0100 |
---|---|---|
committer | Ilia Mirkin <[email protected]> | 2015-02-10 08:02:17 -0500 |
commit | 1e02f2badfd925739099bcfaa55ca99a484470d8 (patch) | |
tree | 08a49da6612fbaa6e5e38026e7fc16f9e110344d /src/gallium/drivers/nouveau/nv50 | |
parent | 09ee907266f315300a7856b55e50e74dce8e946f (diff) |
nv50,nvc0: Mark PIPE_QUERY_TIMESTAMP_DISJOINT as ready immediately
Without this when an application issues that query, it would try to
wait the result from the gpu, and since no query has been actually
issued, it will wait forever.
Signed-off-by: Tiziano Bacocco <[email protected]>
Reviewed-by: Ilia Mirkin <[email protected]>
Diffstat (limited to 'src/gallium/drivers/nouveau/nv50')
-rw-r--r-- | src/gallium/drivers/nouveau/nv50/nv50_query.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gallium/drivers/nouveau/nv50/nv50_query.c b/src/gallium/drivers/nouveau/nv50/nv50_query.c index e0671ce5375..b9c7d1e1dca 100644 --- a/src/gallium/drivers/nouveau/nv50/nv50_query.c +++ b/src/gallium/drivers/nouveau/nv50/nv50_query.c @@ -231,6 +231,8 @@ nv50_query_end(struct pipe_context *pipe, struct pipe_query *pq) nv50_query_get(push, q, 0, 0x0d005002 | (q->index << 5)); break; case PIPE_QUERY_TIMESTAMP_DISJOINT: + /* This query is not issued on GPU because disjoint is forced to FALSE */ + q->ready = TRUE; break; default: assert(0); |