mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-23 07:12:09 +00:00
drm/radeon: make sa bo a stand alone object
Allocating and freeing it seperately. Signed-off-by: Christian König <deathsimple@vodafone.de> Signed-off-by: Dave Airlie <airlied@redhat.com>
This commit is contained in:
parent
e6661a9664
commit
2e0d99103e
7 changed files with 32 additions and 22 deletions
|
@ -53,8 +53,8 @@ static int radeon_semaphore_add_bo(struct radeon_device *rdev)
|
|||
kfree(bo);
|
||||
return r;
|
||||
}
|
||||
gpu_addr = radeon_sa_bo_gpu_addr(&bo->ib->sa_bo);
|
||||
cpu_ptr = radeon_sa_bo_cpu_addr(&bo->ib->sa_bo);
|
||||
gpu_addr = radeon_sa_bo_gpu_addr(bo->ib->sa_bo);
|
||||
cpu_ptr = radeon_sa_bo_cpu_addr(bo->ib->sa_bo);
|
||||
for (i = 0; i < (RADEON_SEMAPHORE_BO_SIZE/8); i++) {
|
||||
bo->semaphores[i].gpu_addr = gpu_addr;
|
||||
bo->semaphores[i].cpu_ptr = cpu_ptr;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue