src: Move certain headers in common

This commit is contained in:
GPUCode 2023-11-05 13:41:10 +02:00
parent 6e28ac711f
commit 17aefc1aef
73 changed files with 98 additions and 106 deletions

View file

@ -2,7 +2,7 @@
#include <xxh3.h>
#include "Emulator/Util/singleton.h"
#include "common/singleton.h"
void* GPU::memoryCreateObj(u64 submit_id, HLE::Libs::Graphics::GraphicCtx* ctx, void* todo /*CommandBuffer?*/, u64 virtual_addr, u64 size,
const GPUObject& info) {

View file

@ -1,7 +1,7 @@
#pragma once
#include <core/PS4/HLE/Graphics/graphics_ctx.h>
#include <types.h>
#include "common/types.h"
#include <mutex>
#include <vector>

View file

@ -1,5 +1,5 @@
#include "tile_manager.h"
#include "Emulator/Util/singleton.h"
#include "common/singleton.h"
#include <mutex>
namespace GPU {

View file

@ -1,6 +1,6 @@
#pragma once
#include "types.h"
#include "common/types.h"
namespace GPU {

View file

@ -1,8 +1,8 @@
#include "video_out_buffer.h"
#include <Util/log.h>
#include "common/log.h"
#include "debug.h"
#include "common/debug.h"
#include <vulkan_util.h>
#include "tile_manager.h"

View file

@ -1,6 +1,6 @@
#pragma once
#include <types.h>
#include "common/types.h"
#include "gpu_memory.h"

View file

@ -1,7 +1,7 @@
#include "video_out_ctx.h"
#include <core/PS4/HLE/LibKernel.h>
#include <debug.h>
#include "common/debug.h"
#include <core/hle/libraries/libkernel/time_management.h>
namespace HLE::Graphics::Objects {

View file

@ -1,6 +1,6 @@
#pragma once
#include <types.h>
#include "common/types.h"
#include <vector>
#include <vulkan/vulkan_core.h>
#include <mutex>

View file

@ -1,6 +1,6 @@
#include "graphics_render.h"
#include <fmt/core.h>
#include "Emulator/Util/singleton.h"
#include "common/singleton.h"
#include "emulator.h"
static thread_local GPU::CommandPool g_command_pool;

View file

@ -7,15 +7,15 @@
#include <core/PS4/HLE/Libs.h>
#include <core/PS4/HLE/UserManagement/UsrMngCodes.h>
#include <Util/config.h>
#include <Util/log.h>
#include <debug.h>
#include "common/log.h"
#include "common/debug.h"
#include <stdio.h>
#include <magic_enum.hpp>
#include <string>
#include "Objects/video_out_ctx.h"
#include "Emulator/Util/singleton.h"
#include "common/singleton.h"
#include "emulator.h"
#include "graphics_render.h"

View file

@ -1,7 +1,6 @@
#pragma once
#include <core/PS4/HLE/Kernel/event_queues.h>
#include <core/PS4/Loader/SymbolsResolver.h>
#include <types.h>
#include <string>
@ -111,4 +110,4 @@ s32 PS4_SYSV_ABI sceVideoOutGetFlipStatus(s32 handle, SceVideoOutFlipStatus* sta
s32 PS4_SYSV_ABI sceVideoOutGetResolutionStatus(s32 handle, SceVideoOutResolutionStatus* status);
s32 PS4_SYSV_ABI sceVideoOutOpen(SceUserServiceUserId userId, s32 busType, s32 index, const void* param);
s32 PS4_SYSV_ABI sceVideoOutClose(s32 handle);
} // namespace HLE::Libs::Graphics::VideoOut
} // namespace HLE::Libs::Graphics::VideoOut

View file

@ -2,7 +2,7 @@
#include <Lib/Timer.h>
#include "debug.h"
#include "common/debug.h"
namespace HLE::Kernel::Objects {
EqueueInternal::~EqueueInternal() {}

View file

@ -1,6 +1,6 @@
#pragma once
#include <types.h>
#include "common/types.h"
#include <mutex>
#include <string>
#include <vector>
@ -76,4 +76,4 @@ class EqueueInternal {
std::vector<EqueueEvent> m_events;
std::condition_variable m_cond;
};
}; // namespace HLE::Kernel::Objects
}; // namespace HLE::Kernel::Objects

View file

@ -1,5 +1,5 @@
#pragma once
#include <types.h>
#include "common/types.h"
#include <core/virtual_memory.h>
#include <core/PS4/GPU/gpu_memory.h>
#include <mutex>

View file

@ -1,6 +1,6 @@
#include "ThreadManagement.h"
#include <debug.h>
#include "common/debug.h"
#include "../ErrorCodes.h"

View file

@ -3,7 +3,7 @@
#include <pthread.h>
#include <sched.h>
#include "../../../../types.h"
#include "common/types.h"
#include <string>
namespace HLE::Libs::LibKernel::ThreadManagement {

View file

@ -1,6 +1,6 @@
#include "cpu_management.h"
#include "Util/config.h"
#include <Util/log.h>
#include "common/log.h"
#include <core/PS4/HLE/Libs.h>
namespace HLE::Libs::LibKernel::CPUManagement {

View file

@ -1,5 +1,5 @@
#pragma once
#include <types.h>
#include "common/types.h"
namespace HLE::Libs::LibKernel::CPUManagement {
int PS4_SYSV_ABI sceKernelIsNeoMode();

View file

@ -2,8 +2,8 @@
#include <core/PS4/HLE/ErrorCodes.h>
#include <core/PS4/HLE/Libs.h>
#include <Util/log.h>
#include <debug.h>
#include "common/log.h"
#include "common/debug.h"
namespace HLE::Libs::LibKernel::EventQueues {
constexpr bool log_file_equeues = true; // disable it to disable logging

View file

@ -1,7 +1,5 @@
#pragma once
#include <types.h>
#include "Objects/event_queue.h"
namespace HLE::Libs::LibKernel::EventQueues {
@ -11,4 +9,4 @@ using SceKernelEqueue = Kernel::Objects::EqueueInternal*;
int PS4_SYSV_ABI sceKernelCreateEqueue(SceKernelEqueue* eq, const char* name);
int PS4_SYSV_ABI sceKernelWaitEqueue(SceKernelEqueue eq, HLE::Kernel::Objects::SceKernelEvent* ev, int num, int* out, SceKernelUseconds *timo);
}; // namespace HLE::Libs::LibKernel::EventQueues
}; // namespace HLE::Libs::LibKernel::EventQueues

View file

@ -2,13 +2,13 @@
#include <core/PS4/GPU/gpu_memory.h>
#include <core/virtual_memory.h>
#include <Util/log.h>
#include <debug.h>
#include "common/log.h"
#include "common/debug.h"
#include <bit>
#include <magic_enum.hpp>
#include "Emulator/Util/singleton.h"
#include "common/singleton.h"
#include "../ErrorCodes.h"
#include "../Libs.h"
#include "Objects/physical_memory.h"

View file

@ -1,6 +1,6 @@
#pragma once
#include <types.h>
#include "common/types.h"
// constants

View file

@ -1,10 +1,10 @@
#include "LibKernel.h"
#include <Util/log.h>
#include <debug.h>
#include "common/log.h"
#include "common/debug.h"
#include <windows.h>
#include "Emulator/Util/singleton.h"
#include "common/singleton.h"
#include "../Loader/Elf.h"
#include "Kernel/Objects/physical_memory.h"
#include "Kernel/cpu_management.h"

View file

@ -1,8 +1,8 @@
#include "LibSceGnmDriver.h"
#include "Libs.h"
#include "../Loader/Elf.h"
#include <Util/log.h>
#include <debug.h>
#include "common/log.h"
#include "common/debug.h"
#include <core/PS4/GPU/gpu_memory.h>
#include <emulator.h>

View file

@ -1,9 +1,9 @@
#include "Linker.h"
#include "../virtual_memory.h"
#include <Util/log.h>
#include "common/log.h"
#include <fmt/core.h>
#include <Zydis/Zydis.h>
#include <Util/string_util.h>
#include "common/string_util.h"
#include "Util/aerolib.h"
#include "Loader/SymbolsResolver.h"
#include "HLE/Kernel/ThreadManagement.h"

View file

@ -1,7 +1,7 @@
#include "Elf.h"
#include <Util/log.h>
#include <debug.h>
#include "common/log.h"
#include "common/debug.h"
#include <fmt/core.h>
constexpr bool log_file_loader = true; // disable it to disable logging

View file

@ -5,8 +5,8 @@
#include <span>
#include <vector>
#include "../../../types.h"
#include "../../FsFile.h"
#include "common/types.h"
#include "common/fs_file.h"
struct self_header
{

View file

@ -1,6 +1,6 @@
#include "../../../types.h"
#include "common/types.h"
#include "SymbolsResolver.h"
#include <Util/log.h>
#include "common/log.h"
void SymbolsResolver::AddSymbol(const SymbolRes& s, u64 virtual_addr)
{

View file

@ -3,8 +3,7 @@
#include <string>
#include <vector>
#include <unordered_map>
#include "../../../types.h"
#include "common/types.h"
struct SymbolRecord
{
@ -37,4 +36,4 @@ public:
private:
std::vector<SymbolRecord> m_symbols;
};
};

View file

@ -2,7 +2,7 @@
#include "Util/aerolib.h"
#include "Util/log.h"
#include "common/log.h"
// Helper to provide stub implementations for missing functions
//

View file

@ -1,4 +1,4 @@
#include "types.h"
#include "common/types.h"
u64 UnresolvedStub();
u64 GetStub(const char *nid);

View file

@ -1,10 +1,10 @@
#include "aerolib.h"
#include "types.h"
#include "common/types.h"
#include <string.h>
#include "Util/log.h"
#include "common/log.h"
namespace aerolib {