summaryrefslogtreecommitdiffstats
path: root/src/vulkan
diff options
context:
space:
mode:
Diffstat (limited to 'src/vulkan')
-rw-r--r--src/vulkan/gen7_state.c2
-rw-r--r--src/vulkan/gen8_state.c2
2 files changed, 2 insertions, 2 deletions
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)
diff --git a/src/vulkan/gen8_state.c b/src/vulkan/gen8_state.c
index 12a30534bfb..d6db3644b39 100644
--- a/src/vulkan/gen8_state.c
+++ b/src/vulkan/gen8_state.c
@@ -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)