freedreno/a6xx: Split VFD_FETCH[] if needed
authorRob Clark <robdclark@chromium.org>
Thu, 30 Jun 2022 17:06:21 +0000 (10:06 -0700)
committerMarge Bot <emma+marge@anholt.net>
Sun, 3 Jul 2022 23:20:46 +0000 (23:20 +0000)
commit8b197f4ba751187b5ba19b1e31f03e5b6c58f356
tree301d5b7bc394171d5ec7c034be383e57b2b592aa
parent9e1bf8e7acd382c68c145e549738e88a46c1e38c
freedreno/a6xx: Split VFD_FETCH[] if needed

Avoid overflowing max pkt4 size by splitting VFD_FETCH[] emit.
Otherwise the maximum size of 32 VBOs would overflow and wrap to
zero.

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