freedreno/a6xx: Set index buffer size to bo size
authorKristian H. Kristensen <hoegsberg@google.com>
Tue, 16 Jun 2020 18:39:07 +0000 (11:39 -0700)
committerMarge Bot <eric+marge@anholt.net>
Fri, 19 Jun 2020 19:25:34 +0000 (19:25 +0000)
commitb1a98a1107ad70b1a6864dd38f33beebe689fec7
treea84cb175be9c9717c4e2c748d93f437f212d649d
parent2580e4f921036bd63aa74d8343d1e05818ecf6cd
freedreno/a6xx: Set index buffer size to bo size

The number of vertices may be out of bound and if we use it for
computing index buffer size we may get too big a size.

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5552>
src/gallium/drivers/freedreno/a6xx/fd6_draw.c