Mesa (main): aco: fix emitting a16 for MIMG instructions on GFX10+
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Wed Jul 7 13:18:31 UTC 2021
Module: Mesa
Branch: main
Commit: 265a9002296c9aa8de1eac652614efa31ebe59de
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=265a9002296c9aa8de1eac652614efa31ebe59de
Author: Samuel Pitoiset <samuel.pitoiset at gmail.com>
Date: Tue Jul 6 18:06:40 2021 +0200
aco: fix emitting a16 for MIMG instructions on GFX10+
Signed-off-by: Samuel Pitoiset <samuel.pitoiset at gmail.com>
Reviewed-by: Rhys Perry <pendingchaos02 at gmail.com>
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 012c9428de1..77d4380b213 100644
--- a/src/amd/compiler/aco_assembler.cpp
+++ b/src/amd/compiler/aco_assembler.cpp
@@ -461,7 +461,7 @@ void emit_instruction(asm_context& ctx, std::vector<uint32_t>& out, Instruction*
assert(!mimg.d16 || ctx.chip_class >= GFX9);
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 */
+ encoding |= mimg.a16 ? 1 << 30 : 0; /* GFX10: A16 still exists, but is in a different place */
}
out.push_back(encoding);
More information about the mesa-commit
mailing list