From aac562f112ea9194b416c97336dcbbd3c1da812b Mon Sep 17 00:00:00 2001 From: Dave Airlie Date: Wed, 18 Jan 2017 06:26:31 +1000 Subject: [PATCH] radv: disable vertex reuse when writing viewport index This fixes some issues we'd hit later if using viewport indexes. Reviewed-by: Bas Nieuwenhuizen Signed-off-by: Dave Airlie --- src/amd/vulkan/radv_cmd_buffer.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/amd/vulkan/radv_cmd_buffer.c b/src/amd/vulkan/radv_cmd_buffer.c index 27fa4056400..c6f238bfa26 100644 --- a/src/amd/vulkan/radv_cmd_buffer.c +++ b/src/amd/vulkan/radv_cmd_buffer.c @@ -511,6 +511,8 @@ radv_emit_vertex_shader(struct radv_cmd_buffer *cmd_buffer, cull_dist_mask << 8 | clip_dist_mask); + radeon_set_context_reg(cmd_buffer->cs, R_028AB4_VGT_REUSE_OFF, + S_028AB4_REUSE_OFF(vs->info.vs.writes_viewport_index)); } -- 2.30.2