swrast: fix GL_ANY_SAMPLES_PASSED values in Result
authorIlia Mirkin <imirkin@alum.mit.edu>
Fri, 4 Mar 2016 02:00:06 +0000 (21:00 -0500)
committerIlia Mirkin <imirkin@alum.mit.edu>
Sun, 6 Mar 2016 04:25:52 +0000 (23:25 -0500)
commitdcbf8377befde50fe4d75738e2af5813e06e8f04
tree837841f6974df0c89b0ecded6d6c2dca8bb1f35c
parenta4678311bec7ea03531142c2f7d12572a296ce29
swrast: fix GL_ANY_SAMPLES_PASSED values in Result

Since commit 922be4eab, the expectation is that the query result
contains the correct value. Unfortunately swrast does not distinguish
between GL_SAMPLES_PASSED and GL_ANY_SAMPLES_PASSED. As a result, we
must fix up the query result in a post-draw fixup.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=94274
Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
Tested-by: Vinson Lee <vlee@freedesktop.org>
Reviewed-by: Brian Paul <brianp@vmware.com>
Cc: "11.2" <mesa-stable@lists.freedesktop.org>
src/mesa/swrast/s_context.c