[Mesa-dev] [PATCH 2/5] anv/pipeline: define is_dual_src_blend_factor() for gen <= 8

Juan A. Suarez Romero jasuarez at igalia.com
Thu Nov 24 12:36:02 UTC 2016


Fixes defined but not used warning.
---
 src/intel/vulkan/genX_pipeline.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/intel/vulkan/genX_pipeline.c b/src/intel/vulkan/genX_pipeline.c
index ada7985..991fbf6 100644
--- a/src/intel/vulkan/genX_pipeline.c
+++ b/src/intel/vulkan/genX_pipeline.c
@@ -1100,6 +1100,7 @@ emit_3dstate_wm(struct anv_pipeline *pipeline, struct anv_subpass *subpass,
    }
 }
 
+#if GEN_GEN < 8
 static bool
 is_dual_src_blend_factor(VkBlendFactor factor)
 {
@@ -1108,6 +1109,7 @@ is_dual_src_blend_factor(VkBlendFactor factor)
           factor == VK_BLEND_FACTOR_SRC1_ALPHA ||
           factor == VK_BLEND_FACTOR_ONE_MINUS_SRC1_ALPHA;
 }
+#endif
 
 static void
 emit_3dstate_ps(struct anv_pipeline *pipeline,
-- 
2.7.4



More information about the mesa-dev mailing list