http://bugs.freedesktop.org/show_bug.cgi?id=13649

           Summary: [i915] depth mapping incorrectly with glRasterPos3f
           Product: Mesa
           Version: unspecified
          Platform: Other
        OS/Version: Linux (All)
            Status: NEW
          Severity: normal
          Priority: medium
         Component: Drivers/DRI/i915
        AssignedTo: dri-devel@lists.sourceforge.net
        ReportedBy: [EMAIL PROTECTED]
                CC: [EMAIL PROTECTED]


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


-- 
Configure bugmail: http://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

-------------------------------------------------------------------------
SF.Net email is sponsored by:
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services
for just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
--
_______________________________________________
Dri-devel mailing list
Dri-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dri-devel

Reply via email to