summaryrefslogtreecommitdiffstats
path: root/src/vulkan/anv_private.h
diff options
context:
space:
mode:
authorChad Versace <[email protected]>2015-08-17 13:10:40 -0700
committerChad Versace <[email protected]>2015-08-17 14:08:55 -0700
commitded736f16a9980eff3009b25b4b89763237c6cea (patch)
treef5466a16afaad0d66dd447a79845650ced368549 /src/vulkan/anv_private.h
parent4ae42c83ec46be3e200120e928a8060628a45bb6 (diff)
vk: Add anv_format reference to anv_image
Change type of anv_image::format from VkFormat to const struct anv_format*. This reduces the number of lookups in the VkFormat -> anv_format table.
Diffstat (limited to 'src/vulkan/anv_private.h')
-rw-r--r--src/vulkan/anv_private.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vulkan/anv_private.h b/src/vulkan/anv_private.h
index dc14dd2818a..89e7a8d778c 100644
--- a/src/vulkan/anv_private.h
+++ b/src/vulkan/anv_private.h
@@ -912,8 +912,8 @@ struct anv_surface {
struct anv_image {
VkImageType type;
+ const struct anv_format *format;
VkExtent3D extent;
- VkFormat format;
uint32_t levels;
uint32_t array_size;