Bug 13649

Summary: [i915] depth mapping incorrectly with glRasterPos3f and glBitmap
Product: Mesa Reporter: Shuang He <shuang.he>
Component: Drivers/DRI/i915Assignee: haihao <haihao.xiang>
Status: VERIFIED DUPLICATE QA Contact:
Severity: normal    
Priority: medium CC: dri-devel, haihao.xiang
Version: unspecified   
Hardware: Other   
OS: Linux (All)   
Whiteboard:
i915 platform: i915 features:
Attachments: test case

Description Shuang He 2007-12-13 18:07:22 UTC
System Environment:
--------------------------
--Platform: FC6
--Xf86_video_intel:6f92200db39a790c95c1fac64baf0bd41a70e481 
--Mesa:e2ca788ae700aae75bf8d024c1374c38cc5574f9 
--DRM:f1a99ddc14ebca303f20b6c23bd289fc887243ae
--Kernel:2.6.22

Bug detailed description:
--------------------------
This issue doesn't happen on 965 platform

when depth range is [n, f], the mapping of z values from normalized device coordinates to window coordinates should be calculated as following:
Zw = ((f - n) / 2)Zd + ((n + f) / 2), Zd is normalized device coordinate of a pixel

The issue happens when set depth range to [0.0, 1.0],
set the x, y, z coordinate with glRasterPos3f, then render a pixel with glBitmap
but depth component is not correct

Reproduce steps:
----------------
start X
compile and run the attached test case


Current result:
----------------
the depth component is not correct

Expected result:
----------------
the depth component should be correct
Comment 1 Shuang He 2007-12-13 18:13:10 UTC
Created attachment 13096 [details]
test case
Comment 2 haihao 2007-12-25 18:25:29 UTC

*** This bug has been marked as a duplicate of bug 11925 ***
Comment 3 haihao 2007-12-25 19:08:27 UTC
it is a duplicate of bug 13543
Comment 4 haihao 2007-12-25 19:09:05 UTC

*** This bug has been marked as a duplicate of bug 13543 ***

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.