radv: re-emit VGT_INDEX_TYPE because non-indexed draws overwrite it
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Thu, 19 Oct 2017 10:35:46 +0000 (12:35 +0200)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Fri, 20 Oct 2017 08:40:01 +0000 (10:40 +0200)
commit54fa635f82478a63908dbaf206465a347616fed0
tree4f26e407b70c46a001c46dc2341e6b9ff5edd1a3
parenteae46f192efa2cbb691b6567b4bd0ebaf39500da
radv: re-emit VGT_INDEX_TYPE because non-indexed draws overwrite it

Only on CIK and later. We should only update VGT_INDEX_TYPE but
it seems easier to re-emit all the index buffer packets.

Fixes: 966d66f28f (radv: do not re-emit the index buffer for every draw call)
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
src/amd/vulkan/radv_cmd_buffer.c