Cleanup some includes

This commit is contained in:
Megamouse 2020-10-30 21:26:22 +01:00
parent 5d55e509ec
commit 2cee26c3e7
71 changed files with 158 additions and 132 deletions

View file

@ -1,4 +1,5 @@
#include "stdafx.h" #include "stdafx.h"
#include "Emu/System.h"
#include "Emu/Cell/SPUThread.h" #include "Emu/Cell/SPUThread.h"
#include "Emu/Cell/PPUThread.h" #include "Emu/Cell/PPUThread.h"
#include "Emu/Cell/RawSPUThread.h" #include "Emu/Cell/RawSPUThread.h"

View file

@ -1,5 +1,7 @@
#include "stdafx.h" #include "stdafx.h"
#include "StaticHLE.h" #include "StaticHLE.h"
#include "Emu/Cell/PPUModule.h"
#include "Emu/Cell/PPUOpcodes.h"
LOG_CHANNEL(static_hle); LOG_CHANNEL(static_hle);

View file

@ -1,8 +1,7 @@
#pragma once #pragma once
#include "../../Utilities/types.h" #include "../../Utilities/types.h"
#include "Emu/Cell/PPUModule.h" #include "Emu/Memory/vm_ptr.h"
#include "Emu/Cell/PPUOpcodes.h"
#include <vector> #include <vector>
struct shle_pattern struct shle_pattern

View file

@ -1,4 +1,5 @@
#include "stdafx.h" #include "stdafx.h"
#include "Emu/System.h"
#include "Emu/IdManager.h" #include "Emu/IdManager.h"
#include "Emu/Cell/PPUModule.h" #include "Emu/Cell/PPUModule.h"
#include "Emu/Cell/lv2/sys_sync.h" #include "Emu/Cell/lv2/sys_sync.h"

View file

@ -1,4 +1,5 @@
#include "stdafx.h" #include "stdafx.h"
#include "Emu/System.h"
#include "Emu/Cell/PPUModule.h" #include "Emu/Cell/PPUModule.h"
#include "Emu/Cell/lv2/sys_process.h" #include "Emu/Cell/lv2/sys_process.h"
@ -157,6 +158,11 @@ f32 audio_ringbuffer::set_frequency_ratio(f32 new_ratio)
return frequency_ratio; return frequency_ratio;
} }
u64 audio_ringbuffer::get_timestamp() const
{
return get_system_time() - Emu.GetPauseTime();
}
void audio_ringbuffer::enqueue(const float* in_buffer) void audio_ringbuffer::enqueue(const float* in_buffer)
{ {
AUDIT(cur_pos < cfg.num_allocated_buffers); AUDIT(cur_pos < cfg.num_allocated_buffers);

View file

@ -5,6 +5,7 @@
#include "Emu/Memory/vm.h" #include "Emu/Memory/vm.h"
#include "Emu/Audio/AudioBackend.h" #include "Emu/Audio/AudioBackend.h"
#include "Emu/Audio/AudioDumper.h" #include "Emu/Audio/AudioDumper.h"
#include "Emu/system_config_types.h"
struct lv2_event_queue; struct lv2_event_queue;
@ -306,10 +307,7 @@ public:
return buffer[num].get(); return buffer[num].get();
} }
u64 get_timestamp() const u64 get_timestamp() const;
{
return get_system_time() - Emu.GetPauseTime();
}
float* get_current_buffer() const float* get_current_buffer() const
{ {

View file

@ -1,6 +1,7 @@
#include "stdafx.h" #include "stdafx.h"
#include "cellCamera.h" #include "cellCamera.h"
#include "Emu/System.h"
#include "Emu/Cell/PPUModule.h" #include "Emu/Cell/PPUModule.h"
#include "Emu/Cell/lv2/sys_event.h" #include "Emu/Cell/lv2/sys_event.h"
#include "Emu/IdManager.h" #include "Emu/IdManager.h"

View file

@ -1,4 +1,5 @@
#include "stdafx.h" #include "stdafx.h"
#include "Emu/System.h"
#include "Emu/IdManager.h" #include "Emu/IdManager.h"
#include "Emu/Cell/PPUModule.h" #include "Emu/Cell/PPUModule.h"
#include "Emu/Cell/lv2/sys_sync.h" #include "Emu/Cell/lv2/sys_sync.h"

View file

@ -3,6 +3,7 @@
#include "Emu/System.h" #include "Emu/System.h"
#include "Emu/VFS.h" #include "Emu/VFS.h"
#include "Emu/IdManager.h" #include "Emu/IdManager.h"
#include "Emu/Cell/ErrorCodes.h"
#include "Emu/Cell/PPUModule.h" #include "Emu/Cell/PPUModule.h"
#include "Emu/Cell/lv2/sys_fs.h" #include "Emu/Cell/lv2/sys_fs.h"
#include "Emu/Cell/lv2/sys_sync.h" #include "Emu/Cell/lv2/sys_sync.h"

View file

@ -1,7 +1,5 @@
#pragma once #pragma once
#include "Emu/Cell/ErrorCodes.h"
#include "Emu/Memory/vm_ptr.h" #include "Emu/Memory/vm_ptr.h"
// Return Codes // Return Codes

View file

@ -3,9 +3,9 @@
#include "Emu/Cell/PPUModule.h" #include "Emu/Cell/PPUModule.h"
#include "Emu/Memory/vm.h" #include "Emu/Memory/vm.h"
#include "Emu/RSX/GSRender.h"
#include "Emu/Cell/lv2/sys_ppu_thread.h" #include "Emu/Cell/lv2/sys_ppu_thread.h"
#include "Emu/Cell/lv2/sys_rsx.h" #include "Emu/Cell/lv2/sys_rsx.h"
#include "Emu/RSX/RSXThread.h"
#include "cellGcmSys.h" #include "cellGcmSys.h"
#include "sysPrxForUser.h" #include "sysPrxForUser.h"

View file

@ -1,4 +1,5 @@
#include "stdafx.h" #include "stdafx.h"
#include "Emu/System.h"
#include "Emu/Cell/PPUModule.h" #include "Emu/Cell/PPUModule.h"
#include "Emu/Cell/PPUThread.h" #include "Emu/Cell/PPUThread.h"
#include "Emu/Cell/lv2/sys_sync.h" #include "Emu/Cell/lv2/sys_sync.h"

View file

@ -1,6 +1,5 @@
#pragma once #pragma once
#include "Emu/Io/PadHandler.h"
#include "Utilities/BEType.h" #include "Utilities/BEType.h"
#include <array> #include <array>

View file

@ -1,6 +1,7 @@
#pragma once #pragma once
#include "Utilities/BEType.h" #include "Utilities/BEType.h"
#include "Emu/Memory/vm_ptr.h"
// Return Codes // Return Codes
enum CellRtcError enum CellRtcError

View file

@ -1,4 +1,5 @@
#include "stdafx.h" #include "stdafx.h"
#include "Emu/System.h"
#include "Emu/VFS.h" #include "Emu/VFS.h"
#include "Emu/localized_string.h" #include "Emu/localized_string.h"
#include "Emu/Cell/lv2/sys_fs.h" #include "Emu/Cell/lv2/sys_fs.h"

View file

@ -1,6 +1,7 @@
#include "stdafx.h" #include "stdafx.h"
#include "Emu/System.h" #include "Emu/System.h"
#include "Emu/IdManager.h" #include "Emu/IdManager.h"
#include "Emu/VFS.h"
#include "Emu/Cell/PPUModule.h" #include "Emu/Cell/PPUModule.h"
#include "cellScreenshot.h" #include "cellScreenshot.h"

View file

@ -1,6 +1,6 @@
#pragma once #pragma once
#include "Emu/VFS.h" #include "Emu/Memory/vm_ptr.h"
// Return Codes // Return Codes
enum CellScreenShotError : u32 enum CellScreenShotError : u32

View file

@ -1,4 +1,5 @@
#include "stdafx.h" #include "stdafx.h"
#include "Emu/System.h"
#include "Emu/IdManager.h" #include "Emu/IdManager.h"
#include "Emu/Memory/vm_reservation.h" #include "Emu/Memory/vm_reservation.h"
#include "Emu/Cell/PPUModule.h" #include "Emu/Cell/PPUModule.h"

View file

@ -1,5 +1,6 @@
#include "stdafx.h" #include "stdafx.h"
#include "Emu/system_config_types.h" #include "Emu/system_config_types.h"
#include "Emu/Cell/ErrorCodes.h"
#include "Emu/Cell/PPUModule.h" #include "Emu/Cell/PPUModule.h"
#include "Emu/IdManager.h" #include "Emu/IdManager.h"
#include "Emu/RSX/rsx_utils.h" #include "Emu/RSX/rsx_utils.h"

View file

@ -1,6 +1,4 @@
#pragma once #pragma once
#include "Emu/Cell/ErrorCodes.h"
#include "Emu/Memory/vm_ptr.h" #include "Emu/Memory/vm_ptr.h"

View file

@ -1,4 +1,5 @@
#include "stdafx.h" #include "stdafx.h"
#include "Emu/System.h"
#include "Emu/VFS.h" #include "Emu/VFS.h"
#include "Emu/IdManager.h" #include "Emu/IdManager.h"
#include "Emu/Cell/PPUModule.h" #include "Emu/Cell/PPUModule.h"

View file

@ -1,4 +1,5 @@
#include "stdafx.h" #include "stdafx.h"
#include "Emu/System.h"
#include "Emu/Cell/PPUModule.h" #include "Emu/Cell/PPUModule.h"
#include "Emu/Cell/lv2/sys_lwmutex.h" #include "Emu/Cell/lv2/sys_lwmutex.h"

View file

@ -7,6 +7,7 @@
#include "Crypto/sha1.h" #include "Crypto/sha1.h"
#include "Crypto/unself.h" #include "Crypto/unself.h"
#include "Loader/ELF.h" #include "Loader/ELF.h"
#include "Emu/System.h"
#include "Emu/VFS.h" #include "Emu/VFS.h"
#include "Emu/Cell/PPUOpcodes.h" #include "Emu/Cell/PPUOpcodes.h"

View file

@ -4,7 +4,6 @@
#include "Emu/Cell/SPUInterpreter.h" #include "Emu/Cell/SPUInterpreter.h"
#include "Emu/Memory/vm.h" #include "Emu/Memory/vm.h"
#include "MFC.h" #include "MFC.h"
#include "Emu/Memory/vm.h"
#include "Utilities/BEType.h" #include "Utilities/BEType.h"
#include <map> #include <map>

View file

@ -1,4 +1,5 @@
#include "stdafx.h" #include "stdafx.h"
#include "Emu/System.h"
#include "Emu/Memory/vm_ptr.h" #include "Emu/Memory/vm_ptr.h"
#include "Emu/Cell/PPUFunction.h" #include "Emu/Cell/PPUFunction.h"

View file

@ -1,4 +1,5 @@
#include "stdafx.h" #include "stdafx.h"
#include "Emu/System.h"
#include "Emu/Memory/vm.h" #include "Emu/Memory/vm.h"
#include "Emu/IdManager.h" #include "Emu/IdManager.h"

View file

@ -4,6 +4,7 @@
#include "Emu/Cell/PPUThread.h" #include "Emu/Cell/PPUThread.h"
#include "Crypto/unedat.h" #include "Crypto/unedat.h"
#include "Emu/System.h"
#include "Emu/VFS.h" #include "Emu/VFS.h"
#include "Emu/IdManager.h" #include "Emu/IdManager.h"
#include "Utilities/StrUtil.h" #include "Utilities/StrUtil.h"

View file

@ -1,5 +1,6 @@
#include "stdafx.h" #include "stdafx.h"
#include "sys_gamepad.h" #include "sys_gamepad.h"
#include "Emu/Cell/ErrorCodes.h"
LOG_CHANNEL(sys_gamepad); LOG_CHANNEL(sys_gamepad);

View file

@ -1,6 +1,5 @@
#pragma once #pragma once
#include "Emu/Cell/ErrorCodes.h"
#include "Emu/Memory/vm_ptr.h" #include "Emu/Memory/vm_ptr.h"
//Syscalls //Syscalls

View file

@ -4,6 +4,7 @@
#include "Utilities/VirtualMemory.h" #include "Utilities/VirtualMemory.h"
#include "Emu/Memory/vm_locking.h" #include "Emu/Memory/vm_locking.h"
#include "Emu/CPU/CPUThread.h" #include "Emu/CPU/CPUThread.h"
#include "Emu/Cell/ErrorCodes.h"
#include "Emu/IdManager.h" #include "Emu/IdManager.h"
#include <shared_mutex> #include <shared_mutex>

View file

@ -1,6 +1,5 @@
#pragma once #pragma once
#include "Emu/Cell/ErrorCodes.h"
#include "Emu/Memory/vm_ptr.h" #include "Emu/Memory/vm_ptr.h"
#include "Emu/IdManager.h" #include "Emu/IdManager.h"

View file

@ -1,5 +1,6 @@
#include "stdafx.h" #include "stdafx.h"
#include "Emu/Cell/ErrorCodes.h"
#include "Emu/Memory/vm_ptr.h" #include "Emu/Memory/vm_ptr.h"
#include "Emu/VFS.h" #include "Emu/VFS.h"
#include "Emu/IdManager.h" #include "Emu/IdManager.h"

View file

@ -1,8 +1,7 @@
#pragma once #pragma once
#include "Emu/Cell/PPUAnalyser.h" #include "Emu/Cell/PPUAnalyser.h"
#include "sys_sync.h" #include "sys_sync.h"
#include "Emu/Cell/ErrorCodes.h"
struct lv2_overlay final : lv2_obj, ppu_module struct lv2_overlay final : lv2_obj, ppu_module
{ {

View file

@ -1,6 +1,5 @@
#pragma once #pragma once
#include "sys_sync.h"
#include "Emu/Memory/vm_ptr.h" #include "Emu/Memory/vm_ptr.h"
class ppu_thread; class ppu_thread;

View file

@ -1,4 +1,4 @@
#pragma once #pragma once
#include "Crypto/unself.h" #include "Crypto/unself.h"
#include "Emu/Memory/vm_ptr.h" #include "Emu/Memory/vm_ptr.h"

View file

@ -1,4 +1,4 @@
#pragma once #pragma once
#include "sys_sync.h" #include "sys_sync.h"

View file

@ -2,8 +2,8 @@
#include "sys_rsx.h" #include "sys_rsx.h"
#include "Emu/Cell/PPUModule.h" #include "Emu/Cell/PPUModule.h"
#include "Emu/RSX/GSRender.h"
#include "Emu/Cell/ErrorCodes.h" #include "Emu/Cell/ErrorCodes.h"
#include "Emu/RSX/RSXThread.h"
#include "sys_event.h" #include "sys_event.h"

View file

@ -10,7 +10,6 @@
#include "Emu/IdManager.h" #include "Emu/IdManager.h"
#include "Emu/IPC.h" #include "Emu/IPC.h"
#include "Emu/system_config.h" #include "Emu/system_config.h"
#include "Emu/System.h"
#include <deque> #include <deque>
#include <thread> #include <thread>

View file

@ -1,13 +1,16 @@
#include "stdafx.h" #include "stdafx.h"
#include "sys_usbd.h" #include "sys_usbd.h"
#include "sys_ppu_thread.h"
#include "sys_sync.h"
#include <queue> #include <queue>
#include <thread> #include <thread>
#include "Emu/System.h"
#include "Emu/Memory/vm.h" #include "Emu/Memory/vm.h"
#include "Emu/IdManager.h"
#include "Emu/Cell/PPUThread.h" #include "Emu/Cell/PPUThread.h"
#include "Emu/Cell/ErrorCodes.h" #include "Emu/Cell/ErrorCodes.h"
#include "sys_ppu_thread.h"
#include "Emu/Io/usb_device.h" #include "Emu/Io/usb_device.h"
#include "Emu/Io/Skylander.h" #include "Emu/Io/Skylander.h"

View file

@ -2,6 +2,7 @@
#include "sys_vm.h" #include "sys_vm.h"
#include "Emu/IdManager.h" #include "Emu/IdManager.h"
#include "Emu/Cell/ErrorCodes.h"
#include "Emu/Cell/PPUThread.h" #include "Emu/Cell/PPUThread.h"
#include "Emu/Memory/vm_locking.h" #include "Emu/Memory/vm_locking.h"

View file

@ -1,7 +1,6 @@
#pragma once #pragma once
#include "Emu/Memory/vm_ptr.h" #include "Emu/Memory/vm_ptr.h"
#include "Emu/Cell/ErrorCodes.h"
#include "sys_memory.h" #include "sys_memory.h"
#include <array> #include <array>

View file

@ -2,6 +2,11 @@
#include "pad_config.h" #include "pad_config.h"
#include "Emu/System.h" #include "Emu/System.h"
cfg_input::cfg_input()
: cfg_name(fs::get_config_dir() + "/config_input.yml")
{
}
bool cfg_input::load(const std::string& title_id) bool cfg_input::load(const std::string& title_id)
{ {
cfg_name = Emulator::GetCustomInputConfigPath(title_id); cfg_name = Emulator::GetCustomInputConfigPath(title_id);

View file

@ -3,7 +3,6 @@
#include "pad_config_types.h" #include "pad_config_types.h"
#include "Utilities/Config.h" #include "Utilities/Config.h"
#include "Utilities/File.h"
namespace pad namespace pad
{ {
@ -22,7 +21,9 @@ struct cfg_player final : cfg::node
struct cfg_input final : cfg::node struct cfg_input final : cfg::node
{ {
std::string cfg_name = fs::get_config_dir() + "/config_input.yml"; cfg_input();
std::string cfg_name;
cfg_player player1{ this, "Player 1 Input", pad_handler::null }; cfg_player player1{ this, "Player 1 Input", pad_handler::null };
cfg_player player2{ this, "Player 2 Input", pad_handler::null }; cfg_player player2{ this, "Player 2 Input", pad_handler::null };

View file

@ -12,7 +12,7 @@
#include "Utilities/address_range.h" #include "Utilities/address_range.h"
#include "Emu/CPU/CPUThread.h" #include "Emu/CPU/CPUThread.h"
#include "Emu/Cell/lv2/sys_memory.h" #include "Emu/Cell/lv2/sys_memory.h"
#include "Emu/RSX/GSRender.h" #include "Emu/RSX/RSXThread.h"
#include "Emu/Cell/SPURecompiler.h" #include "Emu/Cell/SPURecompiler.h"
#include "Emu/perf_meter.hpp" #include "Emu/perf_meter.hpp"
#include <thread> #include <thread>

View file

@ -1,6 +1,5 @@
#include "stdafx.h" #include "stdafx.h"
#include "Emu/System.h" #include "Emu/System.h"
#include "Emu/NP/rpcn_client.h"
#include "np_structs_extra.h" #include "np_structs_extra.h"
LOG_CHANNEL(sceNp2); LOG_CHANNEL(sceNp2);

View file

@ -1,9 +1,6 @@
#pragma once #pragma once
#include "Emu/Memory/vm_ptr.h"
#include "Emu/Cell/Modules/sceNp.h"
#include "Emu/Cell/Modules/sceNp2.h" #include "Emu/Cell/Modules/sceNp2.h"
#include "Emu/NP/rpcn_client.h"
namespace extra_nps namespace extra_nps
{ {

View file

@ -3,7 +3,7 @@
#include "Emu/Cell/lv2/sys_rsx.h" #include "Emu/Cell/lv2/sys_rsx.h"
#include "Emu/Cell/lv2/sys_memory.h" #include "Emu/Cell/lv2/sys_memory.h"
#include "Emu/RSX/GSRender.h" #include "Emu/RSX/RSXThread.h"
#include <map> #include <map>
#include <atomic> #include <atomic>

View file

@ -0,0 +1,32 @@
#pragma once
#include <memory>
#include <atomic>
#include "display.h"
class GSFrameBase
{
public:
GSFrameBase() = default;
GSFrameBase(const GSFrameBase&) = delete;
virtual ~GSFrameBase() = default;
virtual void close() = 0;
virtual bool shown() = 0;
virtual void hide() = 0;
virtual void show() = 0;
virtual void toggle_fullscreen() = 0;
virtual void delete_context(draw_context_t ctx) = 0;
virtual draw_context_t make_context() = 0;
virtual void set_current(draw_context_t ctx) = 0;
virtual void flip(draw_context_t ctx, bool skip_frame = false) = 0;
virtual int client_width() = 0;
virtual int client_height() = 0;
virtual display_handle_t handle() const = 0;
std::atomic<bool> screenshot_toggle = false;
virtual void take_screenshot(const std::vector<u8> sshot_data, const u32 sshot_width, const u32 sshot_height, bool is_bgra) = 0;
};

View file

@ -1,38 +1,7 @@
#pragma once #pragma once
#include "GSFrameBase.h"
#include "Emu/RSX/RSXThread.h" #include "Emu/RSX/RSXThread.h"
#include <memory>
#include <atomic>
#ifdef _WIN32
#include <windows.h>
#elif defined(__APPLE__)
// nothing
#elif defined(HAVE_X11)
// Cannot include Xlib.h before Qt5
// and we don't need all of Xlib anyway
using Display = struct _XDisplay;
using Window = unsigned long;
#endif
#ifdef VK_USE_PLATFORM_WAYLAND_KHR
#include <wayland-client.h>
#endif
struct RSXDebuggerProgram
{
u32 id;
u32 vp_id;
u32 fp_id;
std::string vp_shader;
std::string fp_shader;
bool modified;
RSXDebuggerProgram()
: modified(false)
{
}
};
enum wm_event enum wm_event
{ {
@ -47,52 +16,6 @@ enum wm_event
window_visibility_changed window_visibility_changed
}; };
using RSXDebuggerPrograms = std::vector<RSXDebuggerProgram>;
using draw_context_t = void*;
#ifdef _WIN32
using display_handle_t = HWND;
#elif defined(__APPLE__)
using display_handle_t = void*; // NSView
#else
using display_handle_t = std::variant<
#if defined(HAVE_X11) && defined(VK_USE_PLATFORM_WAYLAND_KHR)
std::pair<Display*, Window>, std::pair<wl_display*, wl_surface*>
#elif defined(HAVE_X11)
std::pair<Display*, Window>
#elif defined(VK_USE_PLATFORM_WAYLAND_KHR)
std::pair<wl_display*, wl_surface*>
#endif
>;
#endif
class GSFrameBase
{
public:
GSFrameBase() = default;
GSFrameBase(const GSFrameBase&) = delete;
virtual ~GSFrameBase() = default;
virtual void close() = 0;
virtual bool shown() = 0;
virtual void hide() = 0;
virtual void show() = 0;
virtual void toggle_fullscreen() = 0;
virtual void delete_context(draw_context_t ctx) = 0;
virtual draw_context_t make_context() = 0;
virtual void set_current(draw_context_t ctx) = 0;
virtual void flip(draw_context_t ctx, bool skip_frame = false) = 0;
virtual int client_width() = 0;
virtual int client_height() = 0;
virtual display_handle_t handle() const = 0;
std::atomic<bool> screenshot_toggle = false;
virtual void take_screenshot(const std::vector<u8> sshot_data, const u32 sshot_width, const u32 sshot_height, bool is_bgra) = 0;
};
class GSRender : public rsx::thread class GSRender : public rsx::thread
{ {
protected: protected:

View file

@ -1,6 +1,7 @@
#include "stdafx.h" #include "stdafx.h"
#include "shader_loading_dialog.h" #include "shader_loading_dialog.h"
#include "Emu/System.h" #include "Emu/System.h"
#include "Emu/Cell/Modules/cellMsgDialog.h"
namespace rsx namespace rsx
{ {

View file

@ -1,6 +1,6 @@
#pragma once #pragma once
#include "Emu/Cell/Modules/cellMsgDialog.h" class MsgDialogBase;
namespace rsx namespace rsx
{ {

View file

@ -1,6 +1,7 @@
#include "stdafx.h" #include "stdafx.h"
#include "shader_loading_dialog_native.h" #include "shader_loading_dialog_native.h"
#include "../overlay_message_dialog.h" #include "../overlay_message_dialog.h"
#include "../../GSRender.h"
namespace rsx namespace rsx
{ {

View file

@ -1,7 +1,8 @@
#pragma once #pragma once
#include "shader_loading_dialog.h" #include "shader_loading_dialog.h"
#include "../../GSRender.h"
class GSRender;
namespace rsx namespace rsx
{ {
@ -10,6 +11,8 @@ namespace rsx
class message_dialog; class message_dialog;
} }
class thread;
struct shader_loading_dialog_native : rsx::shader_loading_dialog struct shader_loading_dialog_native : rsx::shader_loading_dialog
{ {
rsx::thread* owner = nullptr; rsx::thread* owner = nullptr;

View file

@ -2,6 +2,7 @@
#include "overlay_osk.h" #include "overlay_osk.h"
#include "Emu/RSX/RSXThread.h" #include "Emu/RSX/RSXThread.h"
#include "Emu/Cell/Modules/cellSysutil.h" #include "Emu/Cell/Modules/cellSysutil.h"
#include "Emu/Cell/Modules/cellMsgDialog.h"
LOG_CHANNEL(osk, "OSK"); LOG_CHANNEL(osk, "OSK");

View file

@ -1,7 +1,6 @@
#include "stdafx.h" #include "stdafx.h"
#include "overlay_perf_metrics.h" #include "overlay_perf_metrics.h"
#include "../GSRender.h" #include "Emu/RSX/RSXThread.h"
#include "Emu/Cell/SPUThread.h" #include "Emu/Cell/SPUThread.h"
#include "Emu/Cell/RawSPUThread.h" #include "Emu/Cell/RawSPUThread.h"
#include "Emu/Cell/PPUThread.h" #include "Emu/Cell/PPUThread.h"

View file

@ -1,9 +1,9 @@
#include "stdafx.h" #include "stdafx.h"
#include "overlays.h" #include "overlays.h"
#include "overlay_message_dialog.h" #include "overlay_message_dialog.h"
#include "../GSRender.h"
#include "Input/pad_thread.h" #include "Input/pad_thread.h"
#include "Emu/Io/interception.h" #include "Emu/Io/interception.h"
#include "Emu/RSX/RSXThread.h"
LOG_CHANNEL(overlays); LOG_CHANNEL(overlays);

View file

@ -1,5 +1,7 @@
#include "stdafx.h" #include "stdafx.h"
#include "VKCommandStream.h" #include "VKCommandStream.h"
#include "Emu/IdManager.h"
#include "Emu/RSX/RSXOffload.h"
namespace vk namespace vk
{ {

View file

@ -2,6 +2,7 @@
#include "VKHelpers.h" #include "VKHelpers.h"
#include "VKRenderPass.h" #include "VKRenderPass.h"
#include "Utilities/StrUtil.h" #include "Utilities/StrUtil.h"
#include "Emu/IdManager.h"
#define VK_MAX_COMPUTE_TASKS 4096 // Max number of jobs per frame #define VK_MAX_COMPUTE_TASKS 4096 // Max number of jobs per frame

View file

@ -14,12 +14,13 @@
#include <X11/Xutil.h> #include <X11/Xutil.h>
#endif #endif
#include "Emu/RSX/GSRender.h"
#include "VulkanAPI.h" #include "VulkanAPI.h"
#include "VKCommonDecompiler.h" #include "VKCommonDecompiler.h"
#include "../GCM.h" #include "../GCM.h"
#include "../Common/ring_buffer_helper.h" #include "../Common/ring_buffer_helper.h"
#include "../Common/TextureUtils.h" #include "../Common/TextureUtils.h"
#include "../display.h"
#include "../rsx_utils.h"
#include "3rdparty/GPUOpen/include/vk_mem_alloc.h" #include "3rdparty/GPUOpen/include/vk_mem_alloc.h"

35
rpcs3/Emu/RSX/display.h Normal file
View file

@ -0,0 +1,35 @@
#pragma once
#ifdef _WIN32
#include <windows.h>
#elif defined(__APPLE__)
// nothing
#elif defined(HAVE_X11)
// Cannot include Xlib.h before Qt5
// and we don't need all of Xlib anyway
using Display = struct _XDisplay;
using Window = unsigned long;
#endif
#ifdef VK_USE_PLATFORM_WAYLAND_KHR
#include <wayland-client.h>
#endif
#ifdef _WIN32
using display_handle_t = HWND;
#elif defined(__APPLE__)
using display_handle_t = void*; // NSView
#else
#include <variant>
using display_handle_t = std::variant<
#if defined(HAVE_X11) && defined(VK_USE_PLATFORM_WAYLAND_KHR)
std::pair<Display*, Window>, std::pair<wl_display*, wl_surface*>
#elif defined(HAVE_X11)
std::pair<Display*, Window>
#elif defined(VK_USE_PLATFORM_WAYLAND_KHR)
std::pair<wl_display*, wl_surface*>
#endif
>;
#endif
using draw_context_t = void*;

View file

@ -16,10 +16,10 @@
#include "Emu/Cell/lv2/sys_sync.h" #include "Emu/Cell/lv2/sys_sync.h"
#include "Emu/Cell/lv2/sys_prx.h" #include "Emu/Cell/lv2/sys_prx.h"
#include "Emu/Cell/lv2/sys_rsx.h" #include "Emu/Cell/lv2/sys_rsx.h"
#include "Emu/Cell/Modules/cellMsgDialog.h"
#include "Emu/title.h" #include "Emu/title.h"
#include "Emu/IdManager.h" #include "Emu/IdManager.h"
#include "Emu/RSX/GSRender.h"
#include "Emu/RSX/Capture/rsx_replay.h" #include "Emu/RSX/Capture/rsx_replay.h"
#include "Loader/PSF.h" #include "Loader/PSF.h"

View file

@ -502,6 +502,8 @@
<ClInclude Include="Emu\NP\rpcn_config.h" /> <ClInclude Include="Emu\NP\rpcn_config.h" />
<ClInclude Include="Emu\RSX\Common\ShaderInterpreter.h" /> <ClInclude Include="Emu\RSX\Common\ShaderInterpreter.h" />
<ClInclude Include="Emu\RSX\Common\texture_cache_helpers.h" /> <ClInclude Include="Emu\RSX\Common\texture_cache_helpers.h" />
<ClInclude Include="Emu\RSX\display.h" />
<ClInclude Include="Emu\RSX\GSFrameBase.h" />
<ClInclude Include="Emu\RSX\Overlays\overlay_fonts.h" /> <ClInclude Include="Emu\RSX\Overlays\overlay_fonts.h" />
<ClInclude Include="Emu\RSX\Overlays\overlay_message_dialog.h" /> <ClInclude Include="Emu\RSX\Overlays\overlay_message_dialog.h" />
<ClInclude Include="Emu\RSX\Overlays\overlay_osk.h" /> <ClInclude Include="Emu\RSX\Overlays\overlay_osk.h" />

View file

@ -18,9 +18,6 @@
<Filter Include="Emu\Io"> <Filter Include="Emu\Io">
<UniqueIdentifier>{1df5b438-f263-4ff4-9b86-a9ea368f2106}</UniqueIdentifier> <UniqueIdentifier>{1df5b438-f263-4ff4-9b86-a9ea368f2106}</UniqueIdentifier>
</Filter> </Filter>
<Filter Include="Emu\HDD">
<UniqueIdentifier>{28902cf4-4fa6-428b-ab94-6b410fd5077f}</UniqueIdentifier>
</Filter>
<Filter Include="Emu\CPU"> <Filter Include="Emu\CPU">
<UniqueIdentifier>{037247b4-0370-4193-a25d-bc9d075bf0a7}</UniqueIdentifier> <UniqueIdentifier>{037247b4-0370-4193-a25d-bc9d075bf0a7}</UniqueIdentifier>
</Filter> </Filter>
@ -1879,6 +1876,12 @@
<ClInclude Include="Emu\Io\interception.h"> <ClInclude Include="Emu\Io\interception.h">
<Filter>Emu\Io</Filter> <Filter>Emu\Io</Filter>
</ClInclude> </ClInclude>
<ClInclude Include="Emu\RSX\GSFrameBase.h">
<Filter>Emu\GPU\RSX</Filter>
</ClInclude>
<ClInclude Include="Emu\RSX\display.h">
<Filter>Emu\GPU\RSX</Filter>
</ClInclude>
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<None Include="Emu\RSX\Common\Interpreter\FragmentInterpreter.glsl"> <None Include="Emu\RSX\Common\Interpreter\FragmentInterpreter.glsl">

View file

@ -1,6 +1,5 @@
#include "headless_application.h" #include "headless_application.h"
#include "Emu/RSX/GSRender.h"
#include "Emu/RSX/Null/NullGSRender.h" #include "Emu/RSX/Null/NullGSRender.h"
#include "Emu/Cell/Modules/cellMsgDialog.h" #include "Emu/Cell/Modules/cellMsgDialog.h"
#include "Emu/Cell/Modules/cellOskDialog.h" #include "Emu/Cell/Modules/cellOskDialog.h"

View file

@ -1,6 +1,8 @@
#include "stdafx.h" #include "stdafx.h"
#include "gl_gs_frame.h" #include "gl_gs_frame.h"
#include "Emu/system_config.h"
#include <QOpenGLContext> #include <QOpenGLContext>
#include <QOffscreenSurface> #include <QOffscreenSurface>

View file

@ -5,12 +5,15 @@
#include "Utilities/Timer.h" #include "Utilities/Timer.h"
#include "Utilities/date_time.h" #include "Utilities/date_time.h"
#include "Emu/System.h" #include "Emu/System.h"
#include "Emu/system_config.h"
#include "Emu/IdManager.h"
#include "Emu/Cell/Modules/cellScreenshot.h" #include "Emu/Cell/Modules/cellScreenshot.h"
#include <QCoreApplication> #include <QCoreApplication>
#include <QKeyEvent> #include <QKeyEvent>
#include <QMessageBox> #include <QMessageBox>
#include <string> #include <string>
#include <thread>
#include "png.h" #include "png.h"

View file

@ -1,7 +1,7 @@
#pragma once #pragma once
#include "stdafx.h" #include "stdafx.h"
#include "Emu/RSX/GSRender.h" #include "Emu/RSX/GSFrameBase.h"
#include <QWindow> #include <QWindow>
#include <QPaintEvent> #include <QPaintEvent>

View file

@ -30,7 +30,6 @@
#include <clocale> #include <clocale>
#include "Emu/RSX/GSRender.h"
#include "Emu/RSX/Null/NullGSRender.h" #include "Emu/RSX/Null/NullGSRender.h"
#include "Emu/RSX/GL/GLGSRender.h" #include "Emu/RSX/GL/GLGSRender.h"

View file

@ -13,6 +13,7 @@
#include <chrono> #include <chrono>
#include <condition_variable> #include <condition_variable>
#include <mutex> #include <mutex>
#include <thread>
LOG_CHANNEL(cfg_log, "CFG"); LOG_CHANNEL(cfg_log, "CFG");

View file

@ -3,8 +3,7 @@
#include "qt_utils.h" #include "qt_utils.h"
#include "memory_viewer_panel.h" #include "memory_viewer_panel.h"
#include "table_item_delegate.h" #include "table_item_delegate.h"
#include "Emu/RSX/RSXThread.h"
#include "Emu/RSX/GSRender.h"
#include <QHBoxLayout> #include <QHBoxLayout>
#include <QHeaderView> #include <QHeaderView>