When acceleration doesn't work we should free associated memory
and stop GPU block responsible for hardware acceleration so we
don't waste resource or let think one component of the driver that
a GPU feature is working/running while it doesn't actualy work.
Signed-off-by: Jerome Glisse <jglisse@redhat.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
rdev->flags &= ~RADEON_IS_AGP;
return r600_init(rdev);
}
+ r600_suspend(rdev);
+ r600_wb_fini(rdev);
+ radeon_ib_pool_fini(rdev);
+ radeon_ring_fini(rdev);
+ r600_pcie_gart_fini(rdev);
rdev->accel_working = false;
}
if (rdev->accel_working) {
rdev->flags &= ~RADEON_IS_AGP;
return rv770_init(rdev);
}
+ rv770_suspend(rdev);
+ r600_wb_fini(rdev);
+ radeon_ib_pool_fini(rdev);
+ radeon_ring_fini(rdev);
+ rv770_pcie_gart_fini(rdev);
rdev->accel_working = false;
}
if (rdev->accel_working) {