radv: fix primitive reset index emission
authorDave Airlie <airlied@redhat.com>
Sun, 19 Mar 2017 04:17:14 +0000 (14:17 +1000)
committerDave Airlie <airlied@redhat.com>
Sun, 19 Mar 2017 22:47:03 +0000 (08:47 +1000)
commitd06e168b878be45029bf66c2ac627d16144a7823
tree51593bc56645da592098b6a71a2453b0646c3805
parent274aaa331c969b998d5cf3f62015124297147ada
radv: fix primitive reset index emission

This was meant to be checking the index type to get the correct
index not the last emitted one. This fixes:
dEQP-VK.pipeline.input_assembly.primitive_restart.index_type_uint32.triangle_strip_with_adjacency

Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Cc: "13.0 17.0" <mesa-stable@lists.freedesktop.org>
Signed-off-by: Dave Airlie <airlied@redhat.com>
src/amd/vulkan/radv_cmd_buffer.c