aboutsummaryrefslogtreecommitdiff
path: root/src/video_core/gpu.cpp
diff options
context:
space:
mode:
authorReinUsesLisp <reinuseslisp@airmail.cc>2019-12-18 00:36:21 -0300
committerReinUsesLisp <reinuseslisp@airmail.cc>2019-12-18 01:21:46 -0300
commit18ae3212ccfa9475528e6c932f0a64f44330c63e (patch)
tree48ffb54bd8d8d397431c2c3474b2b02b0378da90 /src/video_core/gpu.cpp
parentc54d8affb9ac0616c82c0d1ad6e2ab5485b598a6 (diff)
shader/memory: Implement LDG.U8 and unaligned U8 loads
LDG can load single bytes instead of full integers or packs of integers. These have the advantage of loading bytes that are not aligned to 4 bytes. To emulate these this commit gets the byte being referenced (by doing "address & 3" and then using that to extract the byte from the loaded integer: result = bitfieldExtract(loaded_integer, (address % 4) * 8, 8)
Diffstat (limited to 'src/video_core/gpu.cpp')
0 files changed, 0 insertions, 0 deletions