[PULL] build fix, GC clipping cleanup

Keith Packard keithp at keithp.com
Tue Oct 4 12:43:33 PDT 2011

On Tue, 4 Oct 2011 12:37:59 -0700, Aaron Plattner <aplattner at nvidia.com> wrote:

> With the old CreatePixmap API, drivers could override the width and 
> height when calling down to prevent the fb layer from allocating the 
> pixmap memory, and then plug in its own.  It looks like a driver could 
> do the same thing now by changing the pixmap structure's width and 
> height to 0 temporarily, but it looks like that will cause the new code 
> to call malloc(0) and then fail if it returns NULL.

Might make sense to have the fb code *not* allocate memory if
devPrivate.ptr is non-zero?

keith.packard at intel.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 827 bytes
Desc: not available
URL: <http://lists.x.org/archives/xorg-devel/attachments/20111004/780f2f24/attachment.pgp>

More information about the xorg-devel mailing list