diff options
author | Dave Airlie <[email protected]> | 2017-03-19 14:17:14 +1000 |
---|---|---|
committer | Dave Airlie <[email protected]> | 2017-03-20 08:47:03 +1000 |
commit | d06e168b878be45029bf66c2ac627d16144a7823 (patch) | |
tree | 51593bc56645da592098b6a71a2453b0646c3805 /src/amd | |
parent | 274aaa331c969b998d5cf3f62015124297147ada (diff) |
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 <[email protected]>
Cc: "13.0 17.0" <[email protected]>
Signed-off-by: Dave Airlie <[email protected]>
Diffstat (limited to 'src/amd')
-rw-r--r-- | src/amd/vulkan/radv_cmd_buffer.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/amd/vulkan/radv_cmd_buffer.c b/src/amd/vulkan/radv_cmd_buffer.c index 17be0a1dd31..ba192f302e8 100644 --- a/src/amd/vulkan/radv_cmd_buffer.c +++ b/src/amd/vulkan/radv_cmd_buffer.c @@ -2324,7 +2324,7 @@ void radv_CmdDraw( static void radv_emit_primitive_reset_index(struct radv_cmd_buffer *cmd_buffer) { - uint32_t primitive_reset_index = cmd_buffer->state.last_primitive_reset_index ? 0xffffffffu : 0xffffu; + uint32_t primitive_reset_index = cmd_buffer->state.index_type ? 0xffffffffu : 0xffffu; if (cmd_buffer->state.pipeline->graphics.prim_restart_enable && primitive_reset_index != cmd_buffer->state.last_primitive_reset_index) { |