freedreno: fix off-by-one in assertions checking for const sizes
authorIlia Mirkin <imirkin@alum.mit.edu>
Sun, 17 May 2020 05:42:06 +0000 (01:42 -0400)
committerIlia Mirkin <imirkin@alum.mit.edu>
Sun, 17 May 2020 23:51:36 +0000 (19:51 -0400)
commit475fb28377fa4f5293c1a0853f2c4260418aea7f
treec7fcb4eb048b254cf44c6726ace662aec2b303ef
parent1c05e16666c78a099fd8c732fc6156a85950ee6a
freedreno: fix off-by-one in assertions checking for const sizes

Caused assertions to trip even though everything was fine. The number of
constants can be equal to length, so we need less-than-or-equal.

Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
Reviewed-by: Rob Clark <robdclark@chromium.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5077>
src/gallium/drivers/freedreno/a3xx/fd3_emit.c
src/gallium/drivers/freedreno/a4xx/fd4_emit.c
src/gallium/drivers/freedreno/a5xx/fd5_emit.c
src/gallium/drivers/freedreno/ir3/ir3_const.h