projects
/
platform
/
upstream
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1b173fb
)
st/mesa: add st_BeginQuery() case for GL_ANY_SAMPLES_PASSED
author
Brian Paul
<brianp@vmware.com>
Wed, 12 Jan 2011 21:50:41 +0000
(14:50 -0700)
committer
Brian Paul
<brianp@vmware.com>
Thu, 13 Jan 2011 00:55:44 +0000
(17:55 -0700)
Fixes piglit occlusion_query2 failure.
src/mesa/state_tracker/st_cb_queryobj.c
patch
|
blob
|
history
diff --git
a/src/mesa/state_tracker/st_cb_queryobj.c
b/src/mesa/state_tracker/st_cb_queryobj.c
index
35036e7
..
d0ac253
100644
(file)
--- a/
src/mesa/state_tracker/st_cb_queryobj.c
+++ b/
src/mesa/state_tracker/st_cb_queryobj.c
@@
-85,6
+85,8
@@
st_BeginQuery(struct gl_context *ctx, struct gl_query_object *q)
/* convert GL query type to Gallium query type */
switch (q->Target) {
+ case GL_ANY_SAMPLES_PASSED:
+ /* fall-through */
case GL_SAMPLES_PASSED_ARB:
type = PIPE_QUERY_OCCLUSION_COUNTER;
break;