vk: Add anv_format reference to anv_render_pass_attachment
authorChad Versace <chad.versace@intel.com>
Mon, 17 Aug 2015 21:03:52 +0000 (14:03 -0700)
committerChad Versace <chad.versace@intel.com>
Mon, 17 Aug 2015 21:08:55 +0000 (14:08 -0700)
commit6ff95bba8abd50b47117f733d3e46fb90333210f
treecfe146ab77cf559097c5beb767aa6fee9fae6e9e
parent5a6b2e6df0ac63e20856dfcd1fc9f0ff73ae67e2
vk: Add anv_format reference to anv_render_pass_attachment

Change type of anv_render_pass_attachment::format from VkFormat to const
struct anv_format*.  This elimiates the repetitive lookups into the
VkFormat -> anv_format table when looping over attachments during
anv_cmd_buffer_clear_attachments().
src/vulkan/anv_device.c
src/vulkan/anv_formats.c
src/vulkan/anv_image.c
src/vulkan/anv_meta.c
src/vulkan/anv_private.h