drm/amd/display: Enable colorspace property for MST connectors
authorjsg <jsg@openbsd.org>
Sat, 15 Jun 2024 04:23:20 +0000 (04:23 +0000)
committerjsg <jsg@openbsd.org>
Sat, 15 Jun 2024 04:23:20 +0000 (04:23 +0000)
From Mario Limonciello
dedc1dfaa6df872c4a89fa0f6affe90d0320f644 in linux-6.6.y/6.6.33
8195979d2dd995d60c2663adf54c69c1bf4eadd1 in mainline linux

sys/dev/pci/drm/amd/display/amdgpu_dm/amdgpu_dm_mst_types.c

index 10dd4cd..2104511 100644 (file)
@@ -606,6 +606,9 @@ dm_dp_add_mst_connector(struct drm_dp_mst_topology_mgr *mgr,
                &connector->base,
                dev->mode_config.tile_property,
                0);
+       connector->colorspace_property = master->base.colorspace_property;
+       if (connector->colorspace_property)
+               drm_connector_attach_colorspace_property(connector);
 
        drm_connector_set_path_property(connector, pathprop);