Bug 13508 - texture applied incorrect if format is GL_LUMINANCE_ALPHA
Summary: texture applied incorrect if format is GL_LUMINANCE_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:
 
Reported: 2007-12-03 23:49 UTC by WuNian
Modified: 2009-08-24 12:28 UTC (History)
1 user (show)

See Also:
i915 platform:
i915 features:


Attachments
test case (3.64 KB, text/plain)
2007-12-03 23:52 UTC, WuNian
Details

Description WuNian 2007-12-03 23:49:24 UTC
If texture format is GL_LUMINANCE_ALPHA, then texture is applied incorrect.

See attached test case for more info.
Comment 1 WuNian 2007-12-03 23:52:06 UTC
Created attachment 12924 [details]
test case

The test case draws a 32x32 texture image, but only 32x16 size is drawn with i915 driver.

With i965 driver or Mesa 7.0.2, the texture is applied correct.
Comment 2 Roland Scheidegger 2007-12-04 05:32:14 UTC
Note that you're requesting an internalFormat of 1, which is GL_LUMINANCE, not LUMINANCE_ALPHA. There's nothing wrong with that, but the bug could be rather with this internalFormat. Not sure what's wrong though, maybe some pitch alignment problem (in this case related to the reported mipmap bugs possibly).
Comment 3 WuNian 2007-12-04 17:11:10 UTC
I do not mean the alpha channel on this bug. 
The image drawn only is half size with current i915 driver.
Comment 4 Roland Scheidegger 2007-12-04 17:33:53 UTC
(In reply to comment #3)
> I do not mean the alpha channel on this bug. 
> The image drawn only is half size with current i915 driver.
I never suggested it has something to do with the alpha channel, rather that it might not be the texture format which matters here but that the internalFormat of GL_LUMINANCE might be the culprit instead.
Comment 5 WuNian 2008-01-31 19:31:40 UTC
The bug also exists with i965 driver.
Comment 6 haihao 2008-02-12 23:56:46 UTC
fixed in mesa e45e33854289222cabb491d4605bf381b1631054
Comment 7 WuNian 2008-02-14 18:41:46 UTC
verified. Thanks.
Comment 8 Adam Jackson 2009-08-24 12:28:31 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.