Bug 24444 - Low indexes in gamma table garbaged (with xserver 1.7)
Summary: Low indexes in gamma table garbaged (with xserver 1.7)
Status: CLOSED FIXED
Alias: None
Product: DRI
Classification: Unclassified
Component: DRM/Intel (show other bugs)
Version: XOrg git
Hardware: Other All
: high normal
Assignee: Eric Anholt
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-10-10 09:10 UTC by maximlevitsky
Modified: 2017-07-24 23:09 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments
screenshot that I forgot... (39.97 KB, image/jpeg)
2009-10-10 16:34 UTC, maximlevitsky
no flags Details

Description maximlevitsky 2009-10-10 09:10:24 UTC
After updating to git master of vanilla kernel, bd381934bf13ccb1af2813ae26c6fe00ec85d254 (2.6.32-rc3+)

Screen color output look bizarre (screen shot with camera attached).
In fact normal screen-shots (within computer) don't show any problem, when viewing them in older 2.6.31 kernel.

It looks like gamma table got corrupted.
This isn't related to 3D, and even GDM shows that behavior.
More than that, even during shutdown, usplash shows corrupted colors.

Note that during boot colors are normal, thus I assume that during X startup gamma table gets corrupted.
Comment 1 maximlevitsky 2009-10-10 11:06:05 UTC
I had reverted two suspicious commits in kernel tree, and problem gone.

068143d38804825d59d951a192cfadd2e22f457d.
drm/fb: add setcmap and fix 8-bit support.


drm/fb: add more correct 8/16/24/32 bpp fb support.
b8c00ac5b50b54491657f8b6740db1df50149944.

Comment 2 maximlevitsky 2009-10-10 14:28:35 UTC
In fact the first commit is the source of the bug. I tested this, and also confirmed on mailing list.


068143d38804825d59d951a192cfadd2e22f457d drm/fb: add setcmap and fix 8-bit support.
Comment 3 maximlevitsky 2009-10-10 16:34:56 UTC
Created attachment 30263 [details]
screenshot that I forgot...
Comment 4 Gordon Jin 2009-10-11 18:07:06 UTC
According to intel-gfx mailing list discussion, this only happens with xserver 1.7, and fine with 1.6.

A fix from Dave: http://lists.freedesktop.org/archives/intel-gfx/2009-October/004488.html
Comment 5 maximlevitsky 2009-10-16 22:08:53 UTC
This fix indeed helps for the xserver. however, usplash still shows in wrong colors, and doesn't depend on x startup:


Testcase:
If run the system without splash, and break with init=/bin/bash, then I start the splash with 'usplash' command, and see wrong colors.
Comment 6 maximlevitsky 2009-11-07 11:21:52 UTC
Fixed in drm-intel-next
Comment 7 maximlevitsky 2010-06-29 13:22:58 UTC
This was fixed long time ago.
I mark it such now


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.