zink: allocate/place memory using memoryTypeIndex directly
authorMike Blumenkrantz <michael.blumenkrantz@gmail.com>
Mon, 24 Oct 2022 17:26:31 +0000 (13:26 -0400)
committerMarge Bot <emma+marge@anholt.net>
Tue, 25 Oct 2022 02:06:23 +0000 (02:06 +0000)
commitf9515d9376752c0355de71957347e1241e3a226b
treef1c746a379931f11b7c1519c73f44d033a4b330f
parenta3552048c7e7b8afebfc99caac6d555439ddf2bc
zink: allocate/place memory using memoryTypeIndex directly

it's possible for drivers to have multiple heaps with identical flags,
so this will enable passing the heap that should actually be used for
allocation

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