summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Paul <brianp@vmware.com>2011-01-12 14:50:41 -0700
committerBrian Paul <brianp@vmware.com>2011-01-12 17:55:44 -0700
commit30616fdacfd3e2d8d3df64e4aa6b4cac405f3cf0 (patch)
tree4d12f2d909907a4cb88dec44c8a4feb4bef153b4
parent1b173fb3bad3b53411a4b16a385556b23a247d93 (diff)
st/mesa: add st_BeginQuery() case for GL_ANY_SAMPLES_PASSED
Fixes piglit occlusion_query2 failure.
-rw-r--r--src/mesa/state_tracker/st_cb_queryobj.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mesa/state_tracker/st_cb_queryobj.c b/src/mesa/state_tracker/st_cb_queryobj.c
index 35036e72f9..d0ac253bce 100644
--- 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;