summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/radeon/rv770.c
diff options
context:
space:
mode:
authorDave Airlie <airlied@redhat.com>2009-12-18 09:56:49 +1000
committerDave Airlie <airlied@redhat.com>2009-12-18 09:56:49 +1000
commitdcd6dfcfe959bade75fbf49499775985d2cac5d5 (patch)
tree45e37b24d7e34a1bdefe04e65633168873476ca7 /drivers/gpu/drm/radeon/rv770.c
parentcbc8cc049aefd571ebc3c255dc3e265f736751c0 (diff)
parentd785d78bbdb53580b12c40e820af5a3281ce2fc8 (diff)
downloadop-kernel-dev-dcd6dfcfe959bade75fbf49499775985d2cac5d5.zip
op-kernel-dev-dcd6dfcfe959bade75fbf49499775985d2cac5d5.tar.gz
Merge branch 'drm-linus' into drm-core-next
Diffstat (limited to 'drivers/gpu/drm/radeon/rv770.c')
-rw-r--r--drivers/gpu/drm/radeon/rv770.c14
1 files changed, 8 insertions, 6 deletions
diff --git a/drivers/gpu/drm/radeon/rv770.c b/drivers/gpu/drm/radeon/rv770.c
index 2d124bb..f58dc67 100644
--- a/drivers/gpu/drm/radeon/rv770.c
+++ b/drivers/gpu/drm/radeon/rv770.c
@@ -892,6 +892,14 @@ static int rv770_startup(struct radeon_device *rdev)
}
rv770_gpu_init(rdev);
+ if (!rdev->r600_blit.shader_obj) {
+ r = r600_blit_init(rdev);
+ if (r) {
+ DRM_ERROR("radeon: failed blitter (%d).\n", r);
+ return r;
+ }
+ }
+
r = radeon_bo_reserve(rdev->r600_blit.shader_obj, false);
if (unlikely(r != 0))
return r;
@@ -1051,12 +1059,6 @@ int rv770_init(struct radeon_device *rdev)
if (r)
return r;
- r = r600_blit_init(rdev);
- if (r) {
- DRM_ERROR("radeon: failed blitter (%d).\n", r);
- return r;
- }
-
rdev->accel_working = true;
r = rv770_startup(rdev);
if (r) {
OpenPOWER on IntegriCloud