[Mesa-dev] [PATCH 1/2] st/mesa: make use of the occlusion predicate query
Ilia Mirkin
imirkin at alum.mit.edu
Fri Feb 5 06:16:24 UTC 2016
Signed-off-by: Ilia Mirkin <imirkin at alum.mit.edu>
---
With my previous patch series (http://patchwork.freedesktop.org/series/3091/),
I think we can flip over to using this.
src/mesa/state_tracker/st_cb_queryobj.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/mesa/state_tracker/st_cb_queryobj.c b/src/mesa/state_tracker/st_cb_queryobj.c
index fc239bc..bad47b8 100644
--- a/src/mesa/state_tracker/st_cb_queryobj.c
+++ b/src/mesa/state_tracker/st_cb_queryobj.c
@@ -96,7 +96,8 @@ st_BeginQuery(struct gl_context *ctx, struct gl_query_object *q)
switch (q->Target) {
case GL_ANY_SAMPLES_PASSED:
case GL_ANY_SAMPLES_PASSED_CONSERVATIVE:
- /* fall-through */
+ type = PIPE_QUERY_OCCLUSION_PREDICATE;
+ break;
case GL_SAMPLES_PASSED_ARB:
type = PIPE_QUERY_OCCLUSION_COUNTER;
break;
--
2.4.10
More information about the mesa-dev
mailing list