Use Vector for Kernel Handles + Remove Redundant Includes

This commit is contained in:
◱ PixelyIon
2020-09-25 20:05:10 +05:30
committed by ◱ PixelyIon
parent 20559c5dca
commit 2764bd7c96
146 changed files with 70 additions and 212 deletions

View File

@ -3,8 +3,6 @@
#pragma once
#include <array>
#include <common.h>
#include "engine.h"
namespace skyline {
@ -179,4 +177,4 @@ namespace skyline {
};
};
}
}
}

View File

@ -2,7 +2,6 @@
// Copyright © 2020 Skyline Team and Contributors (https://github.com/skyline-emu/)
#include <gpu.h>
#include <gpu/syncpoint.h>
#include "maxwell_3d.h"
namespace skyline::gpu::engine {

View File

@ -3,8 +3,6 @@
#pragma once
#include <array>
#include <common.h>
#include <gpu/texture.h>
#include <gpu/macro_interpreter.h>
#include "engine.h"
@ -561,7 +559,7 @@ namespace skyline {
static_assert(sizeof(Registers) == (constant::Maxwell3DRegisterCounter * sizeof(u32)));
#pragma pack(pop)
Registers registers{}; //!< The maxwell 3D register space
Registers registers{}; //!< The Maxwell 3D register space
Registers shadowRegisters{}; //!< The shadow registers, their function is controlled by the 'shadowRamControl' register
std::array<u32, 0x10000> macroCode{}; //!< This is used to store GPU macros, the 256kb size is from Ryujinx
@ -576,4 +574,4 @@ namespace skyline {
void CallMethod(MethodParams params);
};
}
}
}

View File

@ -3,7 +3,6 @@
#pragma once
#include <common.h>
#include <queue>
#include "engines/engine.h"
#include "engines/gpfifo.h"

View File

@ -1,7 +1,6 @@
// SPDX-License-Identifier: MPL-2.0
// Copyright © 2020 Skyline Team and Contributors (https://github.com/skyline-emu/)
#include <kernel/types/KProcess.h>
#include "engines/maxwell_3d.h"
#include "memory_manager.h"
#include "macro_interpreter.h"

View File

@ -1,7 +1,6 @@
// SPDX-License-Identifier: MPL-2.0
// Copyright © 2020 Skyline Team and Contributors (https://github.com/skyline-emu/)
#include <common.h>
#include "syncpoint.h"
namespace skyline::gpu {

View File

@ -24,8 +24,8 @@ namespace skyline {
std::function<void()> callback;
};
Mutex waiterLock{}; //!< Locks insertions and deletions of waiters
std::map<u64, Waiter> waiterMap{};
Mutex waiterLock; //!< Locks insertions and deletions of waiters
std::map<u64, Waiter> waiterMap;
u64 nextWaiterId{1};
public: