summaryrefslogtreecommitdiff
path: root/src/mesa/drivers
diff options
context:
space:
mode:
authorMatthieu Castet <castet.matthieu@free.fr>2007-09-14 22:13:52 +0200
committerMatthieu Castet <castet.matthieu@free.fr>2007-09-14 22:13:52 +0200
commit5e7835625912e5b64c1c0f76c7614367bec40039 (patch)
treeca318ee31e5d34238cd20557ba66ade4cda522e1 /src/mesa/drivers
parent63147344e422aa2b00b6b22d76fdea801c38b2ea (diff)
nouveau : check for nmesa->state_cache.atoms overflow
Diffstat (limited to 'src/mesa/drivers')
-rw-r--r--src/mesa/drivers/dri/nouveau/nouveau_fifo.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/nouveau/nouveau_fifo.h b/src/mesa/drivers/dri/nouveau/nouveau_fifo.h
index 956dd549dc..0805882025 100644
--- a/src/mesa/drivers/dri/nouveau/nouveau_fifo.h
+++ b/src/mesa/drivers/dri/nouveau/nouveau_fifo.h
@@ -149,6 +149,7 @@ extern void nouveau_state_cache_init(nouveauContextPtr nmesa);
#define BEGIN_RING_CACHE(subchannel,tag,size) do { \
nmesa->state_cache.dirty=1; \
nmesa->state_cache.current_pos=((tag)/4); \
+ assert(nmesa->state_cache.current_pos + size <= NOUVEAU_STATE_CACHE_ENTRIES); \
}while(0)
#define OUT_RING_CACHE(n) do { \