zink: fix zink_mem_type_idx_from_bits()
authorMike Blumenkrantz <michael.blumenkrantz@gmail.com>
Tue, 31 Jan 2023 21:46:51 +0000 (16:46 -0500)
committerMarge Bot <emma+marge@anholt.net>
Thu, 2 Feb 2023 05:04:17 +0000 (05:04 +0000)
commitd23b3a13943576bbb8dd0fea12ac717c40b376e1
tree5f57a0ec1ea1bb33eedf051ace17c30c8e17e28d
parentff5a761232ec8c99447f58f6d3dd395899ce5861
zink: fix zink_mem_type_idx_from_bits()

at some point this used to work, but it no longer does what it's supposed
to do, which is return a memtype from a heap+flags

Fixes: d702a503ad5 ("zink: support multiple heaps per memory type")
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21025>
src/gallium/drivers/zink/zink_bo.h