diff options
author | bunnei <bunneidev@gmail.com> | 2019-04-06 05:50:54 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-04-06 05:50:54 +0200 |
commit | 864280fabcb4b9d97a5a171d0100694d9f2d4ec4 (patch) | |
tree | 5c956c3f0a99f94e471417e23c437ca4c30d5307 /src | |
parent | Merge pull request #2325 from lioncash/name (diff) | |
parent | Implement SyncPoint Register in the GPU. (diff) | |
download | yuzu-864280fabcb4b9d97a5a171d0100694d9f2d4ec4.tar yuzu-864280fabcb4b9d97a5a171d0100694d9f2d4ec4.tar.gz yuzu-864280fabcb4b9d97a5a171d0100694d9f2d4ec4.tar.bz2 yuzu-864280fabcb4b9d97a5a171d0100694d9f2d4ec4.tar.lz yuzu-864280fabcb4b9d97a5a171d0100694d9f2d4ec4.tar.xz yuzu-864280fabcb4b9d97a5a171d0100694d9f2d4ec4.tar.zst yuzu-864280fabcb4b9d97a5a171d0100694d9f2d4ec4.zip |
Diffstat (limited to 'src')
-rw-r--r-- | src/video_core/engines/maxwell_3d.cpp | 12 | ||||
-rw-r--r-- | src/video_core/engines/maxwell_3d.h | 16 |
2 files changed, 27 insertions, 1 deletions
diff --git a/src/video_core/engines/maxwell_3d.cpp b/src/video_core/engines/maxwell_3d.cpp index 3c3ac8f81..8194a4b4a 100644 --- a/src/video_core/engines/maxwell_3d.cpp +++ b/src/video_core/engines/maxwell_3d.cpp @@ -249,6 +249,10 @@ void Maxwell3D::CallMethod(const GPU::MethodCall& method_call) { ProcessQueryGet(); break; } + case MAXWELL3D_REG_INDEX(sync_info): { + ProcessSyncPoint(); + break; + } default: break; } @@ -326,6 +330,14 @@ void Maxwell3D::ProcessQueryGet() { } } +void Maxwell3D::ProcessSyncPoint() { + const u32 sync_point = regs.sync_info.sync_point.Value(); + const u32 increment = regs.sync_info.increment.Value(); + const u32 cache_flush = regs.sync_info.unknown.Value(); + UNIMPLEMENTED_MSG("Syncpoint Set {}, increment: {}, unk: {}", sync_point, increment, + cache_flush); +} + void Maxwell3D::DrawArrays() { LOG_DEBUG(HW_GPU, "called, topology={}, count={}", static_cast<u32>(regs.draw.topology.Value()), regs.vertex_buffer.count); diff --git a/src/video_core/engines/maxwell_3d.h b/src/video_core/engines/maxwell_3d.h index b352060a1..321af3297 100644 --- a/src/video_core/engines/maxwell_3d.h +++ b/src/video_core/engines/maxwell_3d.h @@ -579,7 +579,17 @@ public: u32 bind; } macros; - INSERT_PADDING_WORDS(0x188); + INSERT_PADDING_WORDS(0x69); + + struct { + union { + BitField<0, 16, u32> sync_point; + BitField<16, 1, u32> unknown; + BitField<20, 1, u32> increment; + }; + } sync_info; + + INSERT_PADDING_WORDS(0x11E); u32 tfb_enabled; @@ -1184,6 +1194,9 @@ private: /// Handles a write to the QUERY_GET register. void ProcessQueryGet(); + /// Handles writes to syncing register. + void ProcessSyncPoint(); + /// Handles a write to the CB_DATA[i] register. void ProcessCBData(u32 value); @@ -1199,6 +1212,7 @@ private: "Field " #field_name " has invalid position") ASSERT_REG_POSITION(macros, 0x45); +ASSERT_REG_POSITION(sync_info, 0xB2); ASSERT_REG_POSITION(tfb_enabled, 0x1D1); ASSERT_REG_POSITION(rt, 0x200); ASSERT_REG_POSITION(viewport_transform, 0x280); |