diff options
author | Alex Deucher <alexander.deucher@amd.com> | 2012-01-06 07:11:07 +0400 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2012-01-06 13:16:38 +0400 |
commit | 3000bf393302a8c786e9ebfc778050cb0d6226c4 (patch) | |
tree | 2d2be47822cec764e1a83d6294b0f94b6591f5d6 /drivers/gpu/drm/radeon/radeon.h | |
parent | 93504fce28b1a387ec01f81b26637d237dca2b36 (diff) | |
download | linux-3000bf393302a8c786e9ebfc778050cb0d6226c4.tar.xz |
drm/radeon/kms: sync across multiple rings when doing bo moves v3
We need to synchronize across rings when doing a bo move to make
sure we the buffer is idle if it's in use by a different ring than
the ring doing the move.
v2: fix fence setup for bo moves
v3: add missing ring lock/unlock
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/radeon/radeon.h')
-rw-r--r-- | drivers/gpu/drm/radeon/radeon.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/drm/radeon/radeon.h b/drivers/gpu/drm/radeon/radeon.h index 3483ed9b38e9..7cb63cd2e738 100644 --- a/drivers/gpu/drm/radeon/radeon.h +++ b/drivers/gpu/drm/radeon/radeon.h @@ -1489,6 +1489,8 @@ struct radeon_device { unsigned debugfs_count; /* virtual memory */ struct radeon_vm_manager vm_manager; + /* ring used for bo copies */ + u32 copy_ring; }; int radeon_device_init(struct radeon_device *rdev, |