[Mesa-dev] [PATCH 4/4] anv/pipeline: Make is_dual_src_blend_factor inline

Jason Ekstrand jason at jlekstrand.net
Sat Nov 26 06:30:46 UTC 2016


It's not used on gen8+ so it causes unused function warnings.
---
 src/intel/vulkan/genX_pipeline.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/intel/vulkan/genX_pipeline.c b/src/intel/vulkan/genX_pipeline.c
index 86dd647..845d020 100644
--- a/src/intel/vulkan/genX_pipeline.c
+++ b/src/intel/vulkan/genX_pipeline.c
@@ -1100,7 +1100,7 @@ emit_3dstate_wm(struct anv_pipeline *pipeline, struct anv_subpass *subpass,
    }
 }
 
-static bool
+static inline bool
 is_dual_src_blend_factor(VkBlendFactor factor)
 {
    return factor == VK_BLEND_FACTOR_SRC1_COLOR ||
-- 
2.5.0.400.gff86faf



More information about the mesa-dev mailing list