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


Groups > linux.debian.kernel > #55303

Bug#825840: Possible fix for colour invertion on ATY,Rockhopper2

From lsorense@csclub.uwaterloo.ca (Lennart Sorensen)
Newsgroups linux.debian.bugs.dist, linux.debian.kernel
Subject Bug#825840: Possible fix for colour invertion on ATY,Rockhopper2
Date 2016-10-03 18:40 +0200
Message-ID <soerv-7n1-15@gated-at.bofh.it> (permalink)
Organization linux.* mail to news gateway

Cross-posted to 2 groups.

Show all headers | View raw


Well it seems ATY,Rockhopper2 (not Rockhopper) in the Mac Mini is in fact 
a Radeon, and the way the radeonfb driver handles the pallete appears
to match the cmap_radeon in offb, so perhaps this would work in offb.c

--- a/drivers/video/fbdev/offb.c
+++ b/drivers/video/fbdev/offb.c
@@ -333,7 +333,7 @@
 		par->cmap_adr = offb_map_reg(dp, 2, 0, 0x1fff);
 		if (par->cmap_adr)
 			par->cmap_type = cmap_M3B;
-	} else if (dp && !strncmp(name, "ATY,Rage6", 9)) {
+	} else if (dp && (!strncmp(name, "ATY,Rage6", 9)) || !strncmp(name, "ATY,Rockhopper2", 15)) {
 		par->cmap_adr = offb_map_reg(dp, 1, 0, 0x1fff);
 		if (par->cmap_adr)
 			par->cmap_type = cmap_radeon;

-- 
Len Sorensen

Back to linux.debian.kernel | Previous | Next | Find similar | Unroll thread


Thread

Bug#825840: Possible fix for colour invertion on ATY,Rockhopper2 lsorense@csclub.uwaterloo.ca (Lennart Sorensen) - 2016-10-03 18:40 +0200

csiph-web