summaryrefslogtreecommitdiffstats
path: root/src/video_core/engines/kepler_compute.h
diff options
context:
space:
mode:
authorReinUsesLisp <reinuseslisp@airmail.cc>2020-06-11 05:58:57 +0200
committerReinUsesLisp <reinuseslisp@airmail.cc>2020-08-22 06:51:45 +0200
commitda53bcee60fced902479b72b40ed26b099fa9938 (patch)
treeb83232ad60b7725090b31bd3e347c9df774ced40 /src/video_core/engines/kepler_compute.h
parentMerge pull request #4536 from lioncash/semi3 (diff)
downloadyuzu-da53bcee60fced902479b72b40ed26b099fa9938.tar
yuzu-da53bcee60fced902479b72b40ed26b099fa9938.tar.gz
yuzu-da53bcee60fced902479b72b40ed26b099fa9938.tar.bz2
yuzu-da53bcee60fced902479b72b40ed26b099fa9938.tar.lz
yuzu-da53bcee60fced902479b72b40ed26b099fa9938.tar.xz
yuzu-da53bcee60fced902479b72b40ed26b099fa9938.tar.zst
yuzu-da53bcee60fced902479b72b40ed26b099fa9938.zip
Diffstat (limited to '')
-rw-r--r--src/video_core/engines/kepler_compute.h16
1 files changed, 9 insertions, 7 deletions
diff --git a/src/video_core/engines/kepler_compute.h b/src/video_core/engines/kepler_compute.h
index b7f668d88..7f2500aab 100644
--- a/src/video_core/engines/kepler_compute.h
+++ b/src/video_core/engines/kepler_compute.h
@@ -42,10 +42,12 @@ namespace Tegra::Engines {
class KeplerCompute final : public ConstBufferEngineInterface, public EngineInterface {
public:
- explicit KeplerCompute(Core::System& system, VideoCore::RasterizerInterface& rasterizer,
- MemoryManager& memory_manager);
+ explicit KeplerCompute(Core::System& system, MemoryManager& memory_manager);
~KeplerCompute();
+ /// Binds a rasterizer to this engine.
+ void BindRasterizer(VideoCore::RasterizerInterface& rasterizer);
+
static constexpr std::size_t NumConstBuffers = 8;
struct Regs {
@@ -230,11 +232,6 @@ public:
const VideoCore::GuestDriverProfile& AccessGuestDriverProfile() const override;
private:
- Core::System& system;
- VideoCore::RasterizerInterface& rasterizer;
- MemoryManager& memory_manager;
- Upload::State upload_state;
-
void ProcessLaunch();
/// Retrieves information about a specific TIC entry from the TIC buffer.
@@ -242,6 +239,11 @@ private:
/// Retrieves information about a specific TSC entry from the TSC buffer.
Texture::TSCEntry GetTSCEntry(u32 tsc_index) const;
+
+ Core::System& system;
+ MemoryManager& memory_manager;
+ VideoCore::RasterizerInterface* rasterizer = nullptr;
+ Upload::State upload_state;
};
#define ASSERT_REG_POSITION(field_name, position) \