Bug 12020

Summary: depth texture implement incorrect if DEPTH_TEXTURE_MODE is ALPHA
Product: Mesa Reporter: WuNian <nian.wu>
Component: Drivers/DRI/i915Assignee: haihao <haihao.xiang>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: medium CC: dri-devel
Version: git   
Hardware: x86 (IA32)   
OS: Linux (All)   
Whiteboard:
i915 platform: i915 features:
Bug Depends on:    
Bug Blocks: 16029    
Attachments: test case

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.