Sfoglia il codice sorgente

shader_decode: BFE add ref of reverse parallel method.

Nguyen Dac Nam 6 anni fa
parent
commit
70ff82f72d
1 ha cambiato i file con 3 aggiunte e 0 eliminazioni
  1. 3 0
      src/video_core/shader/decode/bfe.cpp

+ 3 - 0
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 =