aboutsummaryrefslogtreecommitdiffstats
path: root/src/vulkan/genX_state_util.h
diff options
context:
space:
mode:
authorJason Ekstrand <[email protected]>2016-01-26 20:16:43 -0800
committerJason Ekstrand <[email protected]>2016-01-26 20:23:59 -0800
commit9bc72a9213432622364bdeb0ddd053a494896a6e (patch)
treeaf885c5a657c407a9f6f1e4f62d63eb4d156ca66 /src/vulkan/genX_state_util.h
parent7d84fe9b1f35da32c435c23eb07dfac4cbde7502 (diff)
anv/image: Do swizzle remapping in anv_image.c
TODO: At some point, we really need to make an image_view_init_info that's a flyweight and stop stuffing everything into image_view.
Diffstat (limited to 'src/vulkan/genX_state_util.h')
-rw-r--r--src/vulkan/genX_state_util.h11
1 files changed, 1 insertions, 10 deletions
diff --git a/src/vulkan/genX_state_util.h b/src/vulkan/genX_state_util.h
index 78fe1d4da19..67f798ab66e 100644
--- a/src/vulkan/genX_state_util.h
+++ b/src/vulkan/genX_state_util.h
@@ -58,7 +58,7 @@ anv_surface_format(const struct anv_device *device, enum isl_format format,
}
#if ANV_GEN > 7 || ANV_IS_HASWELL
-static const uint32_t vk_to_gen_swizzle_map[] = {
+static const uint32_t vk_to_gen_swizzle[] = {
[VK_COMPONENT_SWIZZLE_ZERO] = SCS_ZERO,
[VK_COMPONENT_SWIZZLE_ONE] = SCS_ONE,
[VK_COMPONENT_SWIZZLE_R] = SCS_RED,
@@ -66,15 +66,6 @@ static const uint32_t vk_to_gen_swizzle_map[] = {
[VK_COMPONENT_SWIZZLE_B] = SCS_BLUE,
[VK_COMPONENT_SWIZZLE_A] = SCS_ALPHA
};
-
-static inline uint32_t
-vk_to_gen_swizzle(VkComponentSwizzle swizzle, VkComponentSwizzle component)
-{
- if (swizzle == VK_COMPONENT_SWIZZLE_IDENTITY)
- return vk_to_gen_swizzle_map[component];
- else
- return vk_to_gen_swizzle_map[swizzle];
-}
#endif
static inline uint32_t