aboutsummaryrefslogtreecommitdiff
path: root/src/shader_recompiler/frontend/maxwell/decode.cpp
diff options
context:
space:
mode:
authorlizzie <lizzie@eden-emu.dev>2025-07-30 20:59:28 +0200
committercrueter <crueter@eden-emu.dev>2025-07-30 20:59:28 +0200
commit9e0e31132a2ae11675af9762bcabff4dd0010c9f (patch)
tree26087979b3efb4d1f1419ad7632b21e35661f48e /src/shader_recompiler/frontend/maxwell/decode.cpp
parentff44444bda3bc73766cad62e1313d817ad51700b (diff)
[icc] fix intel c++ compiler errors (#146)
Reviewed-on: https://git.eden-emu.dev/eden-emu/eden/pulls/146 Co-authored-by: lizzie <lizzie@eden-emu.dev> Co-committed-by: lizzie <lizzie@eden-emu.dev>
Diffstat (limited to 'src/shader_recompiler/frontend/maxwell/decode.cpp')
-rw-r--r--src/shader_recompiler/frontend/maxwell/decode.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/shader_recompiler/frontend/maxwell/decode.cpp b/src/shader_recompiler/frontend/maxwell/decode.cpp
index 774f65bc59..47111a0501 100644
--- a/src/shader_recompiler/frontend/maxwell/decode.cpp
+++ b/src/shader_recompiler/frontend/maxwell/decode.cpp
@@ -1,3 +1,5 @@
+// SPDX-FileCopyrightText: Copyright 2025 Eden Emulator Project
+// SPDX-License-Identifier: GPL-3.0-or-later
// SPDX-FileCopyrightText: Copyright 2021 yuzu Emulator Project
// SPDX-License-Identifier: GPL-2.0-or-later
@@ -51,7 +53,8 @@ struct InstEncoding {
MaskValue mask_value;
Opcode opcode;
};
-constexpr std::array UNORDERED_ENCODINGS{
+constexpr auto SortedEncodings() {
+ std::array<InstEncoding, 279> encodings{
#define INST(name, cute, encode) \
InstEncoding{ \
.mask_value{MaskValueFromEncoding(encode)}, \
@@ -59,10 +62,7 @@ constexpr std::array UNORDERED_ENCODINGS{
},
#include "maxwell.inc"
#undef INST
-};
-
-constexpr auto SortedEncodings() {
- std::array encodings{UNORDERED_ENCODINGS};
+ };
std::ranges::sort(encodings, [](const InstEncoding& lhs, const InstEncoding& rhs) {
return std::popcount(lhs.mask_value.mask) > std::popcount(rhs.mask_value.mask);
});