aboutsummaryrefslogtreecommitdiff
path: root/src/video_core/shader/decode/arithmetic_integer.cpp
diff options
context:
space:
mode:
authorReinUsesLisp <reinuseslisp@airmail.cc>2020-04-20 03:24:00 -0300
committerReinUsesLisp <reinuseslisp@airmail.cc>2020-04-23 18:29:38 -0300
commit3e808936a86c795b1ed35858cf001869240bdd0b (patch)
treee64142da235b23d85320ad53741cfb2b0cd51f5f /src/video_core/shader/decode/arithmetic_integer.cpp
parent3fa8a21647989d9712ef5caf29ed1137c5c2bbc9 (diff)
decode/arithmetic_half: Fix HADD2 and HMUL2 absolute and negation bits
The encoding for negation and absolute value was wrong. Extracting is now done manually. Similar instructions having different encodings is the rule, not the exception. To keep sanity and readability I preferred to extract the desired bit manually. This is implemented against nxas: https://github.com/ReinUsesLisp/nxas/blob/8dbc38995711cc12206aa370145a3a02665fd989/table.h#L68 That is itself tested against nvdisasm (Nvidia's official disassembler).
Diffstat (limited to 'src/video_core/shader/decode/arithmetic_integer.cpp')
0 files changed, 0 insertions, 0 deletions