mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-24 08:28:16 +02:00
freedreno/ir3: Start GS with (ss) and (sy)
We don't know what kind of loads we might have to wait on when coming in from chsh in the VS so set both sync flags. Signed-off-by: Kristian H. Kristensen <hoegsberg@google.com>
This commit is contained in:
parent
c347708bea
commit
4b7312b763
1 changed files with 13 additions and 0 deletions
|
|
@ -3255,6 +3255,19 @@ ir3_compile_shader_nir(struct ir3_compiler *compiler,
|
|||
ir3_print(ir);
|
||||
}
|
||||
|
||||
/* Set (ss)(sy) on first TCS and GEOMETRY instructions, since we don't
|
||||
* know what we might have to wait on when coming in from VS chsh.
|
||||
*/
|
||||
if (so->type == MESA_SHADER_TESS_CTRL ||
|
||||
so->type == MESA_SHADER_GEOMETRY ) {
|
||||
list_for_each_entry (struct ir3_block, block, &ir->block_list, node) {
|
||||
list_for_each_entry (struct ir3_instruction, instr, &block->instr_list, node) {
|
||||
instr->flags |= IR3_INSTR_SS | IR3_INSTR_SY;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
so->branchstack = ctx->max_stack;
|
||||
|
||||
/* Note that actual_in counts inputs that are not bary.f'd for FS: */
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue