aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVille Syrjälä <[email protected]>2023-01-18 18:30:35 +0200
committerVille Syrjälä <[email protected]>2023-02-20 23:11:28 +0200
commitbfa5969e1144c8d0fbbe1a976601dcbc50549757 (patch)
tree2c97485444885b5966cfa1158a5bba52fe7835df
parente18b19740299285fb18ac1513dcaaf0fa40e140e (diff)
drm/i915/dsb: Skip DSB command buffer setup if we have no LUTs
If we have no LUTs to load there is no point in setting up the DSB command buffer. Signed-off-by: Ville Syrjälä <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected] Reviewed-by: Animesh Manna <[email protected]>
-rw-r--r--drivers/gpu/drm/i915/display/intel_color.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/gpu/drm/i915/display/intel_color.c b/drivers/gpu/drm/i915/display/intel_color.c
index 55ac476972c2..a6dd08598233 100644
--- a/drivers/gpu/drm/i915/display/intel_color.c
+++ b/drivers/gpu/drm/i915/display/intel_color.c
@@ -1383,6 +1383,9 @@ void intel_color_prepare_commit(struct intel_crtc_state *crtc_state)
/* FIXME DSB has issues loading LUTs, disable it for now */
return;
+ if (!crtc_state->pre_csc_lut && !crtc_state->post_csc_lut)
+ return;
+
crtc_state->dsb = intel_dsb_prepare(crtc, 1024);
}