diff options
author | ReinUsesLisp <reinuseslisp@airmail.cc> | 2018-12-27 20:50:36 +0100 |
---|---|---|
committer | ReinUsesLisp <reinuseslisp@airmail.cc> | 2019-01-15 21:54:53 +0100 |
commit | 2d6c064e66bac4cb871aa26a12066441a8852008 (patch) | |
tree | 52baf7c971830bbe9cb5c8631235f1ebcda95d30 /src/video_core/shader/decode/bfi.cpp | |
parent | shader_ir: Remove composite primitives and use temporals instead (diff) | |
download | yuzu-2d6c064e66bac4cb871aa26a12066441a8852008.tar yuzu-2d6c064e66bac4cb871aa26a12066441a8852008.tar.gz yuzu-2d6c064e66bac4cb871aa26a12066441a8852008.tar.bz2 yuzu-2d6c064e66bac4cb871aa26a12066441a8852008.tar.lz yuzu-2d6c064e66bac4cb871aa26a12066441a8852008.tar.xz yuzu-2d6c064e66bac4cb871aa26a12066441a8852008.tar.zst yuzu-2d6c064e66bac4cb871aa26a12066441a8852008.zip |
Diffstat (limited to '')
-rw-r--r-- | src/video_core/shader/decode/bfi.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/video_core/shader/decode/bfi.cpp b/src/video_core/shader/decode/bfi.cpp index b0d8d9eba..ddb1872c6 100644 --- a/src/video_core/shader/decode/bfi.cpp +++ b/src/video_core/shader/decode/bfi.cpp @@ -16,8 +16,6 @@ u32 ShaderIR::DecodeBfi(BasicBlock& bb, u32 pc) { const Instruction instr = {program_code[pc]}; const auto opcode = OpCode::Decode(instr); - UNIMPLEMENTED_IF(instr.generates_cc); - const auto [base, packed_shift] = [&]() -> std::tuple<Node, Node> { switch (opcode->get().GetId()) { case OpCode::Id::BFI_IMM_R: @@ -33,6 +31,8 @@ u32 ShaderIR::DecodeBfi(BasicBlock& bb, u32 pc) { const Node value = Operation(OperationCode::UBitfieldInsert, PRECISE, base, insert, offset, bits); + + SetInternalFlagsFromInteger(bb, value, instr.generates_cc); SetRegister(bb, instr.gpr0, value); return pc; |