vc4/hvs: Support fixed alpha correctly on 2712D0
authorDom Cobley <popcornmix@gmail.com>
Tue, 6 Feb 2024 19:59:13 +0000 (19:59 +0000)
committerDom Cobley <popcornmix@gmail.com>
Mon, 19 Feb 2024 11:35:37 +0000 (11:35 +0000)
commit51b811a09a9995adf81b76b1ecbbe0d19cf9df06
tree2b7166d52a92f9d161b16f8c01aa447b5654da66
parent75ed1c665e0c33d533466e53f82430a2cf2aeb3c
vc4/hvs: Support fixed alpha correctly on 2712D0

2712D0 removed alpha_mode from control word 2 for choosing fixed alpha
and replaced it with the previously reserved value of 3 in alpha_mask.

Handle this to fix corrupt desktop when using X on 2712D0

Signed-off-by: Dom Cobley <popcornmix@gmail.com>
drivers/gpu/drm/vc4/vc4_plane.c
drivers/gpu/drm/vc4/vc4_regs.h