summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/radeon/radeon_object.h
diff options
context:
space:
mode:
authorDave Airlie <airlied@redhat.com>2009-12-09 14:15:38 +1000
committerDave Airlie <airlied@redhat.com>2009-12-10 15:25:45 +1000
commit550e2d9270e2f0a10c3b063899f70e4cca25fe72 (patch)
tree46878bc39515eae9ee1485ce046e16e8e47fda90 /drivers/gpu/drm/radeon/radeon_object.h
parent779720a3209849be202ac36a811e934865c50971 (diff)
downloadblackbird-op-linux-550e2d9270e2f0a10c3b063899f70e4cca25fe72.tar.gz
blackbird-op-linux-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/radeon_object.h')
-rw-r--r--drivers/gpu/drm/radeon/radeon_object.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/radeon/radeon_object.h b/drivers/gpu/drm/radeon/radeon_object.h
index e9da13077e2f..f6b69c2c0d00 100644
--- a/drivers/gpu/drm/radeon/radeon_object.h
+++ b/drivers/gpu/drm/radeon/radeon_object.h
@@ -175,5 +175,5 @@ extern int radeon_bo_check_tiling(struct radeon_bo *bo, bool has_moved,
extern void radeon_bo_move_notify(struct ttm_buffer_object *bo,
struct ttm_mem_reg *mem);
extern void radeon_bo_fault_reserve_notify(struct ttm_buffer_object *bo);
-
+extern int radeon_bo_get_surface_reg(struct radeon_bo *bo);
#endif
OpenPOWER on IntegriCloud