diff options
author | Christian König <deathsimple@vodafone.de> | 2011-09-15 13:02:22 -0400 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2011-12-20 14:49:36 -0500 |
commit | 15d3332f31afd571a6d23971dbc8d8db2856e661 (patch) | |
tree | 71610dd9dd6c455fe2f4ec3639691b10388d1dab /drivers/gpu/drm/radeon/r100.c | |
parent | 7465280c076d6440e5908c158c83b542dc063a30 (diff) |
drm/radeon/kms: add support for semaphores v3
They are used to sync between rings, while fences
sync between a ring and the cpu.
v2 Fix radeon_semaphore_driver_fini when no semaphore were
allocated.
v3 Initialize list early on to avoid issue in case or early
error
Signed-off-by: Christian König <deathsimple@vodafone.de>
Signed-off-by: Jerome Glisse <jglisse@redhat.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/radeon/r100.c')
-rw-r--r-- | drivers/gpu/drm/radeon/r100.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/gpu/drm/radeon/r100.c b/drivers/gpu/drm/radeon/r100.c index d2dced5679b5..2f18163e5e32 100644 --- a/drivers/gpu/drm/radeon/r100.c +++ b/drivers/gpu/drm/radeon/r100.c | |||
@@ -832,6 +832,14 @@ void r100_fence_ring_emit(struct radeon_device *rdev, | |||
832 | radeon_ring_write(rdev, RADEON_SW_INT_FIRE); | 832 | radeon_ring_write(rdev, RADEON_SW_INT_FIRE); |
833 | } | 833 | } |
834 | 834 | ||
835 | void r100_semaphore_ring_emit(struct radeon_device *rdev, | ||
836 | struct radeon_semaphore *semaphore, | ||
837 | unsigned ring, bool emit_wait) | ||
838 | { | ||
839 | /* Unused on older asics, since we don't have semaphores or multiple rings */ | ||
840 | BUG(); | ||
841 | } | ||
842 | |||
835 | int r100_copy_blit(struct radeon_device *rdev, | 843 | int r100_copy_blit(struct radeon_device *rdev, |
836 | uint64_t src_offset, | 844 | uint64_t src_offset, |
837 | uint64_t dst_offset, | 845 | uint64_t dst_offset, |