On Thursday 13 October 2011 08:44:27 Michel Dänzer wrote:
> On Mit, 2011-10-12 at 22:54 +0200, Martin Stolpe wrote:
> > I'm using the Gallium R300 driver with the Xorg state tracker on my
> > system. Everything is running very smoothly when I'm using OpenGL ES
> > 2.0 composited mode of kwin. Running for example Notepad++ in wine on
> > the other hand is painfully slow. I've tried to profile a Notepad++
> > session using oprofile but it seems that the reason why for example
> > scrolling is so slow is not catched by oprofile. At least there is
> > nothing which catches my eyes. I would have expected that "r300_dri.so"
> > or "r300_drv.so" would pop up in the profile log. Is there a special
> > way to profile graphics drivers?
> 
> Not really, but in the likely case that the slowness is relaeted to
> software rendering fallbacks, a lot of cycles may be spent in X server
> or libpixman code.
> 
> I prefer sysprof or perf over oprofile, YMMV.


I think your guess about the software fallback was correct.

This is the output for scrolling in Notepad++ running in wine:
Events: 34K cycles                                                              
                                                                                
                                                                 
-     48,90%                X  libpixman-1.so.0.22.2                 [.] 
pixman_blt_sse2.part.10                                                         
                                                                       
↑
   - pixman_blt_sse2.part.10                                                    
                                                                                
                                                                
▮
      - 99,98% sse2_blt                                                         
                                                                                
                                                                
▒
           pixman_blt                                                           
                                                                                
                                                                
▒
         + fbCopyNtoN                                                           
                                                                                
                                                                
▒
-     30,25%                X  libc-2.14.so                          [.] 
memcpy                                                                          
                                                                       
▒
   + memcpy                                                                     
                                                                                
                                                                

This is the output after moving around windows:
Events: 26K cycles                                                              
                                                                                
                                                                 
-     61,56%                X  libc-2.14.so                      [.] memcpy     
                                                                                
                                                                
↑
   - memcpy                                                                     
                                                                                
                                                                
▮
      + 89,77% ExaUploadToScreen                                                
                                                                                
                                                                
▒
        9,27% 0x7f2e0d93af4e                                                    
                                                                                
                                                                
▒
        0,66% 0x1bd70300000264                                                  
                                                                                
                                                                
▒
-     26,10%                X  libfb.so                          [.] fbBlt      
                                                                                
                                                                
▒
     fbBlt   


I think it would be best to create a bug report on 
https://bugs.freedesktop.org?


Best regards
Martin
_______________________________________________
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/mesa-dev

Reply via email to