[Mesa-dev] [PATCH 3/3] panfrost: Swap order of tiled texture (de)alloc

Alyssa Rosenzweig alyssa at rosenzweig.io
Fri Feb 15 22:12:09 UTC 2019


> Am I reading this correctly, that now we free a slab [for a tiled
> texture] before allocating new one? The commit message seems rather
> cryptic.

Yeah, it's a super minor fix. Rather than allocating a new slab for the
texture and then freeing the old slab, we free then allocate.
Practically, it's identical (since there's no dependency, and they ought
to be the same size...), but it does avoid having to expand the pool if
we're right on the edge. Almost nitpick level, but hey, if it makes
memory use slightly lower and performance slightly more predictable :)


More information about the mesa-dev mailing list