radv: Stop using memory type indices.
authorBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Sat, 25 Apr 2020 21:52:44 +0000 (23:52 +0200)
committerBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Tue, 28 Apr 2020 13:44:56 +0000 (15:44 +0200)
commitbec92850270a046524056b8d43bbd2554ba9f2e0
treed198684c40e7899e2ab52bb60687f2a2f7700aef
parent4a8d172d3f81ef981e386f0cc6c259c36818f697
radv: Stop using memory type indices.

Lots of extra coding was involved in managing them.

And for protected memory I was thinking of making a function that
goes from domain+flags to memory types, which can reuse this array.

Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4751>
src/amd/vulkan/radv_device.c
src/amd/vulkan/radv_private.h