mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-04-11 13:03:51 -04:00
drm/i915: Disable updating of LUT values during vblank
Do not schedule vblank worker for LUT update if the registers are double buffered v2: Do not schedule the worker at all (Ville) Signed-off-by: Chaitanya Kumar Borah <chaitanya.kumar.borah@intel.com> Reviewed-by: Uma Shankar <uma.shankar@intel.com> Signed-off-by: Animesh Manna <animesh.manna@intel.com> Link: https://lore.kernel.org/r/20250523062041.166468-12-chaitanya.kumar.borah@intel.com
This commit is contained in:
committed by
Animesh Manna
parent
88d7e284b2
commit
dc0698d1b3
@@ -417,10 +417,13 @@ int intel_crtc_get_pipe_from_crtc_id_ioctl(struct drm_device *dev, void *data,
|
||||
|
||||
static bool intel_crtc_needs_vblank_work(const struct intel_crtc_state *crtc_state)
|
||||
{
|
||||
struct intel_display *display = to_intel_display(crtc_state);
|
||||
|
||||
return crtc_state->hw.active &&
|
||||
!crtc_state->preload_luts &&
|
||||
!intel_crtc_needs_modeset(crtc_state) &&
|
||||
intel_crtc_needs_color_update(crtc_state) &&
|
||||
(intel_crtc_needs_color_update(crtc_state) &&
|
||||
!HAS_DOUBLE_BUFFERED_LUT(display)) &&
|
||||
!intel_color_uses_dsb(crtc_state) &&
|
||||
!crtc_state->use_dsb;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user