Bug 16221 - texture's alpha component incorrect when DEPTH_TEXTURE_MODE is GL_INTENSITY
Summary: texture's alpha component incorrect when DEPTH_TEXTURE_MODE is GL_INTENSITY
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:
 
Reported: 2008-06-03 20:25 UTC by WuNian
Modified: 2009-08-24 12:30 UTC (History)
1 user (show)

See Also:
i915 platform:
i915 features:


Attachments
test case (2.23 KB, text/plain)
2008-06-03 20:25 UTC, WuNian
Details

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.