[Mesa-dev] [PATCH] radv: disable vertex reuse when writing viewport index
Dave Airlie
airlied at gmail.com
Tue Jan 17 20:27:09 UTC 2017
From: Dave Airlie <airlied at redhat.com>
This fixes some issues we'd hit later if using viewport
indexes.
Signed-off-by: Dave Airlie <airlied at redhat.com>
---
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 27fa405..c6f238b 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.9.3
More information about the mesa-dev
mailing list