Module: Mesa Branch: main Commit: 00c649339bdc4ab0910e70e6f788b1d8619cf1b8 URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=00c649339bdc4ab0910e70e6f788b1d8619cf1b8
Author: Samuel Pitoiset <[email protected]> Date: Tue May 17 16:02:12 2022 +0200 radv: fix VK_BLEND_FACTOR_CONSTANT_COLOR translation on GFX11 This one was missing. Signed-off-by: Samuel Pitoiset <[email protected]> Reviewed-by: Timur Kristóf <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16557> --- src/amd/vulkan/radv_pipeline.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/amd/vulkan/radv_pipeline.c b/src/amd/vulkan/radv_pipeline.c index 60e18e727cc..0fac2c2de76 100644 --- a/src/amd/vulkan/radv_pipeline.c +++ b/src/amd/vulkan/radv_pipeline.c @@ -362,7 +362,8 @@ si_translate_blend_factor(enum amd_gfx_level gfx_level, VkBlendFactor factor) case VK_BLEND_FACTOR_ONE_MINUS_DST_ALPHA: return V_028780_BLEND_ONE_MINUS_DST_ALPHA; case VK_BLEND_FACTOR_CONSTANT_COLOR: - return V_028780_BLEND_CONSTANT_COLOR_GFX6; + return gfx_level >= GFX11 ? V_028780_BLEND_CONSTANT_COLOR_GFX11 + : V_028780_BLEND_CONSTANT_COLOR_GFX6; case VK_BLEND_FACTOR_ONE_MINUS_CONSTANT_COLOR: return gfx_level >= GFX11 ? V_028780_BLEND_ONE_MINUS_CONSTANT_COLOR_GFX11 : V_028780_BLEND_ONE_MINUS_CONSTANT_COLOR_GFX6;
