r600/sfn: Add GS thread fix just like the TGSI code path

The old code does the same for R600.

Fixes: 33765aa92a
     r600/sfn: Enable NIR for pre RG hardware

Signed-off-by: Gert Wollny <gert.wollny@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18130>
This commit is contained in:
Gert Wollny 2022-08-05 19:55:41 +02:00 committed by Marge Bot
parent 00599f6e71
commit 34b9e3e44c

View file

@ -179,6 +179,15 @@ int GeometryShader::do_allocate_reserved_registers()
m_ring_item_sizes[0] = m_next_input_ring_offset;
/* GS thread with no output workaround - emit a cut at start of GS */
if (chip_class() == ISA_CC_R600) {
emit_instruction(new EmitVertexInstr(0, true));
start_new_block(0);
}
if (m_tri_strip_adj_fix)
emit_adj_fix();