modesetting: Add CTM RandR property

Graphics / X.Org / X.Org Server - Aaron Plattner [] - 29 October 2020 22:25 UTC

When the "CTM" (color transform matrix) modesetting property is available, create a corresponding RandR property.

To match the format of the property available in the amdgpu driver, expose it as an array of 18 32-bit XA_INTEGERs representing a 3x3 matrix in row-major order, where each entry is a S31.32 sign-magnitude fixed-point number with the fractional part listed first.

4e670f128 modesetting: Add CTM RandR property
hw/xfree86/drivers/modesetting/drmmode_display.c | 124 +++++++++++++++++++++++
hw/xfree86/drivers/modesetting/drmmode_display.h | 4 +
2 files changed, 128 insertions(+)


  • Share