diff options
author | Alan Hourihane <alanh@fairlite.demon.co.uk> | 2006-06-21 08:41:16 +0100 |
---|---|---|
committer | Alan Hourihane <alanh@fairlite.demon.co.uk> | 2006-06-21 08:41:16 +0100 |
commit | 5a1b68993f3a3a2e8dcd428a7118e29c36703cd6 (patch) | |
tree | 31452b32d625c4f24a11b778a509a3be4d9cf40f /src/i830_dri.c | |
parent | 16b310823bacab6be4947da234b3a081b0a3cd62 (diff) |
Fix build without DRI
Diffstat (limited to 'src/i830_dri.c')
-rw-r--r-- | src/i830_dri.c | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/src/i830_dri.c b/src/i830_dri.c index 7c65f656..6f9a3ee1 100644 --- a/src/i830_dri.c +++ b/src/i830_dri.c @@ -1182,35 +1182,6 @@ I830DRIMoveBuffers(WindowPtr pParent, DDXPointRec ptOldOrg, pI830->AccelInfoRec->NeedToSync = TRUE; } -extern I830EmitInvarientState(ScrnInfoPtr pScrn); -extern I915EmitInvarientState(ScrnInfoPtr pScrn); - -/* Initialize the first context */ -void -IntelEmitInvarientState(ScrnInfoPtr pScrn) -{ - I830Ptr pI830 = I830PTR(pScrn); - CARD32 ctx_addr; - - ctx_addr = pI830->ContextMem.Start; - /* Align to a 2k boundry */ - ctx_addr = ((ctx_addr + 2048 - 1) / 2048) * 2048; - - { - BEGIN_LP_RING(2); - OUT_RING(MI_SET_CONTEXT); - OUT_RING(ctx_addr | - CTXT_NO_RESTORE | - CTXT_PALETTE_SAVE_DISABLE | CTXT_PALETTE_RESTORE_DISABLE); - ADVANCE_LP_RING(); - } - - if (IS_I9XX(pI830)) - I915EmitInvarientState(pScrn); - else - I830EmitInvarientState(pScrn); -} - /* Use callbacks from dri.c to support pageflipping mode for a single * 3d context without need for any specific full-screen extension. * |