[Mesa-dev] [PATCH 2/5] anv/pipeline: define is_dual_src_blend_factor() for gen <= 8
Lionel Landwerlin
lionel.g.landwerlin at intel.com
Thu Nov 24 13:10:58 UTC 2016
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin at intel.com>
On 24/11/16 12:36, Juan A. Suarez Romero wrote:
> 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,
More information about the mesa-dev
mailing list