Browse Source
Merge pull request #2469 from lioncash/copyable
video_core/engines/maxwell_3d: Add is_trivially_copyable_v check for Regs
pull/15/merge
Hexagon12
7 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
2 additions and
0 deletions
-
src/video_core/engines/maxwell_3d.h
|
|
@ -6,6 +6,7 @@ |
|
|
|
|
|
|
|
|
#include <array> |
|
|
#include <array> |
|
|
#include <bitset> |
|
|
#include <bitset> |
|
|
|
|
|
#include <type_traits> |
|
|
#include <unordered_map> |
|
|
#include <unordered_map> |
|
|
#include <vector> |
|
|
#include <vector> |
|
|
|
|
|
|
|
|
@ -1107,6 +1108,7 @@ public: |
|
|
} regs{}; |
|
|
} regs{}; |
|
|
|
|
|
|
|
|
static_assert(sizeof(Regs) == Regs::NUM_REGS * sizeof(u32), "Maxwell3D Regs has wrong size"); |
|
|
static_assert(sizeof(Regs) == Regs::NUM_REGS * sizeof(u32), "Maxwell3D Regs has wrong size"); |
|
|
|
|
|
static_assert(std::is_trivially_copyable_v<Regs>, "Maxwell3D Regs must be trivially copyable"); |
|
|
|
|
|
|
|
|
struct State { |
|
|
struct State { |
|
|
struct ConstBufferInfo { |
|
|
struct ConstBufferInfo { |
|
|
|