mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-09 08:58:02 +02: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>
(cherry picked from commit e8fc5cca90)
This commit is contained in:
parent
58a830d9c4
commit
c49c481ca6
2 changed files with 2 additions and 2 deletions
|
|
@ -643,7 +643,7 @@
|
|||
"description": "zink: fix dual_src_blend driconf workaround",
|
||||
"nominated": true,
|
||||
"nomination_type": 0,
|
||||
"resolution": 0,
|
||||
"resolution": 1,
|
||||
"main_sha": null,
|
||||
"because_sha": null
|
||||
},
|
||||
|
|
|
|||
|
|
@ -419,7 +419,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