diff options
author | Jonathan Gray <jsg@cvs.openbsd.org> | 2023-01-25 02:01:04 +0000 |
---|---|---|
committer | Jonathan Gray <jsg@cvs.openbsd.org> | 2023-01-25 02:01:04 +0000 |
commit | cd5a459b1e05e3b9dd3ebe2c8d02493e64f39ae9 (patch) | |
tree | c29670354d047ca207c8fb95466f67ae8ae48313 /sys/dev/pci/drm | |
parent | 0e59f6a7b3ab3bd2f5e490f58c5c0e296aaa2983 (diff) |
drm/amd/display: Calculate output_color_space after pixel encoding adjustment
From Joshua Ashton
87e84d0ff97cf8d508910d793866083a918d8cab in linux-6.1.y/6.1.8
79601b894849cb6f6d6122e6590f1887ac4a66b3 in mainline linux
Diffstat (limited to 'sys/dev/pci/drm')
-rw-r--r-- | sys/dev/pci/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/pci/drm/amd/display/amdgpu_dm/amdgpu_dm.c b/sys/dev/pci/drm/amd/display/amdgpu_dm/amdgpu_dm.c index 5f565dfbafd..fcb266589ea 100644 --- a/sys/dev/pci/drm/amd/display/amdgpu_dm/amdgpu_dm.c +++ b/sys/dev/pci/drm/amd/display/amdgpu_dm/amdgpu_dm.c @@ -5285,8 +5285,6 @@ static void fill_stream_properties_from_drm_display_mode( timing_out->aspect_ratio = get_aspect_ratio(mode_in); - stream->output_color_space = get_output_color_space(timing_out); - stream->out_transfer_func->type = TF_TYPE_PREDEFINED; stream->out_transfer_func->tf = TRANSFER_FUNCTION_SRGB; if (stream->signal == SIGNAL_TYPE_HDMI_TYPE_A) { @@ -5297,6 +5295,8 @@ static void fill_stream_properties_from_drm_display_mode( adjust_colour_depth_from_display_info(timing_out, info); } } + + stream->output_color_space = get_output_color_space(timing_out); } static void fill_audio_info(struct audio_info *audio_info, |