aboutsummaryrefslogtreecommitdiffstats
path: root/src/vulkan/gen7_state.c
diff options
context:
space:
mode:
authorJason Ekstrand <[email protected]>2015-11-30 13:29:49 -0800
committerJason Ekstrand <[email protected]>2015-11-30 13:29:51 -0800
commit2c77b0cd018747904f57071bd973a065105fc7d1 (patch)
tree26cfa904c2ca03606092cd4a1d00743ebce2341a /src/vulkan/gen7_state.c
parent9b1cb8fdbc7e3c2fb9b950a9844ef653761b7480 (diff)
gen7/8/cmd_buffer: Inline vk_to_gen_swizzle
It's currently unused on IVB so we get compiler warnings.
Diffstat (limited to 'src/vulkan/gen7_state.c')
-rw-r--r--src/vulkan/gen7_state.c2
1 files changed, 1 insertions, 1 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)