Mesa (main): radv: fix VK_BLEND_FACTOR_CONSTANT_COLOR translation on GFX11
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Thu May 26 08:02:21 UTC 2022
Module: Mesa
Branch: main
Commit: 00c649339bdc4ab0910e70e6f788b1d8619cf1b8
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=00c649339bdc4ab0910e70e6f788b1d8619cf1b8
Author: Samuel Pitoiset <samuel.pitoiset at gmail.com>
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 <samuel.pitoiset at gmail.com>
Reviewed-by: Timur Kristóf <timur.kristof at gmail.com>
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;
More information about the mesa-commit
mailing list