diff options
author | Alex Deucher <alexander.deucher@amd.com> | 2012-10-02 20:43:38 +0200 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2012-10-02 21:01:21 +0200 |
commit | 498522b455e8867bed5d59234c209b0be8ec4b57 (patch) | |
tree | e7d59e6d1574a1c89850d24cefa3fdf863ce8953 /drivers/gpu/drm/radeon/radeon_ring.c | |
parent | drm/radeon: use WRITE_DATA packets for vm flush on SI (diff) | |
download | linux-498522b455e8867bed5d59234c209b0be8ec4b57.tar.xz linux-498522b455e8867bed5d59234c209b0be8ec4b57.zip |
drm/radeon: rework the vm_flush interface
Pass the vm and ring index rather than an IB. This allows
us to use the vm_flush interface for non-IB cases in the
future.
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Diffstat (limited to 'drivers/gpu/drm/radeon/radeon_ring.c')
-rw-r--r-- | drivers/gpu/drm/radeon/radeon_ring.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/radeon/radeon_ring.c b/drivers/gpu/drm/radeon/radeon_ring.c index d90b0bc6f072..028508859a3b 100644 --- a/drivers/gpu/drm/radeon/radeon_ring.c +++ b/drivers/gpu/drm/radeon/radeon_ring.c @@ -162,7 +162,7 @@ int radeon_ib_schedule(struct radeon_device *rdev, struct radeon_ib *ib, } /* if we can't remember our last VM flush then flush now! */ if (ib->vm && !ib->vm->last_flush) { - radeon_ring_vm_flush(rdev, ib->ring, ib); + radeon_ring_vm_flush(rdev, ib->ring, ib->vm); } if (const_ib) { radeon_ring_ib_execute(rdev, const_ib->ring, const_ib); |