anv: Refactor anv_GetPhysicalDeviceFormatProperties()
authorChad Versace <chadversary@chromium.org>
Wed, 25 Jan 2017 20:12:18 +0000 (12:12 -0800)
committerJason Ekstrand <jason.ekstrand@intel.com>
Thu, 26 Jan 2017 03:18:43 +0000 (19:18 -0800)
commit582619009514a4b7320037a52252ec3eda65ce5e
treec1003fcc18a98815136620fd6e6ad7a088081966
parentb2de77a07dc8d506ff07efd9f93244c3787156bb
anv: Refactor anv_GetPhysicalDeviceFormatProperties()

Add a helper function, anv_get_image_format_properties(), which does all
the work and has a VkPhysicalDeviceImageFormatInfo2KHR parameter. This
patch reduces churn in the following patch that implements
vkGetPhysicalDeviceImageFormatProperties2KHR.

Reviewed-by: Jason Ekstranad <jason@jlekstrand.net>
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
src/intel/vulkan/anv_formats.c