Bug 32167

Summary: [SNB] piglit occlusion_query fails
Product: Mesa Reporter: Gordon Jin <gordon.jin>
Component: Drivers/DRI/i965Assignee: Wang Zhenyu <zhenyu.z.wang>
Status: VERIFIED FIXED QA Contact: Yi Sun <yi.sun>
Severity: normal    
Priority: high CC: idr, yi.sun, zhenyu.z.wang
Version: git   
Hardware: Other   
OS: Linux (All)   
Whiteboard:
i915 platform: i915 features:

Description Gordon Jin 2010-12-06 21:10:28 UTC
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' }
Comment 1 Wang Zhenyu 2010-12-09 19:08:14 UTC
*** Bug 32284 has been marked as a duplicate of this bug. ***
Comment 2 Wang Zhenyu 2010-12-13 21:06:08 UTC
Patches have been sent out, though waiting for comment until we agree on final solution.
Comment 3 Wang Zhenyu 2010-12-21 18:15:09 UTC
With all upstreams, I can't produce this on sandybridge desktop now, but seems still having trouble on mobile version.
Comment 4 Wang Zhenyu 2010-12-27 19:12:06 UTC
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
Comment 5 Yi Sun 2010-12-29 17:51:00 UTC
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.