video: Import new shader recompiler + display a triangle (#142)

This commit is contained in:
TheTurtle
2024-05-22 01:35:12 +03:00
committed by GitHub
parent 8cf64a33b2
commit 8730968385
103 changed files with 17793 additions and 729 deletions

View File

@@ -12,6 +12,9 @@
#include "video_core/amdgpu/pm4_cmds.h"
#include "video_core/renderer_vulkan/renderer_vulkan.h"
extern Frontend::WindowSDL* g_window;
std::unique_ptr<Vulkan::RendererVulkan> renderer;
namespace Libraries::GnmDriver {
using namespace AmdGpu;
@@ -1912,6 +1915,7 @@ int PS4_SYSV_ABI Func_F916890425496553() {
void RegisterlibSceGnmDriver(Core::Loader::SymbolsResolver* sym) {
liverpool = std::make_unique<AmdGpu::Liverpool>();
renderer = std::make_unique<Vulkan::RendererVulkan>(*g_window, liverpool.get());
LIB_FUNCTION("b0xyllnVY-I", "libSceGnmDriver", 1, "libSceGnmDriver", 1, 1, sceGnmAddEqEvent);
LIB_FUNCTION("b08AgtPlHPg", "libSceGnmDriver", 1, "libSceGnmDriver", 1, 1,

View File

@@ -10,7 +10,7 @@
#include "video_core/renderer_vulkan/renderer_vulkan.h"
extern Frontend::WindowSDL* g_window;
extern std::unique_ptr<Vulkan::RendererVulkan> renderer;
namespace Libraries::VideoOut {
@@ -41,8 +41,6 @@ VideoOutDriver::VideoOutDriver(u32 width, u32 height) {
main_port.resolution.fullHeight = height;
main_port.resolution.paneWidth = width;
main_port.resolution.paneHeight = height;
renderer = std::make_unique<Vulkan::RendererVulkan>(*g_window);
}
VideoOutDriver::~VideoOutDriver() = default;

View File

@@ -10,8 +10,7 @@
namespace Vulkan {
struct Frame;
class RendererVulkan;
} // namespace Vulkan
}
namespace Libraries::VideoOut {
@@ -84,7 +83,6 @@ private:
std::condition_variable_any submit_cond;
std::condition_variable done_cond;
std::queue<Request> requests;
std::unique_ptr<Vulkan::RendererVulkan> renderer;
bool is_neo{};
};