diff options
author | Samuel Pitoiset <[email protected]> | 2014-07-05 12:46:03 +0200 |
---|---|---|
committer | Martin Peres <[email protected]> | 2015-05-06 00:03:36 +0300 |
commit | 96f164f6f047833091eb98a73aa80c31dc94f962 (patch) | |
tree | 1d6eff6ab916eb590752012102f50b706f4a36ea /src/gallium/drivers/nouveau/nv50 | |
parent | 546ec980f850fee067fd1dddad19a8dfd6b7e672 (diff) |
gallium: make pipe_context::begin_query return a boolean
GL_AMD_performance_monitor must return an error when a monitoring
session cannot be started.
Signed-off-by: Samuel Pitoiset <[email protected]>
Reviewed-by: Marek Olšák <[email protected]>
Reviewed-by: Martin Peres <[email protected]>
Diffstat (limited to 'src/gallium/drivers/nouveau/nv50')
-rw-r--r-- | src/gallium/drivers/nouveau/nv50/nv50_query.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gallium/drivers/nouveau/nv50/nv50_query.c b/src/gallium/drivers/nouveau/nv50/nv50_query.c index 23b6d1eeb0c..6690aa282eb 100644 --- a/src/gallium/drivers/nouveau/nv50/nv50_query.c +++ b/src/gallium/drivers/nouveau/nv50/nv50_query.c @@ -138,7 +138,7 @@ nv50_query_get(struct nouveau_pushbuf *push, struct nv50_query *q, PUSH_DATA (push, get); } -static void +static boolean nv50_query_begin(struct pipe_context *pipe, struct pipe_query *pq) { struct nv50_context *nv50 = nv50_context(pipe); @@ -201,6 +201,7 @@ nv50_query_begin(struct pipe_context *pipe, struct pipe_query *pq) break; } q->ready = FALSE; + return true; } static void |