[PATCH 1/3] exa/mixed: avoid copying back pixmap data when no migration took place

Michel Dänzer michel at daenzer.net
Thu Nov 12 10:22:47 PST 2009


On Mon, 2009-11-09 at 19:52 +0100, Maarten Maathuis wrote: 
> On Mon, Nov 9, 2009 at 12:14 AM, Maarten Maathuis <madman2003 at gmail.com> wrote:
> >> This is just an observation, but I do find the fact we have two things
> >>
> >> exaPixmapIsOffscreen(pPixmap)
> >> and
> >> !pExaPixmap->offscreen
> >>
> >> Like I know they are different but really seriously can anyone know
> >> the difference just by reading this?
> >>
> >> EXA has become quite complicated recently and very difficult to trace
> >> through, this naming doesn't help.
> 
> exaPixmapIsOffscreen() is related to having a driver/vram/whatever pixmap
> 
> pExaPixmap->offscreen says if the offscreen pixmap is the current
> choice of rendering to
> 
> The naming came from classic exa. Some better names might be:
> 
> exaPixmapHasOffscreen()

Rather something like exaIsGpuAccessible().

> and pExaPixmap->using_offscreen/use_offscreen

The latter sounds good to me, or maybe something like ->use_gpu_copy to
go with the above.


-- 
Earthling Michel Dänzer           |                http://www.vmware.com
Libre software enthusiast         |          Debian, X and DRI developer


More information about the xorg-devel mailing list