[Bug 28901] New: ATI driver returns dim screen at color depth 16

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Sat Jul 3 17:56:14 PDT 2010


https://bugs.freedesktop.org/show_bug.cgi?id=28901

           Summary: ATI driver returns dim screen at color depth 16
           Product: xorg
           Version: 7.5
          Platform: All
        OS/Version: Linux (All)
            Status: NEW
          Severity: normal
          Priority: medium
         Component: Driver/Radeon
        AssignedTo: xorg-driver-ati at lists.x.org
        ReportedBy: simotsa at gmail.com
         QAContact: xorg-team at lists.x.org


In xorg 7.0, the open source driver works fine at color depth 16.  However,
after I upgraded to 7.5, using the same Driver settings, the screen will go
unreasonably dim.

As suggested in other forum (i.e.
https://bugzilla.redhat.com/show_bug.cgi?id=554967), I have to disable the
gamma set for color depth 16, as follows:

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;
                }
            }
...

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.


More information about the xorg-driver-ati mailing list