Bug 16221

Summary: texture's alpha component incorrect when DEPTH_TEXTURE_MODE is GL_INTENSITY
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:
Attachments: test case

Description WuNian 2008-06-03 20:25:56 UTC
Created attachment 16904 [details]
test case

When texture's internalformat is  GL_DEPTH_COMPONENT and DEPTH_TEXTURE_MODE is GL_INTENSITY, for example:

   glTexParameteri(GL_TEXTURE_1D, GL_DEPTH_TEXTURE_MODE, GL_INTENSITY);//GL_LUMINANCE
   glTexImage1D(GL_TEXTURE_1D, 0, GL_DEPTH_COMPONENT, 2, 0,
         GL_DEPTH_COMPONENT, GL_UNSIGNED_BYTE, (void*)t);


the texture's depth value applied to RGB but not to Alpha. the pixels drawn is (t, t, t, 1), it should be (t, t, t, t).
Comment 1 haihao 2008-06-04 00:46:53 UTC
fixed in mesa commit 9e95fad02e1d8690deba91a8f30d722f039366ff
Comment 2 Adam Jackson 2009-08-24 12:30:18 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.