projects
/
mesa.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
gallium: add bool return to pipe_context::end_query
[mesa.git]
/
src
/
gallium
/
drivers
/
swr
/
swr_query.cpp
diff --git
a/src/gallium/drivers/swr/swr_query.cpp
b/src/gallium/drivers/swr/swr_query.cpp
index e4b8b683278d03f2b772264bf205955df4a00eb6..ff4d9b350185751b5d52a70c6fbc79f5d6863593 100644
(file)
--- a/
src/gallium/drivers/swr/swr_query.cpp
+++ b/
src/gallium/drivers/swr/swr_query.cpp
@@
-281,7
+281,7
@@
swr_begin_query(struct pipe_context *pipe, struct pipe_query *q)
return true;
}
-static
void
+static
bool
swr_end_query(struct pipe_context *pipe, struct pipe_query *q)
{
struct swr_context *ctx = swr_context(pipe);
@@
-295,6
+295,7
@@
swr_end_query(struct pipe_context *pipe, struct pipe_query *q)
pq->result = &pq->end;
pq->enable_stats = FALSE;
swr_gather_stats(pipe, pq);
+ return true;
}