radv: reduce overhead of invalid index buffer size check

this should be based on the total size of the index buffer so that it doesn't
have to be checked on every draw iteration
36 jobs for !9951 with radv-invalid_overhead in 10 seconds (queued for 7 seconds)
latest detached
Status Job ID Name Coverage
  Sanity
passed #8460177
sanity

00:00:10

 
  Container
manual #8460180
aarch64 manual
arm_build
manual #8460181
manual
arm_test-base
manual #8460182
windows shell 1809 mesa manual
windows_build_vs2019
manual #8460178
manual
x86_build-base
manual #8460179
manual
x86_test-base
 
  Container 2
created #8460190
android_build
created #8460193
arm64_test
created #8460194
armhf_test
created #8460187
i386_build
created #8460183
kernel+rootfs_amd64
created #8460184
aarch64
kernel+rootfs_arm64
created #8460185
aarch64
kernel+rootfs_armhf
created #8460188
ppc64el_build
created #8460189
s390x_build
created #8460186
x86_build
created #8460191
x86_test-gl
created #8460192
x86_test-vk
 
  Meson X86 64
created #8460200
meson-clang
created #8460201
meson-clover
created #8460197
meson-clover-testing
created #8460198
meson-gallium
created #8460199
meson-release
created #8460195
meson-testing
created #8460196
meson-testing-asan
created #8460202
meson-vulkan
 
  Build Misc
created #8460203
meson-android
created #8460205
aarch64
meson-arm64
created #8460206
aarch64
meson-arm64-asan
created #8460207
aarch64
meson-arm64-build-test
created #8460204
aarch64
meson-armhf
created #8460208
meson-i386
created #8460211
meson-mingw32-x86_64
created #8460210
kvm
meson-ppc64el
created #8460209
kvm
meson-s390x
 
  Amd
created #8460212
radv-fossils