nir,aco: Add ds_bvh_stack_rtn

This is a ds instruction that also overwrites its first input, so
introduce a new ds format with two outputs.

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35269>
This commit is contained in:
Natalie Vock
2023-12-19 21:10:41 +01:00
committed by Marge Bot
parent 8815845271
commit 9707b30965
11 changed files with 72 additions and 9 deletions
+1 -1
View File
@@ -513,7 +513,7 @@ emit_ds_instruction(asm_context& ctx, std::vector<uint32_t>& out, const Instruct
out.push_back(encoding);
encoding = 0;
if (!instr->definitions.empty())
encoding |= reg(ctx, instr->definitions[0], 8) << 24;
encoding |= reg(ctx, instr->definitions.back(), 8) << 24;
for (unsigned i = 0; i < MIN2(instr->operands.size(), 3); i++) {
const Operand& op = instr->operands[i];
if (op.physReg() != m0 && !op.isUndefined())