mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-06 15:20:17 +01:00
aco: Support GFX10 VINTRP in aco_assembler.
Signed-off-by: Timur Kristóf <timur.kristof@gmail.com> Reviewed-by: Daniel Schürmann <daniel@schuermann.dev>
This commit is contained in:
parent
b6235651b9
commit
bbe87eb6c3
1 changed files with 9 additions and 1 deletions
|
|
@ -216,7 +216,15 @@ void emit_instruction(asm_context& ctx, std::vector<uint32_t>& out, Instruction*
|
|||
}
|
||||
case Format::VINTRP: {
|
||||
Interp_instruction* interp = static_cast<Interp_instruction*>(instr);
|
||||
uint32_t encoding = (0b110101 << 26);
|
||||
uint32_t encoding = 0;
|
||||
|
||||
if (ctx.chip_class == GFX8 || ctx.chip_class == GFX9) {
|
||||
encoding = (0b110101 << 26); /* Vega ISA doc says 110010 but it's wrong */
|
||||
} else {
|
||||
encoding = (0b110010 << 26);
|
||||
}
|
||||
|
||||
assert(encoding);
|
||||
encoding |= (0xFF & instr->definitions[0].physReg().reg) << 18;
|
||||
encoding |= opcode << 16;
|
||||
encoding |= interp->attribute << 10;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue