Hi Andy, On 6/1/26 4:44 PM, Andy Yan wrote: > > Hello Cristian, > > At 2026-05-25 00:27:27, "Cristian Ciocaltea" > <[email protected]> wrote: >> Since commit bec7cbfa7d4f ("drm/rockchip: vop2: Support setting custom >> background color") the VOP2 display controller allows configuring the >> background color of each video output port. >> >> However, this is currently limited to RGB formats. When operating in >> YUV overlay mode, the color must be programmed using YUV format. >> >> Add the necessary RGB-to-YCbCr conversion logic, covering all color >> spaces supported by the display controller: BT601L, BT601F, BT709L and >> BT2020L. >> > > > Do you currently have a branch that makes dw-hdmi-qp output in YUV mode ?
Yes, please check [1] which is based on a subset of Nicolas' color format series. Note I've also submitted a new revision [2] to handle the conversion from V4L2 colorspace to vop_csc_format (already included in [1]). Quick test: # Switch to YUV444 $ modetest -M rockchip -P 34@82:1920x1080+960+540 -w 82:BACKGROUND_COLOR:18446462598732840960 -w 85:'color format':2 # Switch to RGB $ modetest -M rockchip -P 34@82:1920x1080+960+540 -w 82:BACKGROUND_COLOR:18446462598732840960 -w 85:'color format':1 Regards, Cristian [1] https://gitlab.collabora.com/cristicc/linux-next/-/commits/rk3588-yuv420 [2] https://lore.kernel.org/all/[email protected]/
