diff options
| author | Qinyun Tan <qinyuntan@linux.alibaba.com> | 2026-09-01 16:32:32 +0800 |
|---|---|---|
| committer | Thomas Zimmermann <tzimmermann@suse.de> | 2026-09-08 15:12:26 +0200 |
| commit | b67f408a0c2427d5d7c682cfbdad87c4ff73265b (patch) | |
| tree | 829644a28577d03450d98a22479c042a1d0dda54 /scripts/Makefile.thinlto | |
| parent | 313f798f52a5e46b0e419d05f977d40aaeac4106 (diff) | |
| download | linux-b67f408a0c2427d5d7c682cfbdad87c4ff73265b.tar.gz linux-b67f408a0c2427d5d7c682cfbdad87c4ff73265b.zip | |
drm/qxl: create blend mode property on primary and cursor planes
Since commit 860e748bddcc ("drm: ensure blend mode supported if pixel
format with alpha exposed"), drm_mode_config_validate() warns when a
plane exposes an alpha pixel format but not the "pixel blend mode"
property. Both the qxl primary and cursor planes expose ARGB8888 and
trip this on driver load.
qxl submits cursors as SPICE_CURSOR_TYPE_ALPHA, which the SPICE
protocol explicitly defines as a "pre-multiplied ARGB8888 pixmap"
(Spice Protocol, "Cursor channel definition" section [1]). This
matches the blend mode userspace has always assumed when the property
is not attached. Expose a "pixel blend mode" property advertising only
DRM_MODE_BLEND_PREMULTI to make these semantics explicit and silence
the warning. The primary plane is the bottom-most plane so its blend
mode has no visible effect; advertise the same value there for
consistency. No functional change.
[1] https://www.spice-space.org/spice-protocol.html
Fixes: 860e748bddcc ("drm: ensure blend mode supported if pixel format with alpha exposed")
Reviewed-by: Thomas Zimmermann <tzimmermann@suse.de>
Signed-off-by: Qinyun Tan <qinyuntan@linux.alibaba.com>
Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Link: https://patch.msgid.link/20260901083234.1828755-3-qinyuntan@linux.alibaba.com
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions
