Module: Mesa Branch: master Commit: 09fb370068921331fee6042a8a81c381383af6e4 URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=09fb370068921331fee6042a8a81c381383af6e4
Author: James Park <[email protected]> Date: Tue Dec 1 11:08:50 2020 -0800 radv: Fix function parameter types Avoids unnecessary type aliasing. Reviewed-by: Samuel Pitoiset <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7866> --- src/amd/vulkan/radv_pipeline.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/amd/vulkan/radv_pipeline.c b/src/amd/vulkan/radv_pipeline.c index d2488577982..a2564ef042c 100644 --- a/src/amd/vulkan/radv_pipeline.c +++ b/src/amd/vulkan/radv_pipeline.c @@ -412,9 +412,9 @@ static uint32_t si_translate_blend_opt_factor(VkBlendFactor factor, bool is_alph * Get rid of DST in the blend factors by commuting the operands: * func(src * DST, dst * 0) ---> func(src * 0, dst * SRC) */ -static void si_blend_remove_dst(unsigned *func, unsigned *src_factor, - unsigned *dst_factor, unsigned expected_dst, - unsigned replacement_src) +static void si_blend_remove_dst(VkBlendOp *func, VkBlendFactor *src_factor, + VkBlendFactor *dst_factor, VkBlendFactor expected_dst, + VkBlendFactor replacement_src) { if (*src_factor == expected_dst && *dst_factor == VK_BLEND_FACTOR_ZERO) { @@ -429,7 +429,7 @@ static void si_blend_remove_dst(unsigned *func, unsigned *src_factor, } } -static bool si_blend_factor_uses_dst(unsigned factor) +static bool si_blend_factor_uses_dst(VkBlendFactor factor) { return factor == VK_BLEND_FACTOR_DST_COLOR || factor == VK_BLEND_FACTOR_DST_ALPHA || _______________________________________________ mesa-commit mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/mesa-commit
