zink: support multiple heaps per memory type
authorMike Blumenkrantz <michael.blumenkrantz@gmail.com>
Mon, 24 Oct 2022 17:40:58 +0000 (13:40 -0400)
committerMarge Bot <emma+marge@anholt.net>
Tue, 25 Oct 2022 02:06:24 +0000 (02:06 +0000)
commitd702a503ad5cc8ca8fddb304a9343490beaf592d
tree97cfae08d269179d1dd03f56e69945f0306aef40
parentf9515d9376752c0355de71957347e1241e3a226b
zink: support multiple heaps per memory type

some allocations require a different memory heap even when using the
same memory bits, so allow iterating over heaps of the same memory type
to find the one that works

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