From 70ff82f72d4dfd0b296e885b0f1517d0a46e64e1 Mon Sep 17 00:00:00 2001 From: Nguyen Dac Nam Date: Fri, 13 Mar 2020 14:20:18 +0700 Subject: [PATCH] shader_decode: BFE add ref of reverse parallel method. --- src/video_core/shader/decode/bfe.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/video_core/shader/decode/bfe.cpp b/src/video_core/shader/decode/bfe.cpp index 911d536570..39587e0df9 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 =