|
@@ -131,7 +131,7 @@ class MemoryManager;
|
|
|
|
|
|
|
|
class GPU {
|
|
class GPU {
|
|
|
public:
|
|
public:
|
|
|
- explicit GPU(Core::System& system, VideoCore::RendererBase& renderer);
|
|
|
|
|
|
|
+ explicit GPU(Core::System& system, VideoCore::RendererBase& renderer, bool is_async);
|
|
|
|
|
|
|
|
virtual ~GPU();
|
|
virtual ~GPU();
|
|
|
|
|
|
|
@@ -184,6 +184,10 @@ public:
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ bool IsAsync() const {
|
|
|
|
|
+ return is_async;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
/// Returns a const reference to the GPU DMA pusher.
|
|
/// Returns a const reference to the GPU DMA pusher.
|
|
|
const Tegra::DmaPusher& DmaPusher() const;
|
|
const Tegra::DmaPusher& DmaPusher() const;
|
|
|
|
|
|
|
@@ -298,6 +302,8 @@ private:
|
|
|
std::array<std::list<Event>, Service::Nvidia::MaxSyncPoints> events;
|
|
std::array<std::list<Event>, Service::Nvidia::MaxSyncPoints> events;
|
|
|
|
|
|
|
|
std::mutex sync_mutex;
|
|
std::mutex sync_mutex;
|
|
|
|
|
+
|
|
|
|
|
+ const bool is_async;
|
|
|
};
|
|
};
|
|
|
|
|
|
|
|
#define ASSERT_REG_POSITION(field_name, position) \
|
|
#define ASSERT_REG_POSITION(field_name, position) \
|