summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDave Airlie <[email protected]>2017-01-18 06:26:31 +1000
committerDave Airlie <[email protected]>2017-01-18 08:04:11 +1000
commitaac562f112ea9194b416c97336dcbbd3c1da812b (patch)
tree5fee292d6ae1b5fd7802635f8b236b63fb822e22
parent7e0382fb35960416459134f27fa1b0f57aba8acc (diff)
radv: disable vertex reuse when writing viewport index
This fixes some issues we'd hit later if using viewport indexes. Reviewed-by: Bas Nieuwenhuizen <[email protected]> Signed-off-by: Dave Airlie <[email protected]>
-rw-r--r--src/amd/vulkan/radv_cmd_buffer.c2
1 files changed, 2 insertions, 0 deletions
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));
}