radv: do not re-emit the index buffer for every draw call
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Wed, 18 Oct 2017 12:17:23 +0000 (14:17 +0200)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Wed, 18 Oct 2017 19:21:43 +0000 (21:21 +0200)
commit966d66f28f317bb14c21f89ef9899dbfba9787a4
tree431d8b1412f3d712b4f1c2811df1ac7c93f9c468
parente5480be0d186af1c0f79e27685238429c534f323
radv: do not re-emit the index buffer for every draw call

It can only be changed when CmdBindIndexBuffer() is called
or when a secondary buffer is used. Though not always, but
let's re-emit the packets in this situation for now.

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
src/amd/vulkan/radv_cmd_buffer.c