aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri/nouveau/nouveau_fifo.h
diff options
context:
space:
mode:
authorStephane Marchesin <[email protected]>2006-11-21 13:07:48 +0000
committerStephane Marchesin <[email protected]>2006-11-21 13:07:48 +0000
commitfb6545070418820609a57f4dd975b41c93d499a9 (patch)
tree6e5f62c37ce2f7291929faa1f106ae80650900d0 /src/mesa/drivers/dri/nouveau/nouveau_fifo.h
parent0ea45b1ad822ebdce2af3faef77ed776ca32d46b (diff)
Remaining state cache changes
Diffstat (limited to 'src/mesa/drivers/dri/nouveau/nouveau_fifo.h')
-rw-r--r--src/mesa/drivers/dri/nouveau/nouveau_fifo.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/nouveau/nouveau_fifo.h b/src/mesa/drivers/dri/nouveau/nouveau_fifo.h
index 259e5a1dc76..ce465cdca50 100644
--- a/src/mesa/drivers/dri/nouveau/nouveau_fifo.h
+++ b/src/mesa/drivers/dri/nouveau/nouveau_fifo.h
@@ -112,6 +112,11 @@ extern void nouveau_state_cache_init(nouveauContextPtr nmesa);
nmesa->state_cache.current_pos++; \
}while(0)
+#define OUT_RING_CACHEp(ptr,sz) do { \
+uint32_t* p=(uint32_t*)(ptr); \
+int i; for(i=0;i<sz;i++) OUT_RING_CACHE(*(p+i)); \
+}while(0)
+
#define BEGIN_RING_SIZE(subchannel,tag,size) do { \
nouveau_state_cache_flush(nmesa); \
if (nmesa->fifo.free <= (size)) \