i965: Actually add support for GL_ANY_SAMPLES_PASSED from GL_ARB_oq2.
authorEric Anholt <eric@anholt.net>
Wed, 17 Oct 2012 20:07:33 +0000 (13:07 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Sat, 2 Feb 2013 00:22:42 +0000 (16:22 -0800)
commitebd4883a0c53a3584f6da78042dbc38da779291b
treee84779152e87f9534917bde61ad73937ac11dadb
parent78222e63630280b96488de0d51d1b2578e26f814
i965: Actually add support for GL_ANY_SAMPLES_PASSED from GL_ARB_oq2.

v2: Fix mangled sentence in the comment, and make the loop exit early.

Fixes assertion failures in Piglit's spec/ARB_occlusion_query2/render
test as well as the game PlaneShift.

Reviewed-by: Ian Romanick <ian.d.romanick@intel.com> (v1)
(cherry picked from commit e755c1a36b27d6e45f0ae81729908342b8775c74)
src/mesa/drivers/dri/i965/brw_queryobj.c