diff --git a/src/backends/meta-monitor-config-manager.c b/src/backends/meta-monitor-config-manager.c index 8f6b25a9c..5fcb10b4e 100644 --- a/src/backends/meta-monitor-config-manager.c +++ b/src/backends/meta-monitor-config-manager.c @@ -285,7 +285,8 @@ assign_monitor_crtc (MetaMonitor *monitor, .is_presentation = assign_output_as_presentation, .is_underscanning = data->monitor_config->enable_underscanning, .has_max_bpc = data->monitor_config->has_max_bpc, - .max_bpc = data->monitor_config->max_bpc + .max_bpc = data->monitor_config->max_bpc, + .rgb_range = data->monitor_config->rgb_range, }; g_ptr_array_add (data->crtc_assignments, crtc_assignment); @@ -690,7 +691,8 @@ create_monitor_config (MetaMonitor *monitor, *monitor_config = (MetaMonitorConfig) { .monitor_spec = meta_monitor_spec_clone (monitor_spec), .mode_spec = g_memdup2 (mode_spec, sizeof (MetaMonitorModeSpec)), - .enable_underscanning = meta_monitor_is_underscanning (monitor) + .enable_underscanning = meta_monitor_is_underscanning (monitor), + .rgb_range = meta_monitor_get_rgb_range (monitor), }; monitor_config->has_max_bpc = diff --git a/src/backends/meta-monitor-manager-private.h b/src/backends/meta-monitor-manager-private.h index e14a77245..0760a341a 100644 --- a/src/backends/meta-monitor-manager-private.h +++ b/src/backends/meta-monitor-manager-private.h @@ -106,6 +106,7 @@ struct _MetaOutputAssignment gboolean is_underscanning; gboolean has_max_bpc; unsigned int max_bpc; + unsigned int rgb_range; }; /* diff --git a/src/backends/meta-output.c b/src/backends/meta-output.c index cfe19fdfd..34f18eb51 100644 --- a/src/backends/meta-output.c +++ b/src/backends/meta-output.c @@ -269,6 +269,9 @@ meta_output_assign_crtc (MetaOutput *output, priv->is_presentation = output_assignment->is_presentation; priv->is_underscanning = output_assignment->is_underscanning; + if (output_assignment->rgb_range) + priv->rgb_range = output_assignment->rgb_range; + priv->has_max_bpc = output_assignment->has_max_bpc; if (priv->has_max_bpc) priv->max_bpc = output_assignment->max_bpc;