diff options
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/gpu/drm/radeon/r600.c | 14 | ||||
-rw-r--r-- | drivers/gpu/drm/radeon/rv770.c | 14 |
2 files changed, 16 insertions, 12 deletions
diff --git a/drivers/gpu/drm/radeon/r600.c b/drivers/gpu/drm/radeon/r600.c index f5cf874dc62a..e145faac9904 100644 --- a/drivers/gpu/drm/radeon/r600.c +++ b/drivers/gpu/drm/radeon/r600.c | |||
@@ -1863,6 +1863,14 @@ int r600_startup(struct radeon_device *rdev) | |||
1863 | } | 1863 | } |
1864 | r600_gpu_init(rdev); | 1864 | r600_gpu_init(rdev); |
1865 | 1865 | ||
1866 | if (!rdev->r600_blit.shader_obj) { | ||
1867 | r = r600_blit_init(rdev); | ||
1868 | if (r) { | ||
1869 | DRM_ERROR("radeon: failed blitter (%d).\n", r); | ||
1870 | return r; | ||
1871 | } | ||
1872 | } | ||
1873 | |||
1866 | r = radeon_bo_reserve(rdev->r600_blit.shader_obj, false); | 1874 | r = radeon_bo_reserve(rdev->r600_blit.shader_obj, false); |
1867 | if (unlikely(r != 0)) | 1875 | if (unlikely(r != 0)) |
1868 | return r; | 1876 | return r; |
@@ -2038,12 +2046,6 @@ int r600_init(struct radeon_device *rdev) | |||
2038 | if (r) | 2046 | if (r) |
2039 | return r; | 2047 | return r; |
2040 | 2048 | ||
2041 | r = r600_blit_init(rdev); | ||
2042 | if (r) { | ||
2043 | DRM_ERROR("radeon: failed blitter (%d).\n", r); | ||
2044 | return r; | ||
2045 | } | ||
2046 | |||
2047 | rdev->accel_working = true; | 2049 | rdev->accel_working = true; |
2048 | r = r600_startup(rdev); | 2050 | r = r600_startup(rdev); |
2049 | if (r) { | 2051 | if (r) { |
diff --git a/drivers/gpu/drm/radeon/rv770.c b/drivers/gpu/drm/radeon/rv770.c index 2d124bb57762..f58dc6710802 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) | |||
892 | } | 892 | } |
893 | rv770_gpu_init(rdev); | 893 | rv770_gpu_init(rdev); |
894 | 894 | ||
895 | if (!rdev->r600_blit.shader_obj) { | ||
896 | r = r600_blit_init(rdev); | ||
897 | if (r) { | ||
898 | DRM_ERROR("radeon: failed blitter (%d).\n", r); | ||
899 | return r; | ||
900 | } | ||
901 | } | ||
902 | |||
895 | r = radeon_bo_reserve(rdev->r600_blit.shader_obj, false); | 903 | r = radeon_bo_reserve(rdev->r600_blit.shader_obj, false); |
896 | if (unlikely(r != 0)) | 904 | if (unlikely(r != 0)) |
897 | return r; | 905 | return r; |
@@ -1051,12 +1059,6 @@ int rv770_init(struct radeon_device *rdev) | |||
1051 | if (r) | 1059 | if (r) |
1052 | return r; | 1060 | return r; |
1053 | 1061 | ||
1054 | r = r600_blit_init(rdev); | ||
1055 | if (r) { | ||
1056 | DRM_ERROR("radeon: failed blitter (%d).\n", r); | ||
1057 | return r; | ||
1058 | } | ||
1059 | |||
1060 | rdev->accel_working = true; | 1062 | rdev->accel_working = true; |
1061 | r = rv770_startup(rdev); | 1063 | r = rv770_startup(rdev); |
1062 | if (r) { | 1064 | if (r) { |