mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-09 08:58:02 +02:00
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:
parent
1f4662cc4e
commit
7cc604ed1b
1 changed files with 1 additions and 1 deletions
|
|
@ -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 ?
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue