[gfx] PLANAR codec data invalid
Author: akallabethCreated Sep 6, 2026Updated Sep 9, 2026
Labelsbug
xrdp version
0.10.1
Detailed xrdp version, build options
Initially reported here: https://github.com/FreeRDP/FreeRDP/issues/13348
Debugged this and xrdp sends invalid alpha data with that codec.
Previously we ignored the alpha channel of gfx surfaces, but since windows 11 this is no longer possible (they use surfaces without alpha data and set the alpha with ALPHA codec for transparency)
so now we're facing an inssue where the surface alpha data is overwritten by xrdp PLANAR codec data with an invalid alpha channel
Possible fixes:
- Do not set
PLANAR_FORMAT_HEADER_NAand just not supply alpha data at all - Correct the value sent to 0xff instead of 0
Operating system & version
ubuntu 26.04
Installation method
dnf / apt / zypper / pkg / etc
Which backend do you use?
No response
What desktop environment do you use?
No response
Environment xrdp running on
No response
What's your client?
FreeRDP 3.31.1
Area(s) with issue?
Graphic glitches
Steps to reproduce
Connect with GFX enabled to xrdp with FreeRDP >= 3.31.1
✔️ Expected Behavior
Proper screen content
❌ Actual Behavior
Alpha of image is 0
Anything else?
No response
Source: neutrinolabs/xrdp