zink: fix more cases of heap/memtype suballocator mismatch
authorMike Blumenkrantz <michael.blumenkrantz@gmail.com>
Fri, 3 Feb 2023 15:06:32 +0000 (10:06 -0500)
committerMarge Bot <emma+marge@anholt.net>
Fri, 3 Feb 2023 21:59:07 +0000 (21:59 +0000)
commitabf63b7c68114b7e93f06bc4f18fb63454c75655
tree485819b9dcc379fbaadfa641e9ebd02d33a4c913
parente1e4ddcf10478136af59b004c6fca80aa29e69b0
zink: fix more cases of heap/memtype suballocator mismatch

suballocation must happen based on the memtype, so also add some asserts to
ensure the slab bos are always what the caller expects

Fixes: f6d3a5755f6 ("zink: zink_heap isn't 1-to-1 with memoryTypeIndex")
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21100>
src/gallium/drivers/zink/zink_bo.c