more test result:

1) the first call the function 
  dest->Blit( dest, colorkeyed, NULL,
                      (SW!=SX) ? myrand() % (SW-SX) : 0,
                      (SY-SH)  ? myrand() % (SH-SY) : 0 ); 
  is passed
  the second times, call the function   dest->Blit( dest, colorkeyed, NULL,
                      (SW!=SX) ? myrand() % (SW-SX) : 0,
                      (SY-SH)  ? myrand() % (SH-SY) : 0 ); caused a SIGBUS

2) I notice the signal is raised from function static void Bop_rgb16_Kto_Aop( 
GenefxState *gfxs )
if I commented out     *D = dpixel; it works , below is the codes snap, I guess 
may be there some memory problem in __u32 *S    = gfxs->Bop[0];


if (dpixel != DSkey) {
               if ((dpixel & 0xFFFF0000) != (DSkey & 0xFFFF0000)) {
                    if ((dpixel & 0x0000FFFF) != (DSkey & 0x0000FFFF)) {
                   //     *D = dpixel;
                    }
                    else {
#ifdef WORDS_BIGENDIAN
                         tmp[0] = (__u16)(dpixel >> 16);ss
#else
                        tmp[1] = (__u16)(dpixel >> 16);
#endif
                    }


----- Original Message ----- 
From: "Jiao" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Tuesday, May 23, 2006 9:18 AM
Subject: may be there is a bug in generic gfx driver


> Hi,all
> 
> I encountered a problem when I run ./df_dok --blit-colorkeyed or 
> --blit-dst-colorkeyed in arm9(little endian) , it caused a trap,while testing 
> it in PC, all the functions are passed.
> 
> 
> In detail:
> 1)  in arm9(little endian) do_dok pass most of function except the option 
> --blit-colorkeyed or --blit-dst-colorkeyed
> 2)  framebuffer( /dev/fb/0, RGB(565) linux-kernel 2.6
> 3)  I use same test cases,frame buffer is still RGB(565) in PC, all the 
> options in df_dok is passed. 
> 
> Below is the log
> 
> ./df_dok --blit-colorkeyed 
> 
> (*) DirectFB/Config: Parsing config file '/etc/directfbrc'.
> 
>        ---------------------- DirectFB v0.9.25 ---------------------
>              (c) 2000-2002  convergence integrated media GmbH  
>              (c) 2002-2004  convergence GmbH                   
>         -----------------------------------------------------------
> 
> (*) DirectFB/Core: Multi Application Core. (2006-05-21 11:05) 
> (*) Direct/Thread: Running 'Fusion Dispatch' (MESSAGING, 1113)...
> (!) DirectFB/FBDev: Could not retrieve palette for backup!
>     --> Invalid argument
> (*) Direct/Thread: Running 'ipb5310 Input' (INPUT, 1114)...
> (*) DirectFB/Input: ipb5310 remote control 0.9 (himedia)
> (*) DirectFB/Graphics: Generic Software Rasterizer 0.6 (convergence 
> integrated media GmbH)
> (*) DirectFB/Core/WM: Default 0.2 (Convergence GmbH)
> (*) Direct/Interface: Loaded 'PNG' implementation of 'IDirectFBImageProvider'.
> (*) Direct/Interface: Loaded 'FT2' implementation of 'IDirectFBFont'.
> (*) Direct/Interface: Loaded 'GIF' implementation of 'IDirectFBImageProvider'.
> Benchmarking with 256x256 in 16bit mode... (16bit)
> 
> Alignment trap: df_dok (1112) PC=0x400477d4 Instr=0xe5901000 
> Address=0x2055a002 FSR 0x001
> (!) [ 1112:    2.934] --> Caught signal 7 (sent by the kernel) <--
> (!) Direct/Thread: Killing 'Fusion Dispatch' (1113)!
> Killed
> 
> Best regards
> 
> Jiao
_______________________________________________
directfb-dev mailing list
[email protected]
http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-dev

Reply via email to