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>
This commit is contained in:
parent
779720a320
commit
550e2d9270
11 changed files with 23 additions and 7 deletions
|
@ -430,6 +430,8 @@ int rs400_resume(struct radeon_device *rdev)
|
|||
radeon_combios_asic_init(rdev->ddev);
|
||||
/* Resume clock after posting */
|
||||
r300_clock_startup(rdev);
|
||||
/* Initialize surface registers */
|
||||
radeon_surface_init(rdev);
|
||||
return rs400_startup(rdev);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue