Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.bugs.dist > #765089

Bug#825840: localechooser: image display inverts red and blue color

From Samuel Thibault <sthibault@debian.org>
Newsgroups linux.debian.bugs.dist
Subject Bug#825840: localechooser: image display inverts red and blue color
Date 2016-09-06 02:40 +0200
Message-ID <secAF-2Sb-3@gated-at.bofh.it> (permalink)
References (3 earlier) <sdhCq-4zU-7@gated-at.bofh.it> <sdhM5-4Da-3@gated-at.bofh.it> <sdjNT-65r-7@gated-at.bofh.it> <sdMPU-2JV-3@gated-at.bofh.it> <sdUNr-7TE-1@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


Control: reassign -1 linux

Mathieu Malaterre, on Mon 05 Sep 2016 07:26:15 +0200, wrote:
> Frame buffer device information:
>     Name        : OFfb ATY,RockHo
>     Address     : 0x9c008000
>     Size        : 614400
>     Type        : PACKED PIXELS
>     Visual      : PSEUDOCOLOR

> Frame buffer device information:
>     Name        : ATI Radeon 5962
>     Address     : 0x98000000
>     Size        : 33554432
>     Type        : PACKED PIXELS
>     Visual      : PSEUDOCOLOR

Ok, so they look very similar. However, one thing that is different
is the way they handle FBIOPUTCMAP, i.e. offb_setcolreg(). ATY,RockHo
is not actually recognized by the offb driver, and it reverts to
"cmap_simple", which may not actually be the proper way for RockHo, and
it might very well be simply setting rgb in the wrong order.  You could
try to patch this over in there: turn

	case cmap_simple:
		writeb(regno, par->cmap_adr);
		writeb(red, par->cmap_data);
		writeb(green, par->cmap_data);
		writeb(blue, par->cmap_data);
		break;

into

	case cmap_simple:
		writeb(regno, par->cmap_adr);
		writeb(blue, par->cmap_data);
		writeb(green, par->cmap_data);
		writeb(red, par->cmap_data);
		break;

I really don't think it's a bterm bug, its only change of behavior is
when type or visual changes, which is not the case. It however does
use FBIOPUTCMAP, whose implementation does seem suspicious in offb for
RockHo.

Samuel

Back to linux.debian.bugs.dist | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Bug#825840: localechooser: image display inverts red and blue color Mathieu Malaterre <malat@debian.org> - 2016-09-02 21:10 +0200
  Bug#825840: localechooser: image display inverts red and blue color Ben Hutchings <ben@decadent.org.uk> - 2016-09-02 21:40 +0200
    Bug#825840: localechooser: image display inverts red and blue color Mathieu Malaterre <malat@debian.org> - 2016-09-03 11:40 +0200
      Bug#825840: localechooser: image display inverts red and blue color Mathieu Malaterre <malat@debian.org> - 2016-09-03 13:50 +0200
        Bug#825840: localechooser: image display inverts red and blue color Mathieu Malaterre <malat@debian.org> - 2016-09-03 14:00 +0200
          Bug#825840: localechooser: image display inverts red and blue color Mathieu Malaterre <malat@debian.org> - 2016-09-03 16:10 +0200
            Bug#825840: localechooser: image display inverts red and blue color Samuel Thibault <sthibault@debian.org> - 2016-09-04 23:10 +0200
              Bug#825840: localechooser: image display inverts red and blue color Mathieu Malaterre <malat@debian.org> - 2016-09-05 07:40 +0200
                Bug#825840: localechooser: image display inverts red and blue color Samuel Thibault <sthibault@debian.org> - 2016-09-06 02:40 +0200
                Bug#825840: localechooser: image display inverts red and blue color Samuel Thibault <sthibault@debian.org> - 2016-09-06 08:10 +0200
                Bug#825840: localechooser: image display inverts red and blue color Mathieu Malaterre <malat@debian.org> - 2016-09-06 08:10 +0200
            Bug#825840: localechooser: image display inverts red and blue color Samuel Thibault <sthibault@debian.org> - 2016-09-06 01:20 +0200
              Bug#825840: localechooser: image display inverts red and blue color Samuel Thibault <sthibault@debian.org> - 2016-09-06 01:20 +0200

csiph-web