aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/radeon/radeon.h
diff options
context:
space:
mode:
authorAlex Deucher <alexander.deucher@amd.com>2012-07-17 14:02:30 -0400
committerChristian König <deathsimple@vodafone.de>2012-07-18 07:33:54 -0400
commit8b25ed3482885e5f1dc65ace796e90f879d76c52 (patch)
treea7007f257a3bf108d18af6a7ca5ff7d6ed59c429 /drivers/gpu/drm/radeon/radeon.h
parenta85a7da4c5922e6621526946d5a56b2194692fdd (diff)
drm/radeon: remove radeon_ring_index()
Just store the index in the ring structure. Idea taken from one of Jerome's wip rptr patches. 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.h')
-rw-r--r--drivers/gpu/drm/radeon/radeon.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/radeon/radeon.h b/drivers/gpu/drm/radeon/radeon.h
index 2d7f06c85336..be454725c377 100644
--- a/drivers/gpu/drm/radeon/radeon.h
+++ b/drivers/gpu/drm/radeon/radeon.h
@@ -638,6 +638,7 @@ struct radeon_ring {
638 u32 ptr_reg_shift; 638 u32 ptr_reg_shift;
639 u32 ptr_reg_mask; 639 u32 ptr_reg_mask;
640 u32 nop; 640 u32 nop;
641 u32 idx;
641}; 642};
642 643
643/* 644/*
@@ -757,7 +758,6 @@ int radeon_ib_pool_init(struct radeon_device *rdev);
757void radeon_ib_pool_fini(struct radeon_device *rdev); 758void radeon_ib_pool_fini(struct radeon_device *rdev);
758int radeon_ib_ring_tests(struct radeon_device *rdev); 759int radeon_ib_ring_tests(struct radeon_device *rdev);
759/* Ring access between begin & end cannot sleep */ 760/* Ring access between begin & end cannot sleep */
760int radeon_ring_index(struct radeon_device *rdev, struct radeon_ring *cp);
761void radeon_ring_free_size(struct radeon_device *rdev, struct radeon_ring *cp); 761void radeon_ring_free_size(struct radeon_device *rdev, struct radeon_ring *cp);
762int radeon_ring_alloc(struct radeon_device *rdev, struct radeon_ring *cp, unsigned ndw); 762int radeon_ring_alloc(struct radeon_device *rdev, struct radeon_ring *cp, unsigned ndw);
763int radeon_ring_lock(struct radeon_device *rdev, struct radeon_ring *cp, unsigned ndw); 763int radeon_ring_lock(struct radeon_device *rdev, struct radeon_ring *cp, unsigned ndw);