nvk: Rework format features queries
Split the buffer and image portions into vk_buffer_view.c and vk_image.c respectively. This way they're a lot closer to each other. Put the main combined helper in nvk_format.c since it's a format thing. Also, restructure things a bit based on ANV to make the code look nicer. Also, implement VK_KHR_format_feature_flags2 while we're here. Part-of: <mesa/mesa!24326>
- src/nouveau/vulkan/nvk_buffer_view.c 7 additions, 0 deletionssrc/nouveau/vulkan/nvk_buffer_view.c
- src/nouveau/vulkan/nvk_buffer_view.h 6 additions, 0 deletionssrc/nouveau/vulkan/nvk_buffer_view.h
- src/nouveau/vulkan/nvk_format.c 42 additions, 0 deletionssrc/nouveau/vulkan/nvk_format.c
- src/nouveau/vulkan/nvk_image.c 98 additions, 2 deletionssrc/nouveau/vulkan/nvk_image.c
- src/nouveau/vulkan/nvk_image.h 6 additions, 0 deletionssrc/nouveau/vulkan/nvk_image.h
- src/nouveau/vulkan/nvk_physical_device.c 1 addition, 48 deletionssrc/nouveau/vulkan/nvk_physical_device.c