vk/formats: Add global pointer to anv_format for S8_UINT
authorChad Versace <chad.versace@intel.com>
Mon, 17 Aug 2015 20:49:35 +0000 (13:49 -0700)
committerChad Versace <chad.versace@intel.com>
Mon, 17 Aug 2015 21:08:55 +0000 (14:08 -0700)
commita9c36daa83ce2305ea8e310306699dee4a3d5c19
treee149d304f0c6443d51c3bf13eba1274289e0aa01
parent60c4ac57f28c655cd7b40b7f5be966f95c982a0b
vk/formats: Add global pointer to anv_format for S8_UINT

Stencil formats are often a special case. To reduce the number of lookups
into the VkFormat-to-anv_format translation table when working with
stencil, expose the table's entry for VK_FORMAT_S8_UINT as global
variable anv_format_s8_uint.
src/vulkan/anv_formats.c
src/vulkan/anv_private.h