ir3: use empirical size for params as used by the shader
authorIlia Mirkin <imirkin@alum.mit.edu>
Sun, 5 Jul 2020 05:58:01 +0000 (01:58 -0400)
committerMarge Bot <eric+marge@anholt.net>
Mon, 6 Jul 2020 23:57:51 +0000 (23:57 +0000)
commit836d41d77265a2d2ca42bdbfd25de07b9bb134c9
tree3723070b1f477cd342fd9419872f1b6ae594fde3
parentf6aa0719cfaf10299d2c5112ddfbee91b4b732a9
ir3: use empirical size for params as used by the shader

For example only some UCPs may be used by the shader, triggering asserts
that too many consts are being uploaded.

While we're at it, also fix the const size when loading UCPs, since
otherwise it doesn't correspond to what the shader is actually using.

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/5752>
src/freedreno/ir3/ir3_nir.c
src/gallium/drivers/freedreno/ir3/ir3_const.h