]> git.baikalelectronics.ru Git - kernel.git/commit
drm/atomic: Don't potentially reset color_mgmt_changed on successive property updates.
authorMario Kleiner <mario.kleiner.de@gmail.com>
Fri, 26 Aug 2016 23:02:28 +0000 (01:02 +0200)
committerDave Airlie <airlied@redhat.com>
Sun, 28 Aug 2016 20:55:47 +0000 (06:55 +1000)
commitfb75d1126f9f267b6b9a4616762af67317b9494c
tree7a112ad1c1585b4d5a570cc2b1a7ce9662465dfd
parenteb23b1638798985d80f6b6b51dacd78bcda71a3a
drm/atomic: Don't potentially reset color_mgmt_changed on successive property updates.

Due to assigning the 'replaced' value instead of or'ing it,
if drm_atomic_crtc_set_property() gets called multiple times,
the last call will define the color_mgmt_changed flag, so
a non-updating call to a property can reset the flag and
prevent actual hw state updates required by preceding
property updates.

Signed-off-by: Mario Kleiner <mario.kleiner.de@gmail.com>
Cc: Daniel Vetter <daniel.vetter@intel.com>
Cc: <stable@vger.kernel.org> # v4.6+
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/drm_atomic.c