freedreno/a3xx: fix const footprint
authorIlia Mirkin <imirkin@alum.mit.edu>
Sun, 17 May 2020 22:05:42 +0000 (18:05 -0400)
committerIlia Mirkin <imirkin@alum.mit.edu>
Sun, 17 May 2020 23:51:10 +0000 (19:51 -0400)
commit1c05e16666c78a099fd8c732fc6156a85950ee6a
tree52e46cf6b6837901ebfd01e5c49a138a74b49842
parent9048adbd246c725ae80942b6b56a742ad02295dc
freedreno/a3xx: fix const footprint

In commit 5d8f40a53a5, the change was done incorrectly, switching from
max_const to constlen + 1. Instead it should have been constlen - 1,
which is the analog to the former max_const.

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_program.c