mesa: add index_size_shift = log2(index_size) into _mesa_index_buffer
authorMarek Olšák <marek.olsak@amd.com>
Wed, 12 Feb 2020 23:02:24 +0000 (18:02 -0500)
committerMarek Olšák <marek.olsak@amd.com>
Thu, 5 Mar 2020 00:54:42 +0000 (19:54 -0500)
commit87085c673d593e6332ca2f3fb6737b77f7087f66
treec54fb454a368b7c309e5f6266ee23a16a66ff57f
parentf38ffa4659aa985f5d1c78bdd5be5064b792b819
mesa: add index_size_shift = log2(index_size) into _mesa_index_buffer

for faster division

Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Reviewed-by: Ian Romanick <ian.d.romanic@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4052>
src/mesa/main/draw.c
src/mesa/main/draw.h
src/mesa/tnl/t_rebase.c
src/mesa/tnl/t_split_copy.c
src/mesa/tnl/t_split_inplace.c