From 00d8ad81ffeda1d2a10b1ee65f4a144467d0afd1 Mon Sep 17 00:00:00 2001 From: Ian Romanick Date: Fri, 9 Nov 2012 10:23:30 -0800 Subject: [PATCH] i965: Add support for GL_ANY_SAMPLES_PASSED_CONSERVATIVE We just treat this as an alias for GL_ANY_SAMPLES_PASSED. Signed-off-by: Ian Romanick Reviewed-by: Eric Anholt Reviewed-by: Kenneth Graunke --- src/mesa/drivers/dri/i965/brw_queryobj.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/mesa/drivers/dri/i965/brw_queryobj.c b/src/mesa/drivers/dri/i965/brw_queryobj.c index ff873aea9df..b6143f9fc52 100644 --- a/src/mesa/drivers/dri/i965/brw_queryobj.c +++ b/src/mesa/drivers/dri/i965/brw_queryobj.c @@ -195,6 +195,7 @@ brw_queryobj_get_results(struct gl_context *ctx, break; case GL_ANY_SAMPLES_PASSED: + case GL_ANY_SAMPLES_PASSED_CONSERVATIVE: /* Set true if any of the sub-queries passed. */ for (i = query->first_index; i <= query->last_index; i++) { if (results[i * 2 + 1] != results[i * 2]) { @@ -261,6 +262,7 @@ brw_begin_query(struct gl_context *ctx, struct gl_query_object *q) break; case GL_ANY_SAMPLES_PASSED: + case GL_ANY_SAMPLES_PASSED_CONSERVATIVE: case GL_SAMPLES_PASSED_ARB: /* Reset our driver's tracking of query state. */ drm_intel_bo_unreference(query->bo); @@ -316,6 +318,7 @@ brw_end_query(struct gl_context *ctx, struct gl_query_object *q) break; case GL_ANY_SAMPLES_PASSED: + case GL_ANY_SAMPLES_PASSED_CONSERVATIVE: case GL_SAMPLES_PASSED_ARB: if (query->bo) { brw_emit_query_end(brw); -- 2.30.2