zink: make mem cache limits dynamically scalable
authorMike Blumenkrantz <michael.blumenkrantz@gmail.com>
Fri, 7 May 2021 20:05:51 +0000 (16:05 -0400)
committerMarge Bot <eric+marge@anholt.net>
Wed, 30 Jun 2021 13:07:57 +0000 (13:07 +0000)
commit778f325c6791212c0b143828fae5eecda4b7ac71
treec524097b7fab8cfe60d2cd99ab7ff08ea7628b27
parent252afe405fdd723b74ec1f76a20abc7bb76440e8
zink: make mem cache limits dynamically scalable

this removes the hardcoded count of 5 mem blocks to cache and replaces
it with a value that's based on the number of allocations seen

Reviewed-by: Dave Airlie <airlied@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11594>
src/gallium/drivers/zink/zink_resource.c
src/gallium/drivers/zink/zink_resource.h