diff options
author | Chad Versace <[email protected]> | 2015-08-17 14:03:52 -0700 |
---|---|---|
committer | Chad Versace <[email protected]> | 2015-08-17 14:08:55 -0700 |
commit | 6ff95bba8abd50b47117f733d3e46fb90333210f (patch) | |
tree | cfe146ab77cf559097c5beb767aa6fee9fae6e9e /src/vulkan/anv_formats.c | |
parent | 5a6b2e6df0ac63e20856dfcd1fc9f0ff73ae67e2 (diff) |
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().
Diffstat (limited to 'src/vulkan/anv_formats.c')
-rw-r--r-- | src/vulkan/anv_formats.c | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/src/vulkan/anv_formats.c b/src/vulkan/anv_formats.c index 9b971a18ac2..f5d00a0f8ff 100644 --- a/src/vulkan/anv_formats.c +++ b/src/vulkan/anv_formats.c @@ -218,19 +218,6 @@ anv_format_for_vk_format(VkFormat format) return &anv_formats[format]; } -bool -anv_is_vk_format_depth_or_stencil(VkFormat format) -{ - const struct anv_format *format_info = - anv_format_for_vk_format(format); - - if (format_info->depth_format != UNSUPPORTED && - format_info->depth_format != 0) - return true; - - return format_info->has_stencil; -} - // Format capabilities struct surface_format_info { |