| Name |
Last commit
|
Last update |
|---|---|---|
| .. | ||
| Common | ||
| D3D8 | ||
| D3D9 | ||
| Device | ||
| Main | ||
| OpenGL | ||
| Pipeline | ||
| Reactor | ||
| Renderer | ||
| Shader | ||
| SwiftShader | ||
| System | ||
| Vulkan | ||
| WSI | ||
| Android.bp | ||
| SwiftShader.workspace | ||
| clang-format-all.sh | ||
| clang-format-separate.sh | ||
| commit_id.py | ||
| swiftshader.gni |
Previously the compiler would implicitly declare a copy constructor and assignment operator for classes derived from Memset<>, if they didn't have user-defined ones. This can cause them to have uninitialized padding bytes. By defining them ourselves using memcpy() we can ensure they're zero-initialized. Also define equality and less-than operators. The latter makes classes derived from Memset<> suitable as std::map<> keys. is_memcmparable<> now no longer works on classed derived from Memset<>, because it uses std::is_trivially_copyable<> which isn't true when a user-defined copy constructor or assignment operator is provided. Instead just rely on Memset<>'s new equality operators. Bug: b/131246679 Change-Id: I6e4963db8186955d8d3d3ef356fa42ef6a024c64 Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/42728 Presubmit-Ready: Nicolas Capens <nicolascapens@google.com> Reviewed-by:Antonio Maiorano <amaiorano@google.com> Tested-by:
Nicolas Capens <nicolascapens@google.com> Kokoro-Presubmit: kokoro <noreply+kokoro@google.com>
| Name |
Last commit
|
Last update |
|---|---|---|
| .. | ||
| Common | Loading commit data... | |
| D3D8 | Loading commit data... | |
| D3D9 | Loading commit data... | |
| Device | Loading commit data... | |
| Main | Loading commit data... | |
| OpenGL | Loading commit data... | |
| Pipeline | Loading commit data... | |
| Reactor | Loading commit data... | |
| Renderer | Loading commit data... | |
| Shader | Loading commit data... | |
| SwiftShader | Loading commit data... | |
| System | Loading commit data... | |
| Vulkan | Loading commit data... | |
| WSI | Loading commit data... | |
| Android.bp | Loading commit data... | |
| SwiftShader.workspace | Loading commit data... | |
| clang-format-all.sh | Loading commit data... | |
| clang-format-separate.sh | Loading commit data... | |
| commit_id.py | Loading commit data... | |
| swiftshader.gni | Loading commit data... |