diff options
author | Brian Paul <[email protected]> | 2017-12-29 09:59:02 -0700 |
---|---|---|
committer | Brian Paul <[email protected]> | 2018-01-11 08:06:38 -0700 |
commit | 879ea9432dfe60e763f3dac8eb56fd1d37613a27 (patch) | |
tree | 745314c6f1dbd5c0b81d57086dcc92954a62db98 | |
parent | 66c6cec612322bac21006fa0f03ef1b017eaaa2a (diff) |
svga: add assertion in svga_queue_rs()
Reviewed-by: Neha Bhende <[email protected]>
Reviewed-by: Charmaine Lee <[email protected]>
-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++; |