mirror of
https://git.suyu.dev/suyu/suyu.git
synced 2024-11-15 22:54:00 +00:00
shader_decode: BFE add ref of reverse parallel method.
This commit is contained in:
parent
96a4abe12d
commit
70ff82f72d
1 changed files with 3 additions and 0 deletions
|
@ -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 =
|
||||
|
|
Loading…
Reference in a new issue