diff options
author | Jason Wessel <jason.wessel@windriver.com> | 2010-09-26 07:47:26 -0400 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2010-10-05 21:50:37 -0400 |
commit | ff773714dd30b802c336064109c535d8b2774e2f (patch) | |
tree | d040dbf8cff59f984dc1d1773c804e52d4c49010 /drivers/gpu/drm/radeon/radeon_legacy_crtc.c | |
parent | 413d45d3627be4748058dea697718ed6fb88bd01 (diff) |
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 8752d3447b72..42954785247f 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, | |||
355 | struct drm_framebuffer *fb, | 355 | struct drm_framebuffer *fb, |
356 | int x, int y, int enter) | 356 | int x, int y, int enter) |
357 | { | 357 | { |
358 | if (enter) | ||
359 | radeon_crtc_save_lut(crtc); | ||
360 | else | ||
361 | radeon_crtc_restore_lut(crtc); | ||
362 | |||
358 | return radeon_crtc_do_set_base(crtc, fb, x, y, 1); | 363 | return radeon_crtc_do_set_base(crtc, fb, x, y, 1); |
359 | } | 364 | } |
360 | 365 | ||