diff options
author | Eric Anholt <eric@anholt.net> | 2009-10-06 18:02:38 -0700 |
---|---|---|
committer | Eric Anholt <eric@anholt.net> | 2009-10-08 15:34:09 -0700 |
commit | cc5d3ba3c331c3b1becf2d19277b24144bf34cfa (patch) | |
tree | 7c202c42fc4915c806086de18db4a76b9003ed5c /src/i830_accel.c | |
parent | 03e8e64f8669263e3cecb79ea57d5a26c0eaee3f (diff) |
Rename the screen private from I830Ptr pI830 to intel_screen_private *intel.
This is the beginning of the campaign to remove some of the absurd use of
Hungarian in the driver. Not that I don't like Hungarian, but I don't need
to know that pI830 is a pPointer.
Diffstat (limited to 'src/i830_accel.c')
-rw-r--r-- | src/i830_accel.c | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/src/i830_accel.c b/src/i830_accel.c index 51aa6a4a..f9cbda8f 100644 --- a/src/i830_accel.c +++ b/src/i830_accel.c @@ -55,12 +55,12 @@ unsigned long intel_get_pixmap_pitch(PixmapPtr pPix) void I830Sync(ScrnInfoPtr pScrn) { - I830Ptr pI830 = I830PTR(pScrn); + intel_screen_private *intel = intel_get_screen_private(pScrn); if (I810_DEBUG & (DEBUG_VERBOSE_ACCEL | DEBUG_VERBOSE_SYNC)) ErrorF("I830Sync\n"); - if (!pScrn->vtSema || !pI830->batch_bo) + if (!pScrn->vtSema || !intel->batch_bo) return; I830EmitFlush(pScrn); @@ -71,10 +71,10 @@ void I830Sync(ScrnInfoPtr pScrn) void I830EmitFlush(ScrnInfoPtr pScrn) { - I830Ptr pI830 = I830PTR(pScrn); + intel_screen_private *intel = intel_get_screen_private(pScrn); int flags = MI_WRITE_DIRTY_STATE | MI_INVALIDATE_MAP_CACHE; - if (IS_I965G(pI830)) + if (IS_I965G(intel)) flags = 0; { @@ -101,7 +101,7 @@ void i830_debug_sync(ScrnInfoPtr scrn) Bool I830AccelInit(ScreenPtr pScreen) { ScrnInfoPtr pScrn = xf86Screens[pScreen->myNum]; - I830Ptr pI830 = I830PTR(pScrn); + intel_screen_private *intel = intel_get_screen_private(pScrn); /* Limits are described in the BLT engine chapter under Graphics Data Size * Limitations, and the descriptions of SURFACE_STATE, 3DSTATE_BUFFER_INFO, @@ -141,16 +141,16 @@ Bool I830AccelInit(ScreenPtr pScreen) * the front, which will have an appropriate pitch/offset already set up, * so UXA doesn't need to worry. */ - if (IS_I965G(pI830)) { - pI830->accel_pixmap_offset_alignment = 4 * 2; - pI830->accel_pixmap_pitch_alignment = 64; - pI830->accel_max_x = 8192; - pI830->accel_max_y = 8192; + if (IS_I965G(intel)) { + intel->accel_pixmap_offset_alignment = 4 * 2; + intel->accel_pixmap_pitch_alignment = 64; + intel->accel_max_x = 8192; + intel->accel_max_y = 8192; } else { - pI830->accel_pixmap_offset_alignment = 4; - pI830->accel_pixmap_pitch_alignment = 64; - pI830->accel_max_x = 2048; - pI830->accel_max_y = 2048; + intel->accel_pixmap_offset_alignment = 4; + intel->accel_pixmap_pitch_alignment = 64; + intel->accel_max_x = 2048; + intel->accel_max_y = 2048; } return i830_uxa_init(pScreen); |