mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 15:58:05 +02:00
panfrost: Simplify Midgard blend disable
Probably a bit faster too. Signed-off-by: Alyssa Rosenzweig <alyssa@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11123>
This commit is contained in:
parent
2af0c02ffa
commit
e4592d5651
1 changed files with 1 additions and 7 deletions
|
|
@ -396,13 +396,7 @@ panfrost_emit_midgard_blend(struct panfrost_batch *batch,
|
|||
/* Disable blending for unbacked render targets */
|
||||
if (rt_count == 0 || !batch->key.cbufs[i]) {
|
||||
pan_pack(packed, BLEND, cfg) {
|
||||
cfg.midgard.equation.color_mask = 0xf;
|
||||
cfg.midgard.equation.rgb.a = MALI_BLEND_OPERAND_A_SRC;
|
||||
cfg.midgard.equation.rgb.b = MALI_BLEND_OPERAND_B_SRC;
|
||||
cfg.midgard.equation.rgb.c = MALI_BLEND_OPERAND_C_ZERO;
|
||||
cfg.midgard.equation.alpha.a = MALI_BLEND_OPERAND_A_SRC;
|
||||
cfg.midgard.equation.alpha.b = MALI_BLEND_OPERAND_B_SRC;
|
||||
cfg.midgard.equation.alpha.c = MALI_BLEND_OPERAND_C_ZERO;
|
||||
cfg.enable = false;
|
||||
}
|
||||
|
||||
continue;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue