radv: only re-mit the index type when it changes
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Wed, 6 Dec 2017 16:49:20 +0000 (17:49 +0100)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Fri, 8 Dec 2017 10:21:36 +0000 (11:21 +0100)
commitc7c7b0088998a82a6f06f1a5d2546150ea6f4ffb
tree32c4e81d82cf67a05b818f72b85d4a9e65c4cf72
parenta302009b7b8e5d29e9cd78e48e52b897db85e027
radv: only re-mit the index type when it changes

dota2 binds a ton of index buffers but the type is always 16-bit.
Note that we have to invalidate the type when switching from
indexed draws to normal draws.

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Dave Airlie <airlied@redhat.com>
src/amd/vulkan/radv_cmd_buffer.c
src/amd/vulkan/radv_private.h