diff options
author | Christian König <deathsimple@vodafone.de> | 2012-05-09 09:34:52 -0400 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2012-05-09 12:22:34 -0400 |
commit | e6661a96647447aee83db976e8aad3d3a5c30cbd (patch) | |
tree | 30dc9b424580ed0358c3245c97f5745fc9df5c83 /drivers/gpu/drm/radeon/radeon_cs.c | |
parent | 711a9729337466e5ec70c418d33f4bf9fa65c38d (diff) |
drm/radeon: keep start and end offset in the SA
Instead of offset + size keep start and end offset directly.
Signed-off-by: Christian König <deathsimple@vodafone.de>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/radeon/radeon_cs.c')
-rw-r--r-- | drivers/gpu/drm/radeon/radeon_cs.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/drm/radeon/radeon_cs.c b/drivers/gpu/drm/radeon/radeon_cs.c index 289b0d786e9..b77803721cf 100644 --- a/drivers/gpu/drm/radeon/radeon_cs.c +++ b/drivers/gpu/drm/radeon/radeon_cs.c | |||
@@ -477,7 +477,7 @@ static int radeon_cs_ib_vm_chunk(struct radeon_device *rdev, | |||
477 | /* ib pool is bind at 0 in virtual address space to gpu_addr is the | 477 | /* ib pool is bind at 0 in virtual address space to gpu_addr is the |
478 | * offset inside the pool bo | 478 | * offset inside the pool bo |
479 | */ | 479 | */ |
480 | parser->const_ib->gpu_addr = parser->const_ib->sa_bo.offset; | 480 | parser->const_ib->gpu_addr = parser->const_ib->sa_bo.soffset; |
481 | r = radeon_ib_schedule(rdev, parser->const_ib); | 481 | r = radeon_ib_schedule(rdev, parser->const_ib); |
482 | if (r) | 482 | if (r) |
483 | goto out; | 483 | goto out; |
@@ -487,7 +487,7 @@ static int radeon_cs_ib_vm_chunk(struct radeon_device *rdev, | |||
487 | /* ib pool is bind at 0 in virtual address space to gpu_addr is the | 487 | /* ib pool is bind at 0 in virtual address space to gpu_addr is the |
488 | * offset inside the pool bo | 488 | * offset inside the pool bo |
489 | */ | 489 | */ |
490 | parser->ib->gpu_addr = parser->ib->sa_bo.offset; | 490 | parser->ib->gpu_addr = parser->ib->sa_bo.soffset; |
491 | parser->ib->is_const_ib = false; | 491 | parser->ib->is_const_ib = false; |
492 | r = radeon_ib_schedule(rdev, parser->ib); | 492 | r = radeon_ib_schedule(rdev, parser->ib); |
493 | out: | 493 | out: |