Module: Mesa Branch: main Commit: ffdb980a1217671afebe1cf2d2a8a47398ec16b9 URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=ffdb980a1217671afebe1cf2d2a8a47398ec16b9
Author: Samuel Pitoiset <[email protected]> Date: Tue Jul 6 18:06:10 2021 +0200 aco: fix emitting d16 for MIMG instructions on GFX9+ Signed-off-by: Samuel Pitoiset <[email protected]> Reviewed-by: Rhys Perry <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11734> --- src/amd/compiler/aco_assembler.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/amd/compiler/aco_assembler.cpp b/src/amd/compiler/aco_assembler.cpp index fa664f95553..012c9428de1 100644 --- a/src/amd/compiler/aco_assembler.cpp +++ b/src/amd/compiler/aco_assembler.cpp @@ -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 */ } _______________________________________________ mesa-commit mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/mesa-commit
