Skip to contentSkip to conversation

hw cursor is corrupted on Mach64

DISCUSSION Applied Alexander Kern 2 participants 4 messages Nov 21, 2003 – Jan 6, 2004 Framebuffer layer

lore
Share & tools
lore
#0 lore raw

Hi,

does know anybody, what is mask layout in

void aty_set_cursor_shape(struct fb_info *info, u8 *dst, u8 *src, unsigned int width)

I think, here is a corrupted mask! First scanlines are FF FF <- seems to be correct, but the rest A5 A5 A5 A5... And is it top - bottom or bottom - top ?

Regards Alex

-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it help you create better code? SHARE THE LOVE, and help us help YOU! Click Here: http://sourceforge.net/donate/

#1 lore raw

This patch cures corruption of HW-cursor!

bye
Alex

Am Freitag, 21. November 2003 19:45 schrieb Alexander Kern:

Quoted 15 lines

Hi,

does know anybody, what is mask layout in

void aty_set_cursor_shape(struct fb_info *info, u8 *dst, u8 *src, unsigned int width)

I think, here is a corrupted mask! First scanlines are FF FF <- seems to be correct, but the rest A5 A5 A5 A5... And is it top - bottom or bottom - top ?

Regards Alex

Quoted 9 lines

-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it help you create better code? SHARE THE LOVE, and help us help YOU! Click Here: http://sourceforge.net/donate/
_______________________________________________
Linux-fbdev-devel mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/linux-fbdev-devel

fbcon.c renamed from fbcon.c.orig +2 -1
@@ -1046,13 +1046,14 @@
                         dst = kmalloc(size, GFP_ATOMIC);
                         if (!dst)
                                 return;
+                        memset(dst, 0, size);
                         
                         cursor.set |= FB_CUR_SETSHAPE;
                         if (info->cursor.mask)
                                 kfree(info->cursor.mask);
                         info->cursor.mask = dst;
 
-                        for (i = 0; i < cur_height; i++) {
+                        for (i = 0; i < vc->vc_font.height; i++) {
                                 for (c = 0; c < s_pitch; c++)
                                         *dst++ = 0xff ^ *src++;
                         }       
#3 lore raw
In reply to Alexander Kern
Quoted 9 lines

does know anybody, what is mask layout in

void aty_set_cursor_shape(struct fb_info *info, u8 *dst, u8 *src, unsigned int width)

I think, here is a corrupted mask! First scanlines are FF FF <- seems to be correct, but the rest A5 A5 A5 A5... And is it top - bottom or bottom - top ?

That is correct. The cursor data area (what do you call it?) is 2 bits in size. The 2 bits are

00 Background color
01 Transparent.
10 Forground color.
11 ??

I can't remember off the top of my head.

-------------------------------------------------------
This SF.net email is sponsored by: IBM Linux Tutorials. Become an expert in LINUX or just sharpen your skills. Sign up for IBM's Free Linux Tutorials. Learn everything from the bash shell to sys admin. Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click

#2 lore raw
In reply to Alexander Kern

Applied. Missed clearing the default mask.

Quoted 31 lines · Alexander Kern

This patch cures corruption of HW-cursor!

bye
Alex

Am Freitag, 21. November 2003 19:45 schrieb Alexander Kern:

Quoted 24 lines

Hi,

does know anybody, what is mask layout in

void aty_set_cursor_shape(struct fb_info *info, u8 *dst, u8 *src, unsigned int width)

I think, here is a corrupted mask! First scanlines are FF FF <- seems to be correct, but the rest A5 A5 A5 A5... And is it top - bottom or bottom - top ?

Regards Alex

-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it help you create better code? SHARE THE LOVE, and help us help YOU! Click Here: http://sourceforge.net/donate/
_______________________________________________
Linux-fbdev-devel mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/linux-fbdev-devel

-------------------------------------------------------
This SF.net email is sponsored by: IBM Linux Tutorials. Become an expert in LINUX or just sharpen your skills. Sign up for IBM's Free Linux Tutorials. Learn everything from the bash shell to sys admin. Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click