anv: Fix typo in DestinationAlphaBlendFactor value
Workaround states that if Destination Alpha Blend Factor==BLENDFACTOR_ZERO, instead use BLENDFACTOR_CONST_ALPHA with the constant alpha set to 0. We had typo while setting the DestinationAlphaBlendFactor, use BLENDFACTOR_CONST_ALPHA instead of BLENDFACTOR_CONST_COLOR. Signed-off-by: Sagar Ghuge <sagar.ghuge@intel.com> Cc: mesa-stable Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/28640>
This commit is contained in:
@@ -1062,7 +1062,7 @@ genX(cmd_buffer_flush_gfx_runtime_state)(struct anv_cmd_buffer *cmd_buffer)
|
||||
SET(PS_BLEND, ps_blend.ColorBufferBlendEnable, GET(blend.rts[0].ColorBufferBlendEnable));
|
||||
SET(PS_BLEND, ps_blend.SourceAlphaBlendFactor, GET(blend.rts[0].SourceAlphaBlendFactor));
|
||||
SET(PS_BLEND, ps_blend.DestinationAlphaBlendFactor, gfx->alpha_blend_zero ?
|
||||
BLENDFACTOR_CONST_COLOR :
|
||||
BLENDFACTOR_CONST_ALPHA :
|
||||
GET(blend.rts[0].DestinationAlphaBlendFactor));
|
||||
SET(PS_BLEND, ps_blend.SourceBlendFactor, GET(blend.rts[0].SourceBlendFactor));
|
||||
SET(PS_BLEND, ps_blend.DestinationBlendFactor, gfx->color_blend_zero ?
|
||||
|
||||
Reference in New Issue
Block a user