[PATCH 3/4] glamor: Ask the server to always allocate our private.

Keith Packard keithp at keithp.com
Wed Jul 8 10:33:15 PDT 2015


Eric Anholt <eric at anholt.net> writes:

> This avoids a lot of screwing around to attach our privates later.  It
> means that non-glamor pixmaps now gain 120 bytes of glamor privates on
> 64-bit (which has quite a bit of fixable bloat), and glamor pixmaps
> take one less pointer of storage (not counting malloc overhead).
>
> Note that privates start out zero-filled, which matches the callocs we
> were doing when making our own privates, and in the case of an fb
> pixmap that has a priv where it didn't before, the type ends up being
> GLAMOR_MEMORY as we would want.
>
> Signed-off-by: Eric Anholt <eric at anholt.net>

Reviewed-by: Keith Packard <keithp at keithp.com>

-- 
-keith
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 810 bytes
Desc: not available
URL: <http://lists.x.org/archives/xorg-devel/attachments/20150708/e8afd097/attachment.sig>


More information about the xorg-devel mailing list