mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 17:30:12 +01:00
zink: fix dual_src_blend driconf workaround
not sure when this broke but it broke cc: mesa-stable Reviewed-by: Dave Airlie <airlied@redhat.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17156>
This commit is contained in:
parent
ea005c9e04
commit
e8fc5cca90
1 changed files with 1 additions and 1 deletions
|
|
@ -421,7 +421,7 @@ zink_bind_blend_state(struct pipe_context *pctx, void *cso)
|
|||
state->blend_id = blend ? blend->hash : 0;
|
||||
state->dirty = true;
|
||||
bool force_dual_color_blend = zink_screen(pctx->screen)->driconf.dual_color_blend_by_location &&
|
||||
blend && blend->dual_src_blend && state->blend_state->attachments[1].blendEnable;
|
||||
blend && blend->dual_src_blend && state->blend_state->attachments[0].blendEnable;
|
||||
if (force_dual_color_blend != zink_get_fs_key(ctx)->force_dual_color_blend)
|
||||
zink_set_fs_key(ctx)->force_dual_color_blend = force_dual_color_blend;
|
||||
ctx->blend_state_changed = true;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue