From 2c77b0cd018747904f57071bd973a065105fc7d1 Mon Sep 17 00:00:00 2001 From: Jason Ekstrand Date: Mon, 30 Nov 2015 13:29:49 -0800 Subject: gen7/8/cmd_buffer: Inline vk_to_gen_swizzle It's currently unused on IVB so we get compiler warnings. --- src/vulkan/gen7_state.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/vulkan/gen7_state.c') diff --git a/src/vulkan/gen7_state.c b/src/vulkan/gen7_state.c index 924b7303da0..e6c544053de 100644 --- a/src/vulkan/gen7_state.c +++ b/src/vulkan/gen7_state.c @@ -191,7 +191,7 @@ static const uint32_t vk_to_gen_swizzle_map[] = { [VK_COMPONENT_SWIZZLE_A] = SCS_ALPHA }; -static uint32_t +static inline uint32_t vk_to_gen_swizzle(VkComponentSwizzle swizzle, VkComponentSwizzle component) { if (swizzle == VK_COMPONENT_SWIZZLE_IDENTITY) -- cgit v1.2.3