grate-driver / xf86-video-opentegra

X.Org video driver for NVIDIA Tegra
Other
12 stars 9 forks source link

exa: implement memory pool allocator #35

Closed digetx closed 6 years ago

digetx commented 6 years ago

There is some memory wasted by small pixmaps because BO's size is rounded up to the size of page by CMA. To resolve this, use a pool memory allocator that aggregates small allocation into the pools.

Since this patch refactors pixmap allocation quite a lot, I've incorporated other minor feature to this patch. Now a known non-acceleratable pixmap, like 1-bit BPP, is strictly fallback-allocation.

digetx commented 6 years ago

Yeah, seems working fine too :)