summaryrefslogtreecommitdiffstats
path: root/src/gallium
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2017-12-29 09:59:02 -0700
committerBrian Paul <[email protected]>2018-01-11 08:06:38 -0700
commit879ea9432dfe60e763f3dac8eb56fd1d37613a27 (patch)
tree745314c6f1dbd5c0b81d57086dcc92954a62db98 /src/gallium
parent66c6cec612322bac21006fa0f03ef1b017eaaa2a (diff)
svga: add assertion in svga_queue_rs()
Reviewed-by: Neha Bhende <[email protected]> Reviewed-by: Charmaine Lee <[email protected]>
Diffstat (limited to 'src/gallium')
-rw-r--r--src/gallium/drivers/svga/svga_state_rss.c1
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++;