radv: Don't use a divide by index_size.
authorBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Tue, 6 Jun 2017 16:22:23 +0000 (18:22 +0200)
committerBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Tue, 6 Jun 2017 21:23:43 +0000 (23:23 +0200)
commitfe0b8d1e8b3343389b466cbd2b823716ead77399
treec6131ad80d051fd7963750a3676db8b90c50b024
parent7063696b71b995388f247e108a6b2b53a521d385
radv: Don't use a divide by index_size.

Divides are pretty slow, and this is in the hot path of a draw.

Signed-off-by: Bas Nieuwenhuizen <basni@google.com>
Reviewed-by: Dave Airlie <airlied@redhat.com>
src/amd/vulkan/radv_cmd_buffer.c