diff options
author | ReinUsesLisp <reinuseslisp@airmail.cc> | 2018-12-23 05:33:47 +0100 |
---|---|---|
committer | ReinUsesLisp <reinuseslisp@airmail.cc> | 2019-01-15 21:54:52 +0100 |
commit | 027f443e699652fc30a849efaf8c12725a7b5729 (patch) | |
tree | 10f5c18227a20ce4cf9295107ee16e310e0d41da /src/video_core/shader/decode | |
parent | shader_decode: Implement TLDS (untested) (diff) | |
download | yuzu-027f443e699652fc30a849efaf8c12725a7b5729.tar yuzu-027f443e699652fc30a849efaf8c12725a7b5729.tar.gz yuzu-027f443e699652fc30a849efaf8c12725a7b5729.tar.bz2 yuzu-027f443e699652fc30a849efaf8c12725a7b5729.tar.lz yuzu-027f443e699652fc30a849efaf8c12725a7b5729.tar.xz yuzu-027f443e699652fc30a849efaf8c12725a7b5729.tar.zst yuzu-027f443e699652fc30a849efaf8c12725a7b5729.zip |
Diffstat (limited to 'src/video_core/shader/decode')
-rw-r--r-- | src/video_core/shader/decode/arithmetic_integer.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/video_core/shader/decode/arithmetic_integer.cpp b/src/video_core/shader/decode/arithmetic_integer.cpp index b12dc5ba8..271ce205b 100644 --- a/src/video_core/shader/decode/arithmetic_integer.cpp +++ b/src/video_core/shader/decode/arithmetic_integer.cpp @@ -119,6 +119,16 @@ u32 ShaderIR::DecodeArithmeticInteger(BasicBlock& bb, u32 pc) { SetRegister(bb, instr.gpr0, value); break; } + case OpCode::Id::POPC_C: + case OpCode::Id::POPC_R: + case OpCode::Id::POPC_IMM: { + if (instr.popc.invert) { + op_b = Operation(OperationCode::IBitwiseNot, NO_PRECISE, op_b); + } + const Node value = Operation(OperationCode::IBitCount, PRECISE, op_b); + SetRegister(bb, instr.gpr0, value); + break; + } case OpCode::Id::SEL_C: case OpCode::Id::SEL_R: case OpCode::Id::SEL_IMM: { |