summaryrefslogtreecommitdiff
path: root/src/i830.h
diff options
context:
space:
mode:
authorEric Anholt <eric@anholt.net>2008-03-12 11:38:56 -0700
committerEric Anholt <eric@anholt.net>2008-03-12 16:12:28 -0700
commit2e2372912ed9bc0d86e8960653ef0bfce5cf99ab (patch)
tree55b10f1500069387eb7ec793337c90957bafd3d5 /src/i830.h
parentabf11a274e14535630742fe4c41cc0ae92555293 (diff)
Eliminate local variables defined in i830 BEGIN_LP_RING().
This lets us get better sanity asserts, and avoid mysterious braces when you do two BEGIN_LP_RING()s in a single function. Potential minor performance loss isn't too exciting, as ring access is about to become a compat path anyway. This change also removes the requirement for ring emits to be aligned to dwords.
Diffstat (limited to 'src/i830.h')
-rw-r--r--src/i830.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/i830.h b/src/i830.h
index 68a71c58..6c3fa522 100644
--- a/src/i830.h
+++ b/src/i830.h
@@ -395,6 +395,13 @@ typedef struct _I830Rec {
/* Regions allocated either from the above pools, or from agpgart. */
I830RingBuffer *LpRing;
+ /** Number of bytes being emitted in the current BEGIN_LP_RING */
+ unsigned int ring_emitting;
+ /** Number of bytes that have been emitted in the current BEGIN_LP_RING */
+ unsigned int ring_used;
+ /** Offset in the ring for the next DWORD emit */
+ uint32_t ring_next;
+
#ifdef I830_XV
/* For Xvideo */
i830_memory *overlay_regs;