mesa: remove hack to fix up GL_ANY_SAMPLES_PASSED results
authorIlia Mirkin <imirkin@alum.mit.edu>
Fri, 5 Feb 2016 02:55:13 +0000 (21:55 -0500)
committerIlia Mirkin <imirkin@alum.mit.edu>
Tue, 9 Feb 2016 16:59:35 +0000 (11:59 -0500)
Both st/mesa and i965 should return a true/false result now, and the
only other driver implementing queries (radeon) doesn't support
ARB_occlusion_query2 which added that pname.

Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
src/mesa/main/queryobj.c

index b86692a5f7e04d1767b116974fe27b42aa7a1f01..7a70b592c479435a48209e2cf88ab46bbf204bd6 100644 (file)
@@ -807,11 +807,6 @@ invalid_enum:
       return;
    }
 
-   /* TODO: Have the driver be required to handle this fixup. */
-   if (q->Target == GL_ANY_SAMPLES_PASSED ||
-       q->Target == GL_ANY_SAMPLES_PASSED_CONSERVATIVE)
-      value = !!value;
-
    switch (ptype) {
    case GL_INT: {
       GLint *param = (GLint *)offset;