mirror of
https://github.com/yuzu-emu/yuzu-android.git
synced 2025-06-22 04:08:41 -05:00
nv_services: Stub CtrlEventSignal
This commit is contained in:
committed by
FernandoS27
parent
8942047d41
commit
a45643cb3b
@ -95,6 +95,17 @@ void GPU::RegisterEvent(const u32 event_id, const u32 syncpoint_id, const u32 va
|
||||
events[syncpoint_id].emplace_back(event_id, value);
|
||||
}
|
||||
|
||||
void GPU::CancelEvent(const u32 event_id, const u32 syncpoint_id, const u32 value) {
|
||||
auto it = events[syncpoint_id].begin();
|
||||
while (it != events[syncpoint_id].end()) {
|
||||
if (value == it->value) {
|
||||
it = events[syncpoint_id].erase(it);
|
||||
return;
|
||||
}
|
||||
it++;
|
||||
}
|
||||
}
|
||||
|
||||
u32 RenderTargetBytesPerPixel(RenderTargetFormat format) {
|
||||
ASSERT(format != RenderTargetFormat::NONE);
|
||||
|
||||
|
@ -171,7 +171,9 @@ public:
|
||||
|
||||
u32 GetSyncpointValue(const u32 syncpoint_id) const;
|
||||
|
||||
void RegisterEvent(const u32 event_id, const u32 sync_point_id, const u32 value);
|
||||
void RegisterEvent(const u32 event_id, const u32 syncpoint_id, const u32 value);
|
||||
|
||||
void CancelEvent(const u32 event_id, const u32 syncpoint_id, const u32 value);
|
||||
|
||||
/// Returns a const reference to the GPU DMA pusher.
|
||||
const Tegra::DmaPusher& DmaPusher() const;
|
||||
|
Reference in New Issue
Block a user