From: Ian Romanick Date: Fri, 9 Nov 2012 18:23:30 +0000 (-0800) Subject: i965: Add support for GL_ANY_SAMPLES_PASSED_CONSERVATIVE X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=00d8ad81ffeda1d2a10b1ee65f4a144467d0afd1;p=mesa.git 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 --- 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);