Bug 13614

Summary: [i915] glBitmap works incorrectly after glDrawPixels() call
Product: Mesa Reporter: Shuang He <shuang.he>
Component: Drivers/DRI/i915Assignee: haihao <haihao.xiang>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: medium CC: dri-devel, haihao.xiang
Version: unspecified   
Hardware: Other   
OS: Linux (All)   
Whiteboard:
i915 platform: i915 features:
Attachments: test case
xorg conf

Description Shuang He 2007-12-11 23:35:36 UTC
System Environment:
--------------------------
--Platform: FC6
--Xf86_video_intel:6f92200db39a790c95c1fac64baf0bd41a70e481 
--Mesa:e2ca788ae700aae75bf8d024c1374c38cc5574f9 
--DRM:f1a99ddc14ebca303f20b6c23bd289fc887243ae
--Kernel:2.6.22

Bug detailed description:
--------------------------
This issue doesn't happen in software rendering mode.
And, q965 doesn't have this issue.

glBitmap is affected by a glDrawPixels call before it.
Pls try the attached test case

Reproduce steps:
----------------
start X
compile and run the attached test case


Current result:
----------------
after drawpixel, read out pixels: (0, 0) = (0.000000, 0.000000, 0.000000)
after glBitmap, read out pixels: (0, 0) = (0.027451, 0.027451, 0.027451), should be (1.000000, 1.000000, 1.000000)


Expected result:
----------------
glBitmap should work correctly
Comment 1 Shuang He 2007-12-11 23:40:26 UTC
Created attachment 13054 [details]
test case

This test case simply render a 8x8 area by calling glDrawPixels
then clear color buffer, and render a 8x1 bitmap by calling glBitmap with color (1, 1, 1, 1) 
but it turns out, the color is incorrect.
Comment 2 Shuang He 2007-12-11 23:41:43 UTC
Created attachment 13055 [details]
xorg conf
Comment 3 haihao 2007-12-26 18:41:22 UTC
fixed in mesa aac2d99dc316c069faa46dd43ff034155754c6b3
Comment 4 Shuang He 2008-01-04 01:29:08 UTC
Haihao, thanks

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.