gen7/8/cmd_buffer: Inline vk_to_gen_swizzle
authorJason Ekstrand <jason.ekstrand@intel.com>
Mon, 30 Nov 2015 21:29:49 +0000 (13:29 -0800)
committerJason Ekstrand <jason.ekstrand@intel.com>
Mon, 30 Nov 2015 21:29:51 +0000 (13:29 -0800)
It's currently unused on IVB so we get compiler warnings.

src/vulkan/gen7_state.c
src/vulkan/gen8_state.c

index 924b7303da05a59ea38982b19599372a4212080a..e6c544053defc69e7c89fdd1a536ca9cd8260260 100644 (file)
@@ -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)
index 12a30534bfbc4f57a51af44ebfc456d2ae3d39d0..d6db3644b3909722611cc53f3887b9cb8a36c00e 100644 (file)
@@ -96,7 +96,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)