summaryrefslogtreecommitdiff
path: root/src/shader_recompiler/frontend/maxwell/translate_program.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/shader_recompiler/frontend/maxwell/translate_program.cpp')
-rw-r--r--src/shader_recompiler/frontend/maxwell/translate_program.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/shader_recompiler/frontend/maxwell/translate_program.cpp b/src/shader_recompiler/frontend/maxwell/translate_program.cpp
index 6b4b0ce5b..2bb1d24a4 100644
--- a/src/shader_recompiler/frontend/maxwell/translate_program.cpp
+++ b/src/shader_recompiler/frontend/maxwell/translate_program.cpp
@@ -3,6 +3,7 @@
3// Refer to the license.txt file included. 3// Refer to the license.txt file included.
4 4
5#include <algorithm> 5#include <algorithm>
6#include <bit>
6#include <memory> 7#include <memory>
7#include <ranges> 8#include <ranges>
8#include <vector> 9#include <vector>
@@ -142,8 +143,8 @@ IR::Program TranslateProgram(ObjectPool<IR::Inst>& inst_pool, ObjectPool<IR::Blo
142 program.invocations = sph.common2.threads_per_input_primitive; 143 program.invocations = sph.common2.threads_per_input_primitive;
143 program.is_geometry_passthrough = sph.common0.geometry_passthrough != 0; 144 program.is_geometry_passthrough = sph.common0.geometry_passthrough != 0;
144 if (program.is_geometry_passthrough) { 145 if (program.is_geometry_passthrough) {
145 const auto mask{env.GpPassthroughMask()}; 146 const auto& mask{env.GpPassthroughMask()};
146 program.info.passthrough.mask |= ~Common::BitCast<std::bitset<256>>(mask); 147 program.info.passthrough.mask |= ~std::bit_cast<std::bitset<256>>(mask);
147 } 148 }
148 break; 149 break;
149 } 150 }