mirror of
https://git.eden-emu.dev/eden-emu/eden.git
synced 2026-08-23 07:56:52 +00:00
3aa0d46259
reworked a bit to remove references of parent objects and instead pass as arguments to methods to prevent useless reloads Signed-off-by: lizzie <lizzie@eden-emu.dev> Co-authored-by: maufeat <sahyno1996@gmail.com> Reviewed-on: https://git.eden-emu.dev/eden-emu/eden/pulls/3908 Reviewed-by: Maufeat <sahyno1996@gmail.com> Reviewed-by: crueter <crueter@eden-emu.dev>
37 lines
733 B
C++
37 lines
733 B
C++
// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project
|
|
// SPDX-License-Identifier: GPL-3.0-or-later
|
|
|
|
// SPDX-FileCopyrightText: 2021 yuzu Emulator Project
|
|
// SPDX-License-Identifier: GPL-3.0-or-later
|
|
|
|
#pragma once
|
|
|
|
#include <memory>
|
|
#include <mutex>
|
|
#include <ankerl/unordered_dense.h>
|
|
|
|
#include "video_core/dma_pusher.h"
|
|
|
|
namespace Tegra {
|
|
|
|
class GPU;
|
|
|
|
namespace Control {
|
|
|
|
struct ChannelState;
|
|
|
|
class Scheduler {
|
|
public:
|
|
void Push(GPU& gpu, s32 channel, CommandList&& entries);
|
|
|
|
void DeclareChannel(std::shared_ptr<ChannelState> new_channel);
|
|
|
|
private:
|
|
ankerl::unordered_dense::map<s32, std::shared_ptr<ChannelState>> channels;
|
|
std::mutex scheduling_guard;
|
|
};
|
|
|
|
} // namespace Control
|
|
|
|
} // namespace Tegra
|