diff options
author | Dave Airlie <airlied@redhat.com> | 2009-12-09 14:15:38 +1000 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2009-12-10 15:25:45 +1000 |
commit | 550e2d9270e2f0a10c3b063899f70e4cca25fe72 (patch) | |
tree | 46878bc39515eae9ee1485ce046e16e8e47fda90 /drivers/gpu/drm/radeon/rs690.c | |
parent | 779720a3209849be202ac36a811e934865c50971 (diff) | |
download | lwn-550e2d9270e2f0a10c3b063899f70e4cca25fe72.tar.gz lwn-550e2d9270e2f0a10c3b063899f70e4cca25fe72.zip |
drm/radeon/kms: restore surface registers on resume.
On resume on my rv530 laptop surface cntl was left disabled, so
wierd stuff would happen with rendering to a tiled front buffer.
This checks if the surface regs are assigned to bos and reprograms
the surface registers on resume using the same path that clears
them all on init.
Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/radeon/rs690.c')
-rw-r--r-- | drivers/gpu/drm/radeon/rs690.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/drm/radeon/rs690.c b/drivers/gpu/drm/radeon/rs690.c index 98079367fbba..1e22f52d6039 100644 --- a/drivers/gpu/drm/radeon/rs690.c +++ b/drivers/gpu/drm/radeon/rs690.c @@ -658,6 +658,8 @@ int rs690_resume(struct radeon_device *rdev) atom_asic_init(rdev->mode_info.atom_context); /* Resume clock after posting */ rv515_clock_startup(rdev); + /* Initialize surface registers */ + radeon_surface_init(rdev); return rs690_startup(rdev); } |