It fails on SandyBridge rev08 (mobile) and rev09 (desktop), with i965 driver of mesa master (4538ce915ba4c43290f4341ad80040b4b735eab3). It passes with swrast on SandyBridge. It passes with i965 on Ironlake. [root@x-sgb piglit]# bin/occlusion_query -auto libGL: OpenDriver: trying /opt/X11R7/lib/dri/i965_dri.so samples passed = 400, expected = 400 samples passed = 0, expected = 0 samples passed = 2600, expected = 2600 samples passed = 0, expected = 0 samples passed = 400, expected = 400 samples passed = 2147483647, expected = 400 samples passed = 0, expected = 0 samples passed = 2600, expected = 2600 samples passed = 2147483647, expected = 0 samples passed = 400, expected = 400 libGL: OpenDriver: trying /opt/X11R7/lib/dri/i965_dri.so PIGLIT: {'result': 'fail' }
*** Bug 32284 has been marked as a duplicate of this bug. ***
Patches have been sent out, though waiting for comment until we agree on final solution.
With all upstreams, I can't produce this on sandybridge desktop now, but seems still having trouble on mobile version.
commit 689aca782216d2666486dea02206cbc9c4162e0d Author: Zhenyu Wang <zhenyuw@linux.intel.com> Date: Tue Dec 28 11:03:45 2010 +0800 i965: Fix occlusion query on sandybridge Clear target query buffer fixed occlusion query on sandybridge. https://bugs.freedesktop.org/show_bug.cgi?id=32167
Verified on both HunronRiver and SugarBay.
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.