mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-09 04:38:03 +02:00
panfrost: Disable blending for no-op logic ops
Prevents regression from the series, since we don't support empty blend shaders. This could be fixed more generically but I'm not inclined to compile more blend shaders than needed so shrug. Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io> Reviewed-by: Italo Nicola <italonicola@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24252>
This commit is contained in:
parent
2d902dbf02
commit
b010b6f691
1 changed files with 3 additions and 1 deletions
|
|
@ -4217,7 +4217,9 @@ panfrost_create_blend_state(struct pipe_context *pipe,
|
|||
unsigned constant_mask = pan_blend_constant_mask(equation);
|
||||
const bool supports_2src = pan_blend_supports_2src(PAN_ARCH);
|
||||
so->info[c] = (struct pan_blend_info){
|
||||
.enabled = (equation.color_mask != 0),
|
||||
.enabled = (equation.color_mask != 0) &&
|
||||
!(blend->logicop_enable &&
|
||||
blend->logicop_func == PIPE_LOGICOP_NOOP),
|
||||
.opaque = !blend->logicop_enable && pan_blend_is_opaque(equation),
|
||||
.constant_mask = constant_mask,
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue