summaryrefslogtreecommitdiffstats
path: root/src/video_core/engines/maxwell_3d.h
diff options
context:
space:
mode:
authorSubv <subv2112@gmail.com>2018-03-19 06:32:57 +0100
committerSubv <subv2112@gmail.com>2018-03-19 06:32:57 +0100
commitcff7b29bbaca20b28ea52eedefed7c1cdafff2b9 (patch)
treef668c38abc42e9019d86b7652f4896d4091370f6 /src/video_core/engines/maxwell_3d.h
parentMerge pull request #193 from N00byKing/3184_2_robotic_boogaloo (diff)
downloadyuzu-cff7b29bbaca20b28ea52eedefed7c1cdafff2b9.tar
yuzu-cff7b29bbaca20b28ea52eedefed7c1cdafff2b9.tar.gz
yuzu-cff7b29bbaca20b28ea52eedefed7c1cdafff2b9.tar.bz2
yuzu-cff7b29bbaca20b28ea52eedefed7c1cdafff2b9.tar.lz
yuzu-cff7b29bbaca20b28ea52eedefed7c1cdafff2b9.tar.xz
yuzu-cff7b29bbaca20b28ea52eedefed7c1cdafff2b9.tar.zst
yuzu-cff7b29bbaca20b28ea52eedefed7c1cdafff2b9.zip
Diffstat (limited to 'src/video_core/engines/maxwell_3d.h')
-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:
union {
struct {
- INSERT_PADDING_WORDS(0x582);
+ INSERT_PADDING_WORDS(0x55D);
+
+ struct {
+ u32 tic_address_high;
+ u32 tic_address_low;
+ u32 tic_limit;
+
+ GPUVAddr TICAddress() const {
+ return static_cast<GPUVAddr>(
+ (static_cast<GPUVAddr>(tic_address_high) << 32) | tic_address_low);
+ }
+ } tic;
+
+ INSERT_PADDING_WORDS(0x22);
+
struct {
u32 code_address_high;
u32 code_address_low;
@@ -264,6 +278,7 @@ private:
static_assert(offsetof(Maxwell3D::Regs, field_name) == position * 4, \
"Field " #field_name " has invalid position")
+ASSERT_REG_POSITION(tic, 0x55D);
ASSERT_REG_POSITION(code_address, 0x582);
ASSERT_REG_POSITION(draw, 0x585);
ASSERT_REG_POSITION(query, 0x6C0);