diff --git a/.pick_status.json b/.pick_status.json index 5d103dc4341..4372dfceef0 100644 --- a/.pick_status.json +++ b/.pick_status.json @@ -4792,7 +4792,7 @@ "description": "panfrost: Fix logic ops on Bifrost", "nominated": true, "nomination_type": 1, - "resolution": 0, + "resolution": 1, "main_sha": null, "because_sha": "d849d9779a77f05d7acd418516e154a4e9018f40" }, diff --git a/src/gallium/drivers/panfrost/pan_cmdstream.c b/src/gallium/drivers/panfrost/pan_cmdstream.c index 1782ca17ce9..63da9557e8b 100644 --- a/src/gallium/drivers/panfrost/pan_cmdstream.c +++ b/src/gallium/drivers/panfrost/pan_cmdstream.c @@ -4511,7 +4511,7 @@ panfrost_create_blend_state(struct pipe_context *pipe, const bool supports_2src = pan_blend_supports_2src(PAN_ARCH); so->info[c] = (struct pan_blend_info) { .enabled = (equation.color_mask != 0), - .opaque = pan_blend_is_opaque(equation), + .opaque = !blend->logicop_enable && pan_blend_is_opaque(equation), .constant_mask = constant_mask, /* TODO: check the dest for the logicop */ diff --git a/src/panfrost/lib/pan_blend.c b/src/panfrost/lib/pan_blend.c index f6e6bf671b0..b4c3f157332 100644 --- a/src/panfrost/lib/pan_blend.c +++ b/src/panfrost/lib/pan_blend.c @@ -800,7 +800,8 @@ GENX(pan_blend_get_shader_locked)(const struct panfrost_device *dev, }; /* Blend shaders should only be used for blending on Bifrost onwards */ - assert(dev->arch <= 5 || !pan_blend_is_opaque(state->rts[rt].equation)); + assert(dev->arch <= 5 || state->logicop_enable || + !pan_blend_is_opaque(state->rts[rt].equation)); assert(state->rts[rt].equation.color_mask != 0); struct hash_entry *he = _mesa_hash_table_search(dev->blend_shaders.shaders, &key);