diff --git a/src/gallium/drivers/panfrost/pan_cmdstream.c b/src/gallium/drivers/panfrost/pan_cmdstream.c index 692e7e0075a..9f5ea5074c5 100644 --- a/src/gallium/drivers/panfrost/pan_cmdstream.c +++ b/src/gallium/drivers/panfrost/pan_cmdstream.c @@ -2106,8 +2106,8 @@ panfrost_emit_varying_descs( /* Offsets within the general varying buffer, indexed by location */ signed offsets[PIPE_MAX_ATTRIBS]; - assert(producer_count < ARRAY_SIZE(offsets)); - assert(consumer_count < ARRAY_SIZE(offsets)); + assert(producer_count <= ARRAY_SIZE(offsets)); + assert(consumer_count <= ARRAY_SIZE(offsets)); /* Allocate enough descriptors for both shader stages */ struct panfrost_ptr T =