diff options
| author | 2018-03-24 23:35:06 -0500 | |
|---|---|---|
| committer | 2018-03-24 23:35:06 -0500 | |
| commit | 0ce52b1da2228f3325d94e52bead7335c8b07d1c (patch) | |
| tree | db027be43dcb9fecb99fc7f8e698d3affd7e28c2 /src/core | |
| parent | GPU: Added a function to retrieve the active textures for a shader stage. (diff) | |
| download | yuzu-0ce52b1da2228f3325d94e52bead7335c8b07d1c.tar.gz yuzu-0ce52b1da2228f3325d94e52bead7335c8b07d1c.tar.xz yuzu-0ce52b1da2228f3325d94e52bead7335c8b07d1c.zip | |
GPU: Make the debug_context variable a member of the frontend instead of a global.
Diffstat (limited to 'src/core')
| -rw-r--r-- | src/core/core.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/core/core.h b/src/core/core.h index 552c8f5ee..ade456cfc 100644 --- a/src/core/core.h +++ b/src/core/core.h | |||
| @@ -13,6 +13,7 @@ | |||
| 13 | #include "core/memory.h" | 13 | #include "core/memory.h" |
| 14 | #include "core/perf_stats.h" | 14 | #include "core/perf_stats.h" |
| 15 | #include "core/telemetry_session.h" | 15 | #include "core/telemetry_session.h" |
| 16 | #include "video_core/debug_utils/debug_utils.h" | ||
| 16 | #include "video_core/gpu.h" | 17 | #include "video_core/gpu.h" |
| 17 | 18 | ||
| 18 | class EmuWindow; | 19 | class EmuWindow; |
| @@ -135,6 +136,14 @@ public: | |||
| 135 | return *app_loader; | 136 | return *app_loader; |
| 136 | } | 137 | } |
| 137 | 138 | ||
| 139 | void SetGPUDebugContext(std::shared_ptr<Tegra::DebugContext> context) { | ||
| 140 | debug_context = std::move(context); | ||
| 141 | } | ||
| 142 | |||
| 143 | std::shared_ptr<Tegra::DebugContext> GetGPUDebugContext() const { | ||
| 144 | return debug_context; | ||
| 145 | } | ||
| 146 | |||
| 138 | private: | 147 | private: |
| 139 | /** | 148 | /** |
| 140 | * Initialize the emulated system. | 149 | * Initialize the emulated system. |
| @@ -154,6 +163,8 @@ private: | |||
| 154 | std::unique_ptr<Kernel::Scheduler> scheduler; | 163 | std::unique_ptr<Kernel::Scheduler> scheduler; |
| 155 | std::unique_ptr<Tegra::GPU> gpu_core; | 164 | std::unique_ptr<Tegra::GPU> gpu_core; |
| 156 | 165 | ||
| 166 | std::shared_ptr<Tegra::DebugContext> debug_context; | ||
| 167 | |||
| 157 | Kernel::SharedPtr<Kernel::Process> current_process; | 168 | Kernel::SharedPtr<Kernel::Process> current_process; |
| 158 | 169 | ||
| 159 | /// When true, signals that a reschedule should happen | 170 | /// When true, signals that a reschedule should happen |