Bug 12020 - depth texture implement incorrect if DEPTH_TEXTURE_MODE is ALPHA
Summary: depth texture implement incorrect if DEPTH_TEXTURE_MODE is ALPHA
Status: VERIFIED FIXED
Alias: None
Product: Mesa
Classification: Unclassified
Component: Drivers/DRI/i915 (show other bugs)
Version: git
Hardware: x86 (IA32) Linux (All)
: medium normal
Assignee: haihao
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 16029
  Show dependency treegraph
 
Reported: 2007-08-15 18:40 UTC by WuNian
Modified: 2009-08-24 12:27 UTC (History)
1 user (show)

See Also:
i915 platform:
i915 features:


Attachments
test case (2.19 KB, text/plain)
2007-08-15 18:41 UTC, WuNian
Details

Description WuNian 2007-08-15 18:40:45 UTC
If specify GL_DEPTH_TEXTURE_MODE as GL_ALPHA, the depth component value does not apply to pixels' alpha component.

If change the GL_DEPTH_TEXTURE_MODE to GL_LUMINANCE, the depth texture value will apply to pixels' RGB component.
Comment 1 WuNian 2007-08-15 18:41:05 UTC
Created attachment 11147 [details]
test case
Comment 2 Zou Nan hai 2008-03-20 02:11:45 UTC
fixed in mesa
Comment 3 WuNian 2008-06-02 23:58:04 UTC
Naihai, the fix has not been cherry-picked into mesa_7_0_branch, so the bug still exists on mesa_7_0_branch, please also commit to mesa_7_0_branch.

commit 7233eabaf0072b7c50e4f26ec33738b5b89aad20
Author: Zou Nan hai <nanhai.zou@intel.com>
Date:   Thu Mar 20 17:47:02 2008 +0800

    [i915] GL_DEPTH_TEXTURE_MODE fix
Comment 4 Michael Fu 2008-07-03 20:01:28 UTC
haihao, please cherry-pick the patch into 7_0 branch. thanks.
Comment 5 haihao 2008-07-03 20:51:29 UTC
It has been done 
Comment 6 Adam Jackson 2009-08-24 12:27:45 UTC
Mass version move, cvs -> git


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.