zink: make general bo allocation more robust by iterating
authorMike Blumenkrantz <michael.blumenkrantz@gmail.com>
Thu, 13 Apr 2023 17:54:24 +0000 (13:54 -0400)
committerMarge Bot <emma+marge@anholt.net>
Sun, 16 Apr 2023 23:55:30 +0000 (23:55 +0000)
commit31a0de992127025519d405db5669bf5736ba4ae2
treee0597a2684e9d264d7bc8ffe9a39128ff85709a2
parent9d923b14f959e23bd5fc24d5542b00de2d3c0d38
zink: make general bo allocation more robust by iterating

previously there was a fallback path here (broken by f6d3a5755f6)
which would attempt to demote BAR allocations to other heaps on failure
to avoid oom

this was great, but it's not the most robust solution, which is to iterate
all the memory types matching the given heap and try them in addition to having
a demotion fallback

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22479>
src/gallium/drivers/zink/zink_resource.c