+ radeonfb-support-24bpp-32bpp-minus-alpha.patch added to -mm tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The patch titled
     radeonfb: support 24bpp (32bpp minus alpha)
has been added to the -mm tree.  Its filename is
     radeonfb-support-24bpp-32bpp-minus-alpha.patch

See http://www.zip.com.au/~akpm/linux/patches/stuff/added-to-mm.txt to find
out what to do about this

------------------------------------------------------
Subject: radeonfb: support 24bpp (32bpp minus alpha)
From: Kimball Murray <kimball.murray@xxxxxxxxx>

Allow unpacked, 24bpp mode to work in the radeonfb driver.

I am submitting this on behalf of Charlotte Richardson at Stratus
Technologies, to support one of the Stratus hardware platforms.

Signed-off-by: Charlotte Richardson <charlotte.richardson@xxxxxxxxxxx>
Signed-off-by: Andrew Morton <akpm@xxxxxxxx>
---

 drivers/video/aty/radeon_base.c |    3 ---
 drivers/video/aty/radeonfb.h    |    6 +++++-
 2 files changed, 5 insertions(+), 4 deletions(-)

diff -puN drivers/video/aty/radeon_base.c~radeonfb-support-24bpp-32bpp-minus-alpha drivers/video/aty/radeon_base.c
--- a/drivers/video/aty/radeon_base.c~radeonfb-support-24bpp-32bpp-minus-alpha
+++ a/drivers/video/aty/radeon_base.c
@@ -719,11 +719,8 @@ static int radeonfb_check_var (struct fb
 			v.bits_per_pixel = 16;
 			break;
 		case 17 ... 24:
-#if 0 /* Doesn't seem to work */
 			v.bits_per_pixel = 24;
 			break;
-#endif			
-			return -EINVAL;
 		case 25 ... 32:
 			v.bits_per_pixel = 32;
 			break;
diff -puN drivers/video/aty/radeonfb.h~radeonfb-support-24bpp-32bpp-minus-alpha drivers/video/aty/radeonfb.h
--- a/drivers/video/aty/radeonfb.h~radeonfb-support-24bpp-32bpp-minus-alpha
+++ a/drivers/video/aty/radeonfb.h
@@ -517,6 +517,8 @@ static inline int round_div(int num, int
 
 static inline int var_to_depth(const struct fb_var_screeninfo *var)
 {
+	if (var->bits_per_pixel == 32)
+	       return (var->transp.length == 8) ? 32 : 24;
 	if (var->bits_per_pixel != 16)
 		return var->bits_per_pixel;
 	return (var->green.length == 5) ? 15 : 16;
@@ -531,7 +533,9 @@ static inline u32 radeon_get_dstbpp(u16 
        		return DST_15BPP;
        	case 16:
        		return DST_16BPP;
-       	case 32:
+	case 24:
+       		return DST_24BPP;
+	case 32:
        		return DST_32BPP;
        	default:
        		return 0;
_

Patches currently in -mm which might be from kimball.murray@xxxxxxxxx are

radeonfb-support-24bpp-32bpp-minus-alpha.patch

-
To unsubscribe from this list: send the line "unsubscribe mm-commits" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Kernel Newbies FAQ]     [Kernel Archive]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [Bugtraq]     [Photo]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]

  Powered by Linux