No way to check current active color format
As far as I'm aware there is no way to check the currently used color format (RGB full, RGB limited, YCbCr444, YCbCr420) from userspace.
As I'm new to the amdgpu driver code: Where would be a good place to expose this information?
I did some digging already, the color mode is calculated as a property of new_stream here: https://elixir.bootlin.com/linux/v5.11.10/source/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c#L8571, but new_stream is only handed down to dc to configure the hardware and not to a userspace facing part of the driver.
Edited by Werner Sembach