summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGert Wollny <gert.wollny@collabora.com>2021-04-30 23:54:40 +0200
committerGert Wollny <gert.wollny@collabora.com>2021-05-18 22:16:07 +0200
commitefdb888b299e94cf89b6786557065ad3b4647e1b (patch)
tree4c0719b06c3b72d9e6493f98348b8d8d9fa9800b
parent80efb6369a5574fadfa942f760605d376559523b (diff)
r600/sfn: Fix Geometry shader for Cayman
Signed-off-by: Gert Wollny <gert.wollny@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10608>
-rw-r--r--src/gallium/drivers/r600/sfn/sfn_shader_geometry.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/r600/sfn/sfn_shader_geometry.cpp b/src/gallium/drivers/r600/sfn/sfn_shader_geometry.cpp
index 0541e0ad02c..acc1125adc8 100644
--- a/src/gallium/drivers/r600/sfn/sfn_shader_geometry.cpp
+++ b/src/gallium/drivers/r600/sfn/sfn_shader_geometry.cpp
@@ -248,7 +248,7 @@ void GeometryShaderFromNir::emit_adj_fix()
{adjhelp0, m_per_vertex_offsets[i],
m_per_vertex_offsets[rotate_indices[i]]},
{alu_write});
- if (i == 3)
+ if ((get_chip_class() == CAYMAN && i == 2) || (i == 3))
ir->set_flag(alu_last_instr);
emit_instruction(ir);
}