OSDN Git Service

anv: Refactor get_image_format_properties() - depthstencil (v2)
authorChad Versace <chadversary@chromium.org>
Fri, 3 Nov 2017 01:24:08 +0000 (18:24 -0700)
committerChad Versace <chadversary@chromium.org>
Fri, 10 Nov 2017 00:01:59 +0000 (16:01 -0800)
commit8ae4e97536476b1a6f6e36c7c73e00d09940e5b3
tree6cd3684c16c61c58b11b788441fbd70766506e16
parent6720abf292e77d44467419a82af40d63572c6e5a
anv: Refactor get_image_format_properties() - depthstencil (v2)

Teach it to calculate the features of depthstencil formats.

The goal is to incrementally fix get_image_format_properties() to return
a correct result.  Currently, it returns incorrect VkFormatFeatureFlags
which the caller must clean up.

v2: New commit message

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