Bug 88248

Summary: Calling glClear while there is an occlusion query in progress messes up the results
Product: Mesa Reporter: Neil Roberts <nroberts>
Component: Drivers/DRI/i965Assignee: Ian Romanick <idr>
Status: RESOLVED FIXED QA Contact: Intel 3D Bugs Mailing List <intel-3d-bugs>
Severity: normal    
Priority: medium    
Version: git   
Hardware: Other   
OS: All   
Whiteboard:
i915 platform: i915 features:

Description Neil Roberts 2015-01-09 18:05:00 UTC
If any meta operations are used while an occlusion query is in progress (such as by calling glClear) then the results aren't saved and restored correctly so the final value is wrong. I posted a patch for this a while ago and I'm opening a bug so we don't forget about it.

http://patchwork.freedesktop.org/patch/37605/

There is also a piglit test for it which I pushed to master

http://cgit.freedesktop.org/piglit/commit/?id=3f6ee9d53c89c305d4b41f30c7c0dc
Comment 1 Neil Roberts 2015-02-16 12:21:18 UTC
I've pushed the patch.

http://cgit.freedesktop.org/mesa/mesa/commit/?id=bb77745681e179b53ea64da7bc

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.