summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/video_core/engines/maxwell_3d.h16
1 files changed, 15 insertions, 1 deletions
diff --git a/src/video_core/engines/maxwell_3d.h b/src/video_core/engines/maxwell_3d.h
index 272ebee31..096679162 100644
--- a/src/video_core/engines/maxwell_3d.h
+++ b/src/video_core/engines/maxwell_3d.h
@@ -62,7 +62,20 @@ public:
62 62
63 union { 63 union {
64 struct { 64 struct {
65 INSERT_PADDING_WORDS(0x55D); 65 INSERT_PADDING_WORDS(0x557);
66
67 struct {
68 u32 tsc_address_high;
69 u32 tsc_address_low;
70 u32 tsc_limit;
71
72 GPUVAddr TSCAddress() const {
73 return static_cast<GPUVAddr>(
74 (static_cast<GPUVAddr>(tsc_address_high) << 32) | tsc_address_low);
75 }
76 } tsc;
77
78 INSERT_PADDING_WORDS(0x3);
66 79
67 struct { 80 struct {
68 u32 tic_address_high; 81 u32 tic_address_high;
@@ -278,6 +291,7 @@ private:
278 static_assert(offsetof(Maxwell3D::Regs, field_name) == position * 4, \ 291 static_assert(offsetof(Maxwell3D::Regs, field_name) == position * 4, \
279 "Field " #field_name " has invalid position") 292 "Field " #field_name " has invalid position")
280 293
294ASSERT_REG_POSITION(tsc, 0x557);
281ASSERT_REG_POSITION(tic, 0x55D); 295ASSERT_REG_POSITION(tic, 0x55D);
282ASSERT_REG_POSITION(code_address, 0x582); 296ASSERT_REG_POSITION(code_address, 0x582);
283ASSERT_REG_POSITION(draw, 0x585); 297ASSERT_REG_POSITION(draw, 0x585);