diff options
author | Nguyen Dac Nam <nam.kazt.91@gmail.com> | 2020-03-13 08:20:18 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-13 08:20:18 +0100 |
commit | 70ff82f72d4dfd0b296e885b0f1517d0a46e64e1 (patch) | |
tree | 0f0f216dac850215ee7413bb2b86c56617071960 /src/video_core | |
parent | shader_decode: implement BREV on BFE (diff) | |
download | yuzu-70ff82f72d4dfd0b296e885b0f1517d0a46e64e1.tar yuzu-70ff82f72d4dfd0b296e885b0f1517d0a46e64e1.tar.gz yuzu-70ff82f72d4dfd0b296e885b0f1517d0a46e64e1.tar.bz2 yuzu-70ff82f72d4dfd0b296e885b0f1517d0a46e64e1.tar.lz yuzu-70ff82f72d4dfd0b296e885b0f1517d0a46e64e1.tar.xz yuzu-70ff82f72d4dfd0b296e885b0f1517d0a46e64e1.tar.zst yuzu-70ff82f72d4dfd0b296e885b0f1517d0a46e64e1.zip |
Diffstat (limited to 'src/video_core')
-rw-r--r-- | src/video_core/shader/decode/bfe.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/video_core/shader/decode/bfe.cpp b/src/video_core/shader/decode/bfe.cpp index 911d53657..39587e0df 100644 --- a/src/video_core/shader/decode/bfe.cpp +++ b/src/video_core/shader/decode/bfe.cpp @@ -36,6 +36,9 @@ u32 ShaderIR::DecodeBfe(NodeBlock& bb, u32 pc) { const bool is_signed = instr.bfe.is_signed; + // using reverse parallel method in + // https://graphics.stanford.edu/~seander/bithacks.html#ReverseParallel + // note for later if possible to implement faster method. if (instr.bfe.brev) { const auto swap = [&](u32 s, u32 mask) { Node v1 = |