From: Dave Airlie Date: Tue, 17 Jan 2017 20:26:31 +0000 (+1000) Subject: radv: disable vertex reuse when writing viewport index X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=aac562f112ea9194b416c97336dcbbd3c1da812b;p=mesa.git 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 --- 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)); }