Bug 12132

Summary: occlusion query should return the number of samples passed depth test
Product: Mesa Reporter: Shuang He <shuang.he>
Component: Drivers/DRI/i965Assignee: Zou Nan hai <nanhai.zou>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: medium CC: dri-devel
Version: unspecified   
Hardware: Other   
OS: Linux (All)   
Whiteboard:
i915 platform: i915 features:
Attachments: test case

Description Shuang He 2007-08-24 00:45:38 UTC
on G965 and GM965
occlusion query doesn't return the correct number of smaples that passed depth test
it works for non-dri mode.
Comment 1 Shuang He 2007-08-24 00:54:01 UTC
Created attachment 11251 [details]
test case

this is a simple test case
you can also found this issue by:
./glean -r result -t occluQry
Comment 2 Zou Nan hai 2007-09-24 19:08:59 UTC
I can not reproduce on my GM965 machine with the attached program
Comment 3 Shuang He 2007-09-24 21:39:02 UTC
on my G965 machine, I got results like following:
number of samples passed depth test = 134758680
should be 900

but in non-DRI mode, it gets:
number of samples passed depth test = 900
should be 900

Comment 4 Shuang He 2007-09-25 00:36:36 UTC
seems commit(be3099f26547f48066bbdd7a36578b54da9170b4) brings in this issue
Comment 5 Zou Nan hai 2007-09-25 19:07:40 UTC
fixed in mesa commit 395b3bf6f95b35a84a74d4baf7e04bc67cf3771c
Comment 6 Shuang He 2007-09-26 02:14:00 UTC
verified on both 32bit and 64bit

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.