summaryrefslogtreecommitdiff
path: root/src/video_core/gpu_thread.cpp
diff options
context:
space:
mode:
authorGravatar Lioncash2019-05-14 08:41:51 -0400
committerGravatar Lioncash2019-05-14 08:47:56 -0400
commitc212fc9b2c6a389dfe7ea59bc66c745397c349fd (patch)
tree57334dcfdfb201ee4e982010ce5e1144b19d8b62 /src/video_core/gpu_thread.cpp
parentMerge pull request #2462 from lioncash/video-mm (diff)
downloadyuzu-c212fc9b2c6a389dfe7ea59bc66c745397c349fd.tar.gz
yuzu-c212fc9b2c6a389dfe7ea59bc66c745397c349fd.tar.xz
yuzu-c212fc9b2c6a389dfe7ea59bc66c745397c349fd.zip
video_core/engines/maxwell_3d: Add is_trivially_copyable_v check for Regs
std::memset is used to clear the entire register structure, which requires that the Regs struct be trivially copyable (otherwise undefined behavior is invoked). This prevents the case where a non-trivial type is potentially added to the struct.
Diffstat (limited to 'src/video_core/gpu_thread.cpp')
0 files changed, 0 insertions, 0 deletions