gen7/8/cmd_buffer: Inline vk_to_gen_swizzle

It's currently unused on IVB so we get compiler warnings.
This commit is contained in:
Jason Ekstrand 2015-11-30 13:29:49 -08:00
parent 9b1cb8fdbc
commit 2c77b0cd01
2 changed files with 2 additions and 2 deletions

View 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)

View 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)