mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-04 09:10:12 +01:00
aco: fix emitting d16 for MIMG instructions on GFX9+
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Reviewed-by: Rhys Perry <pendingchaos02@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11734>
This commit is contained in:
parent
b103855abc
commit
ffdb980a12
1 changed files with 1 additions and 1 deletions
|
|
@ -459,7 +459,7 @@ void emit_instruction(asm_context& ctx, std::vector<uint32_t>& out, Instruction*
|
|||
encoding |= (0x1F & (instr->operands[1].physReg() >> 2)) << 21; /* sampler */
|
||||
|
||||
assert(!mimg.d16 || ctx.chip_class >= GFX9);
|
||||
encoding |= mimg.d16 ? 1 << 15 : 0;
|
||||
encoding |= mimg.d16 ? 1 << 31 : 0;
|
||||
if (ctx.chip_class >= GFX10) {
|
||||
encoding |= mimg.a16 ? 1 << 14 : 0; /* GFX10: A16 still exists, but is in a different place */
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue