2025-02-26 3:18 AM
Hello,
I am struggling with improper color management for our display connected as LTDC. I prompt for drm state with
cat /sys/kernel/debug/dri/0/state
I wonder why I get
format=RG16
(that is true, we use RGB565 LTDC interface) and
color-encoding=ITU-R BT.601 YCbCr
color-range=YCbCr limited range
at the same time. I expect color encoding to be RGB. Am I right ?
Here is the whole output:
utc:~# cat /sys/kernel/debug/dri/0/state
plane[33]: plane-0
crtc=crtc-0
fb=38
allocated by = [fbcon]
refcount=2
format=RG16 little-endian (0x36314752)
modifier=0x0
size=1024x600
layers:
size[0]=1024x600
pitch[0]=2048
offset[0]=0
obj[0]:
name=0
refcount=3
start=00010000
size=1228800
imported=no
crtc-pos=1024x600+0+0
src-pos=1024.000000x600.000000+0.000000+0.000000
rotation=1
normalized-zpos=0
color-encoding=ITU-R BT.601 YCbCr
color-range=YCbCr limited range
user_updates=1fps
plane[36]: plane-1
crtc=(null)
fb=0
crtc-pos=0x0+0+0
src-pos=0.000000x0.000000+0.000000+0.000000
rotation=1
normalized-zpos=0
color-encoding=ITU-R BT.601 YCbCr
color-range=YCbCr limited range
user_updates=0fps
crtc[35]: crtc-0
enable=1
active=0
self_refresh_active=0
planes_changed=1
mode_changed=0
active_changed=1
connectors_changed=0
color_mgmt_changed=0
plane_mask=1
connector_mask=1
encoder_mask=1
mode: "1024x600": 66 60000 1024 1184 1254 1414 600 612 622 645 0x48 0x0
connector[32]: DPI-1
crtc=crtc-0
self_refresh_aware=0