aboutsummaryrefslogtreecommitdiff
path: root/src/video_core/gpu.cpp
diff options
context:
space:
mode:
authordarktux <darktux@y2nlvhmmk5jnsvechppxnbyzmmv3vbl7dvzn6ltwcdbpgxixp3clkgqd.onion>2024-04-05 01:58:29 +0200
committerBriar <205427297+icybriarr@users.noreply.github.com>2025-04-04 03:40:46 +0200
commit616619c8f754dc1a783d91aa5b32f45e8df74172 (patch)
tree4aa2bdd001cbf38b58439f59e62ee7705af6a253 /src/video_core/gpu.cpp
parent19a93a3fd1dd6a7db074d254990db073d62b08e3 (diff)
Port changes from Early Access
Diffstat (limited to 'src/video_core/gpu.cpp')
-rw-r--r--src/video_core/gpu.cpp33
1 files changed, 0 insertions, 33 deletions
diff --git a/src/video_core/gpu.cpp b/src/video_core/gpu.cpp
index 6d0b323395..c816f47fec 100644
--- a/src/video_core/gpu.cpp
+++ b/src/video_core/gpu.cpp
@@ -250,30 +250,6 @@ struct GPU::Impl {
gpu_thread.SubmitList(channel, std::move(entries));
}
- /// Push GPU command buffer entries to be processed
- void PushCommandBuffer(u32 id, Tegra::ChCommandHeaderList& entries) {
- if (!use_nvdec) {
- return;
- }
-
- if (!cdma_pushers.contains(id)) {
- cdma_pushers.insert_or_assign(id, std::make_unique<Tegra::CDmaPusher>(host1x));
- }
-
- // SubmitCommandBuffer would make the nvdec operations async, this is not currently working
- // TODO(ameerj): RE proper async nvdec operation
- // gpu_thread.SubmitCommandBuffer(std::move(entries));
- cdma_pushers[id]->ProcessEntries(std::move(entries));
- }
-
- /// Frees the CDMAPusher instance to free up resources
- void ClearCdmaInstance(u32 id) {
- const auto iter = cdma_pushers.find(id);
- if (iter != cdma_pushers.end()) {
- cdma_pushers.erase(iter);
- }
- }
-
/// Notify rasterizer that any caches of the specified region should be flushed to Switch memory
void FlushRegion(DAddr addr, u64 size) {
gpu_thread.FlushRegion(addr, size);
@@ -362,7 +338,6 @@ struct GPU::Impl {
Core::System& system;
Host1x::Host1x& host1x;
- std::map<u32, std::unique_ptr<Tegra::CDmaPusher>> cdma_pushers;
std::unique_ptr<VideoCore::RendererBase> renderer;
VideoCore::RasterizerInterface* rasterizer = nullptr;
const bool use_nvdec;
@@ -556,14 +531,6 @@ void GPU::PushGPUEntries(s32 channel, Tegra::CommandList&& entries) {
impl->PushGPUEntries(channel, std::move(entries));
}
-void GPU::PushCommandBuffer(u32 id, Tegra::ChCommandHeaderList& entries) {
- impl->PushCommandBuffer(id, entries);
-}
-
-void GPU::ClearCdmaInstance(u32 id) {
- impl->ClearCdmaInstance(id);
-}
-
VideoCore::RasterizerDownloadArea GPU::OnCPURead(PAddr addr, u64 size) {
return impl->OnCPURead(addr, size);
}