summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/video_core/engines/maxwell_3d.h17
1 files changed, 16 insertions, 1 deletions
diff --git a/src/video_core/engines/maxwell_3d.h b/src/video_core/engines/maxwell_3d.h
index 5d9b0043b..272ebee31 100644
--- a/src/video_core/engines/maxwell_3d.h
+++ b/src/video_core/engines/maxwell_3d.h
@@ -62,7 +62,21 @@ public:
62 62
63 union { 63 union {
64 struct { 64 struct {
65 INSERT_PADDING_WORDS(0x582); 65 INSERT_PADDING_WORDS(0x55D);
66
67 struct {
68 u32 tic_address_high;
69 u32 tic_address_low;
70 u32 tic_limit;
71
72 GPUVAddr TICAddress() const {
73 return static_cast<GPUVAddr>(
74 (static_cast<GPUVAddr>(tic_address_high) << 32) | tic_address_low);
75 }
76 } tic;
77
78 INSERT_PADDING_WORDS(0x22);
79
66 struct { 80 struct {
67 u32 code_address_high; 81 u32 code_address_high;
68 u32 code_address_low; 82 u32 code_address_low;
@@ -264,6 +278,7 @@ private:
264 static_assert(offsetof(Maxwell3D::Regs, field_name) == position * 4, \ 278 static_assert(offsetof(Maxwell3D::Regs, field_name) == position * 4, \
265 "Field " #field_name " has invalid position") 279 "Field " #field_name " has invalid position")
266 280
281ASSERT_REG_POSITION(tic, 0x55D);
267ASSERT_REG_POSITION(code_address, 0x582); 282ASSERT_REG_POSITION(code_address, 0x582);
268ASSERT_REG_POSITION(draw, 0x585); 283ASSERT_REG_POSITION(draw, 0x585);
269ASSERT_REG_POSITION(query, 0x6C0); 284ASSERT_REG_POSITION(query, 0x6C0);