Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#18323 - [xf86-video-ati] 16 bit depth broken due to changed gamma control

Attached to Project: Arch Linux
Opened by rene (demonicmaniac) - Saturday, 13 February 2010, 17:05 GMT
Last edited by Andreas Radke (AndyRTR) - Saturday, 07 August 2010, 18:51 GMT
Task Type Bug Report
Category Upstream Bugs
Status Closed
Assigned To Jan de Groot (JGC)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

16 bit depth causes green/blue tinted screen and extreme darkness.
fix is here:(change line number from 450 to 377 for the current ati in archlinux)

Boyan Anastasov 2010-01-15 19:28:39 EST
There is a difference in the driver for 16bit depth when setting gamma.
I've disabled it and now the picture is ok.


xf86-video-ati-20091221/src/radeon_crtc.c, at line 450:

static void
radeon_crtc_gamma_set(xf86CrtcPtr crtc, uint16_t *red, uint16_t *green,
uint16_t *blue, int size)
{
RADEONCrtcPrivatePtr radeon_crtc = crtc->driver_private;
ScrnInfoPtr pScrn = crtc->scrn;
int i, j;

if (0/*pScrn->depth == 16*/) {
for (i = 0; i < 64; i++) {
if (i <= 31) {
for (j = 0; j < 8; j++) {
radeon_crtc->lut_r[i * 8 + j] = red[i] >> 6;
radeon_crtc->lut_b[i * 8 + j] = blue[i] >> 6;
}
}

for (j = 0; j < 4; j++) {
radeon_crtc->lut_g[i * 4 + j] = green[i] >> 6;
}
}
} else {
for (i = 0; i < 256; i++) {
radeon_crtc->lut_r[i] = red[i] >> 6;
radeon_crtc->lut_g[i] = green[i] >> 6;
radeon_crtc->lut_b[i] = blue[i] >> 6;
}
}

radeon_crtc_load_lut(crtc);
}
This task depends upon

Closed by  Andreas Radke (AndyRTR)
Saturday, 07 August 2010, 18:51 GMT
Reason for closing:  Won't fix
Comment by Andreas Radke (AndyRTR) - Saturday, 13 February 2010, 18:18 GMT
use 24bit. Is it fixed upstream? I won't fix it in our package. We will use a new driver snapshot anyways soon for KMS in kernel 2.6.33.
Comment by rene (demonicmaniac) - Saturday, 13 February 2010, 23:58 GMT
it isn't fixed upstream as far as I know as ati-git showed identical symptoms.
the listed fix is from fedora bugtracker.
applying it solved the issue for me, running 16 bit now without any problems.
Comment by Glenn Matthys (RedShift) - Sunday, 14 February 2010, 04:45 GMT
Why would you want to use 16 bit colors anyway?
Comment by rene (demonicmaniac) - Tuesday, 16 February 2010, 20:26 GMT
Because a lot of older (4 years+) hardware can not cope with 32 bit what with having between 32 and 128mb of VRAM only
and a lot of very old integradted stuff doesn't have 32 bit accel, only 16 bit accel.
Comment by rene (demonicmaniac) - Tuesday, 16 February 2010, 22:59 GMT
sorry accidental refreh/repost
Comment by Andreas Radke (AndyRTR) - Thursday, 18 February 2010, 21:40 GMT
can you please sent your fix upstream? i don't have the intention to fix it for Arch because it's of minor interest and new kernel will require a new driver anyway.

Loading...