diff options
author | Fernando Sahmkow <fsahmkow27@gmail.com> | 2019-07-12 15:25:47 +0200 |
---|---|---|
committer | FernandoS27 <fsahmkow27@gmail.com> | 2019-07-17 23:29:50 +0200 |
commit | 0d3db58657ce5352d90a70ee8d6c0334d9119366 (patch) | |
tree | e4e95780f6c5a050a8fb0a4b4d1f6af94dad3a16 /src/video_core/engines/maxwell_3d.h | |
parent | Maxwell3D: Rework the dirty system to be more consistant and scaleable (diff) | |
download | yuzu-0d3db58657ce5352d90a70ee8d6c0334d9119366.tar yuzu-0d3db58657ce5352d90a70ee8d6c0334d9119366.tar.gz yuzu-0d3db58657ce5352d90a70ee8d6c0334d9119366.tar.bz2 yuzu-0d3db58657ce5352d90a70ee8d6c0334d9119366.tar.lz yuzu-0d3db58657ce5352d90a70ee8d6c0334d9119366.tar.xz yuzu-0d3db58657ce5352d90a70ee8d6c0334d9119366.tar.zst yuzu-0d3db58657ce5352d90a70ee8d6c0334d9119366.zip |
Diffstat (limited to 'src/video_core/engines/maxwell_3d.h')
-rw-r--r-- | src/video_core/engines/maxwell_3d.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/video_core/engines/maxwell_3d.h b/src/video_core/engines/maxwell_3d.h index 84e6ca145..318078f36 100644 --- a/src/video_core/engines/maxwell_3d.h +++ b/src/video_core/engines/maxwell_3d.h @@ -1244,6 +1244,15 @@ private: Upload::State upload_state; + static constexpr u32 null_cb_data = 0xFFFFFFFF; + struct { + std::array<std::array<u32, 0x4000>, 16> buff; + u32 current{null_cb_data}; + u32 id{null_cb_data}; + u32 start_pos{}; + u32 counter{}; + } cb_data_state; + /// Retrieves information about a specific TIC entry from the TIC buffer. Texture::TICEntry GetTICEntry(u32 tic_index) const; @@ -1275,7 +1284,9 @@ private: void ProcessSyncPoint(); /// Handles a write to the CB_DATA[i] register. + void StartCBData(u32 method); void ProcessCBData(u32 value); + void FinishCBData(); /// Handles a write to the CB_BIND register. void ProcessCBBind(Regs::ShaderStage stage); |