diff options
author | Jason Wessel <jason.wessel@windriver.com> | 2010-09-26 06:47:26 -0500 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2010-10-06 11:50:37 +1000 |
commit | ff773714dd30b802c336064109c535d8b2774e2f (patch) | |
tree | d040dbf8cff59f984dc1d1773c804e52d4c49010 /drivers/gpu/drm/radeon/radeon_legacy_crtc.c | |
parent | 413d45d3627be4748058dea697718ed6fb88bd01 (diff) | |
download | op-kernel-dev-ff773714dd30b802c336064109c535d8b2774e2f.zip op-kernel-dev-ff773714dd30b802c336064109c535d8b2774e2f.tar.gz |
radeon, kdb, kms: Save and restore the LUT on atomic KMS enter/exit
When changing VTs non-atomically the kernel works in conjunction with
the Xserver in user space and receives the LUT information from the
Xserver via a system call. When changing modes atomically for kdb,
this information must be saved and restored without disturbing user
space as if nothing ever happened.
Signed-off-by: Jason Wessel <jason.wessel@windriver.com>
CC: Jesse Barnes <jbarnes@virtuousgeek.org>
CC: David Airlie <airlied@linux.ie>
CC: dri-devel@lists.freedesktop.org
Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/radeon/radeon_legacy_crtc.c')
-rw-r--r-- | drivers/gpu/drm/radeon/radeon_legacy_crtc.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/gpu/drm/radeon/radeon_legacy_crtc.c b/drivers/gpu/drm/radeon/radeon_legacy_crtc.c index 8752d34..4295478 100644 --- a/drivers/gpu/drm/radeon/radeon_legacy_crtc.c +++ b/drivers/gpu/drm/radeon/radeon_legacy_crtc.c @@ -355,6 +355,11 @@ int radeon_crtc_set_base_atomic(struct drm_crtc *crtc, struct drm_framebuffer *fb, int x, int y, int enter) { + if (enter) + radeon_crtc_save_lut(crtc); + else + radeon_crtc_restore_lut(crtc); + return radeon_crtc_do_set_base(crtc, fb, x, y, 1); } |