summaryrefslogtreecommitdiff
path: root/src/i830.h
diff options
context:
space:
mode:
authorEric Anholt <eric@anholt.net>2008-06-05 11:56:42 -0700
committerEric Anholt <eric@anholt.net>2008-06-05 11:56:42 -0700
commit7e51384c973a96366b02ea646392c43574674111 (patch)
tree7ab205b605e35fa88902162431f16266f82dceae /src/i830.h
parent65306cdd71dad71e4ca7229764f81a0880dd70bf (diff)
Replace a couple of wait-for-ring-idles with a single function to do so.
Diffstat (limited to 'src/i830.h')
-rw-r--r--src/i830.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/i830.h b/src/i830.h
index 82901978..cac3ef68 100644
--- a/src/i830.h
+++ b/src/i830.h
@@ -859,6 +859,14 @@ i830_get_transformed_coordinates_3d(int x, int y, PictTransformPtr transform,
void i830_enter_render(ScrnInfoPtr);
+static inline void
+i830_wait_ring_idle(ScrnInfoPtr pScrn)
+{
+ I830Ptr pI830 = I830PTR(pScrn);
+
+ I830WaitLpRing(pScrn, pI830->LpRing->mem->size - 8, 0);
+}
+
static inline int i830_fb_compression_supported(I830Ptr pI830)
{
if (!IS_MOBILE(pI830))