anv: Refactor get_buffer_format_properties()
authorChad Versace <chadversary@chromium.org>
Thu, 2 Nov 2017 23:55:55 +0000 (16:55 -0700)
committerChad Versace <chadversary@chromium.org>
Fri, 10 Nov 2017 00:01:59 +0000 (16:01 -0800)
commit342c811646c0d12256b2a0b0d8ddf70f7fbdfcf7
treeca3550034ed8368ab447fe74ae3919aaec3729de
parent62deeaa23a3f0d49058defffdb699e9378ef225d
anv: Refactor get_buffer_format_properties()

Make it a stand-alone function. Pre-patch, for some formats the function
returned incorrect VkFormatFeatureFlags which were cleaned up by the
caller.

This prepares for a cleaner implementation of
VK_EXT_image_drm_format_modifier.

Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
src/intel/vulkan/anv_formats.c