anv: Add a vk_image_layout_to_usage_flags helper
authorJason Ekstrand <jason@jlekstrand.net>
Fri, 6 Mar 2020 17:56:27 +0000 (11:56 -0600)
committerMarge Bot <eric+marge@anholt.net>
Fri, 24 Apr 2020 16:17:44 +0000 (16:17 +0000)
commit5de9f4409a6d885755fc9885403423f4ff0650dd
tree16567648dd1c3034bf9fb0e917d1a6d1b459e894
parente3ab86c599d50c5b2f440430b10d6700ae0bf0f4
anv: Add a vk_image_layout_to_usage_flags helper

Reviewed-by: Rafael Antognolli <rafael.antognolli@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4100>
src/intel/vulkan/anv_image.c