freedreno/a6xx: don't emit a bogus size for empty cb slots
authorRob Clark <robdclark@chromium.org>
Wed, 29 Jul 2020 16:09:19 +0000 (09:09 -0700)
committerMarge Bot <eric+marge@anholt.net>
Wed, 29 Jul 2020 20:22:05 +0000 (20:22 +0000)
commit82b419fefde427874152e8de2e838178c20cf00a
treeb4e45d49c5dd617c9258a7d99d78f15062dc9b20
parentba9d502d246ec408761f6d44c6a3fde227ef87a6
freedreno/a6xx: don't emit a bogus size for empty cb slots

Noticed that asphalt9 had no uniforms bound, so cb[0] is null.  In
theory shouldn't cause a problem, since nothing is doing `ldc` against
cb[0], but to be safe we should use SIZE=0.

Signed-off-by: Rob Clark <robdclark@chromium.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6117>
src/gallium/drivers/freedreno/a6xx/fd6_const.c