[PATCH xserver 04/11] dix: Don't limit GCperDepth to MAXFORMATS

Keith Packard keithp at keithp.com
Sat Dec 10 00:40:21 UTC 2016


Adam Jackson <ajax at redhat.com> writes:

> GCperDepth is the scratch GC pool. When we look up a scratch GC we match
> against depth and pay no attention to MAXFORMATS, so we can size the
> array dynamically based on how many depths are supported.

You could go nuts and just have a static array indexed by depth.

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


More information about the xorg-devel mailing list