mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-06 00:10:20 +01:00
agx: Fix packing of stack map/unmap
We got the register indices wrong... Signed-off-by: Asahi Lina <lina@asahilina.nt> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26963>
This commit is contained in:
parent
5009e48748
commit
f5ea767625
1 changed files with 2 additions and 2 deletions
|
|
@ -996,11 +996,11 @@ agx_pack_instr(struct util_dynarray *emission, struct util_dynarray *fixups,
|
|||
|
||||
struct agx_opcode_info info = agx_opcodes_info[I->op];
|
||||
uint64_t raw =
|
||||
info.encoding.exact | (q1 << 8) | ((value.value & 0x1F) << 11) |
|
||||
info.encoding.exact | (q1 << 8) | ((value.value & 0x3F) << 10) |
|
||||
((I->imm & 0xF) << 20) | (1UL << 24) | // XXX
|
||||
(1UL << 26) | // XXX
|
||||
(q2 << 30) | ((uint64_t)((I->imm >> 4) & 0xF) << 32) |
|
||||
((uint64_t)q3 << 37) | ((uint64_t)(value.value >> 5) << 40) |
|
||||
((uint64_t)q3 << 37) | ((uint64_t)(value.value >> 6) << 40) |
|
||||
((uint64_t)q4 << 42) | (1UL << 47) | // XXX
|
||||
((uint64_t)q5 << 48) | ((uint64_t)(I->imm >> 8) << 56);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue