Commit c212fc9b authored by Lioncash's avatar Lioncash
Browse files

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.
parent c4d54991
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment