mirror of
https://github.com/Ysurac/openmptcprouter.git
synced 2025-02-15 04:42:02 +00:00
38 lines
1.4 KiB
Diff
38 lines
1.4 KiB
Diff
From 98efbd5cb44f8927240c01507055050405455428 Mon Sep 17 00:00:00 2001
|
|
From: Dom Cobley <popcornmix@gmail.com>
|
|
Date: Thu, 5 May 2022 18:50:04 +0100
|
|
Subject: [PATCH 046/726] drm/vc4_hdmi: Force a modeset when Broadcast RGB
|
|
setting changes
|
|
|
|
Without this the change is not visible until the next modeset
|
|
|
|
Signed-off-by: Dom Cobley <popcornmix@gmail.com>
|
|
---
|
|
drivers/gpu/drm/vc4/vc4_hdmi.c | 3 +++
|
|
1 file changed, 3 insertions(+)
|
|
|
|
diff --git a/drivers/gpu/drm/vc4/vc4_hdmi.c b/drivers/gpu/drm/vc4/vc4_hdmi.c
|
|
index 431f901068a0..3546c7af0329 100644
|
|
--- a/drivers/gpu/drm/vc4/vc4_hdmi.c
|
|
+++ b/drivers/gpu/drm/vc4/vc4_hdmi.c
|
|
@@ -536,14 +536,17 @@ static int vc4_hdmi_connector_atomic_check(struct drm_connector *connector,
|
|
{
|
|
struct drm_connector_state *old_state =
|
|
drm_atomic_get_old_connector_state(state, connector);
|
|
+ struct vc4_hdmi_connector_state *old_vc4_state = conn_state_to_vc4_hdmi_conn_state(old_state);
|
|
struct drm_connector_state *new_state =
|
|
drm_atomic_get_new_connector_state(state, connector);
|
|
+ struct vc4_hdmi_connector_state *new_vc4_state = conn_state_to_vc4_hdmi_conn_state(new_state);
|
|
struct drm_crtc *crtc = new_state->crtc;
|
|
|
|
if (!crtc)
|
|
return 0;
|
|
|
|
if (old_state->colorspace != new_state->colorspace ||
|
|
+ old_vc4_state->broadcast_rgb != new_vc4_state->broadcast_rgb ||
|
|
!drm_connector_atomic_hdr_metadata_equal(old_state, new_state)) {
|
|
struct drm_crtc_state *crtc_state;
|
|
|
|
--
|
|
2.33.1
|
|
|