diff options
-rw-r--r-- | src/gallium/drivers/svga/svga_state_rss.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gallium/drivers/svga/svga_state_rss.c b/src/gallium/drivers/svga/svga_state_rss.c index d864da4b0bd..b68d85ff20c 100644 --- a/src/gallium/drivers/svga/svga_state_rss.c +++ b/src/gallium/drivers/svga/svga_state_rss.c @@ -68,6 +68,7 @@ do { \ static inline void svga_queue_rs(struct rs_queue *q, unsigned rss, unsigned value) { + assert(q->rs_count < ARRAY_SIZE(q->rs)); q->rs[q->rs_count].state = rss; q->rs[q->rs_count].uintValue = value; q->rs_count++; |