i965: Add support for GL_ANY_SAMPLES_PASSED_CONSERVATIVE
authorIan Romanick <ian.d.romanick@intel.com>
Fri, 9 Nov 2012 18:23:30 +0000 (10:23 -0800)
committerIan Romanick <ian.d.romanick@intel.com>
Fri, 11 Jan 2013 18:57:25 +0000 (10:57 -0800)
We just treat this as an alias for GL_ANY_SAMPLES_PASSED.

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Eric Anholt <eric@anholt.net>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/drivers/dri/i965/brw_queryobj.c

index ff873aea9dfd55dbe557dd590f8f70bbdedda6b9..b6143f9fc52e38cd082f30a5e4df78cc62f12939 100644 (file)
@@ -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);