]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: avoid full modeset when changing the color range properties
authorDaniel Vetter <daniel.vetter@ffwll.ch>
Mon, 22 Apr 2013 15:07:23 +0000 (17:07 +0200)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Tue, 23 Apr 2013 11:52:57 +0000 (13:52 +0200)
commitf562d440443ea0174dc9f2fb026fbec6aca43959
treee220d7ae390df3f2e0726cf109b38f8628ebbcf6
parentbf1c073fba37099ec3261914e3fcdb2e6733c3ad
drm/i915: avoid full modeset when changing the color range properties

Automatic color range selection was added in

commit 1439ed865edfd040fecb060cd7859c0e6f43327a
Author: Ville Syrjälä <ville.syrjala@linux.intel.com>
Date:   Thu Jan 17 16:31:29 2013 +0200

    drm/i915: Add "Automatic" mode for the "Broadcast RGB" property

but that removed the check to avoid a full modeset if the value is
unchanged. Unfortunately X sets all properties with their current
value at start-up, resulting in some ugly flickering which shouldn't
be there.

v2: Change old_range from bool to uint32_t, spotted by Ville.

v3: Actually git add everything ;-)

Cc: Ville Syrjälä <ville.syrjala@linux.intel.com>
Cc: Paulo Zanoni <paulo.r.zanoni@intel.com>
Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/intel_dp.c
drivers/gpu/drm/i915/intel_hdmi.c
drivers/gpu/drm/i915/intel_sdvo.c