diff options
author | Owain G. Ainsworth <oga@openbsd.org> | 2010-03-01 13:42:39 +0000 |
---|---|---|
committer | Owain G. Ainsworth <oga@openbsd.org> | 2010-03-01 13:42:39 +0000 |
commit | 152c35e4764f9042588b53734575ec5ab0536af3 (patch) | |
tree | 9a144c25850d911fdff5379fb77e86a0ad485986 /src/i830_ring.h | |
parent | 2af019dc983d0c6b3fbe4c842ef91792f17d3684 (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.
(cherry picked from commit cc5d3ba3c331c3b1becf2d19277b24144bf34cfa)
Conflicts:
src/i830.h
src/i830_batchbuffer.c
src/i830_batchbuffer.h
src/i830_dri.c
src/i830_driver.c
src/i830_hwmc.c
src/i830_memory.c
src/i830_uxa.c
src/i830_video.c
src/i915_hwmc.c
src/i965_hwmc.c
Diffstat (limited to 'src/i830_ring.h')
-rw-r--r-- | src/i830_ring.h | 54 |
1 files changed, 27 insertions, 27 deletions
diff --git a/src/i830_ring.h b/src/i830_ring.h index 062b7ead..efa61c6c 100644 --- a/src/i830_ring.h +++ b/src/i830_ring.h @@ -33,13 +33,13 @@ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. #define OUT_RING(n) do { \ if (I810_DEBUG & DEBUG_VERBOSE_RING) \ ErrorF("OUT_RING 0x%08x: 0x%08x, (mask %x)\n", \ - pI830->ring_next, (unsigned int)(n), \ - pI830->ring.tail_mask); \ - *(volatile uint32_t *)(pI830->ring.virtual_start + \ - pI830->ring_next) = n; \ - pI830->ring_used += 4; \ - pI830->ring_next += 4; \ - pI830->ring_next &= pI830->ring.tail_mask; \ + intel->ring_next, (unsigned int)(n), \ + intel->ring.tail_mask); \ + *(volatile uint32_t *)(intel->ring.virtual_start + \ + intel->ring_next) = n; \ + intel->ring_used += 4; \ + intel->ring_next += 4; \ + intel->ring_next &= intel->ring.tail_mask; \ } while (0) #define OUT_RING_F(x) do { \ @@ -49,43 +49,43 @@ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. } while(0) #define ADVANCE_LP_RING() do { \ - if (pI830->ring_emitting == 0) \ + if (intel->ring_emitting == 0) \ FatalError("%s: ADVANCE_LP_RING called with no matching " \ "BEGIN_LP_RING\n", __FUNCTION__); \ - if (pI830->ring_used > pI830->ring_emitting) \ + if (intel->ring_used > intel->ring_emitting) \ FatalError("%s: ADVANCE_LP_RING: exceeded allocation %d/%d\n ", \ - __FUNCTION__, pI830->ring_used, \ - pI830->ring_emitting); \ - if (pI830->ring_used < pI830->ring_emitting) \ + __FUNCTION__, intel->ring_used, \ + intel->ring_emitting); \ + if (intel->ring_used < intel->ring_emitting) \ FatalError("%s: ADVANCE_LP_RING: under-used allocation %d/%d\n ", \ - __FUNCTION__, pI830->ring_used, \ - pI830->ring_emitting); \ - pI830->ring.tail = pI830->ring_next; \ - pI830->ring.space -= pI830->ring_used; \ - if (pI830->ring_next & 0x07) \ + __FUNCTION__, intel->ring_used, \ + intel->ring_emitting); \ + intel->ring.tail = intel->ring_next; \ + intel->ring.space -= intel->ring_used; \ + if (intel->ring_next & 0x07) \ FatalError("%s: ADVANCE_LP_RING: " \ "ring_next (0x%x) isn't on a QWord boundary\n", \ - __FUNCTION__, pI830->ring_next); \ - OUTREG(LP_RING + RING_TAIL, pI830->ring_next); \ - pI830->ring_emitting = 0; \ + __FUNCTION__, intel->ring_next); \ + OUTREG(LP_RING + RING_TAIL, intel->ring_next); \ + intel->ring_emitting = 0; \ } while (0) #define BEGIN_LP_RING(n) \ do { \ - if (pI830->ring_emitting != 0) \ + if (intel->ring_emitting != 0) \ FatalError("%s: BEGIN_LP_RING called without closing " \ "ADVANCE_LP_RING\n", __FUNCTION__); \ if ((n) > 2 && (I810_DEBUG&DEBUG_ALWAYS_SYNC)) \ i830_wait_ring_idle(pScrn); \ - pI830->ring_emitting = (n) * 4; \ + intel->ring_emitting = (n) * 4; \ if ((n) & 1) \ - pI830->ring_emitting += 4; \ - if (pI830->ring.space < pI830->ring_emitting) \ - WaitRingFunc(pScrn, pI830->ring_emitting, 0); \ - pI830->ring_next = pI830->ring.tail; \ + intel->ring_emitting += 4; \ + if (intel->ring.space < intel->ring_emitting) \ + WaitRingFunc(pScrn, intel->ring_emitting, 0); \ + intel->ring_next = intel->ring.tail; \ if (I810_DEBUG & DEBUG_VERBOSE_RING) \ ErrorF( "BEGIN_LP_RING %d in %s\n", n, FUNCTION_NAME); \ - pI830->ring_used = 0; \ + intel->ring_used = 0; \ if ((n) & 1) \ OUT_RING(MI_NOOP); \ } while (0) |