summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/radeon/radeon_legacy_crtc.c
diff options
context:
space:
mode:
authorJason Wessel <jason.wessel@windriver.com>2010-09-26 06:47:26 -0500
committerDave Airlie <airlied@redhat.com>2010-10-06 11:50:37 +1000
commitff773714dd30b802c336064109c535d8b2774e2f (patch)
treed040dbf8cff59f984dc1d1773c804e52d4c49010 /drivers/gpu/drm/radeon/radeon_legacy_crtc.c
parent413d45d3627be4748058dea697718ed6fb88bd01 (diff)
downloadop-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.c5
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);
}
OpenPOWER on IntegriCloud