From b8928d230aa2256c493088d3677501963b496ff8 Mon Sep 17 00:00:00 2001 From: octopoulo Date: Sun, 9 May 2021 20:32:16 +0200 Subject: [PATCH] gl: Intel GPU shader fix --- rpcs3/Emu/RSX/Common/GLSLCommon.cpp | 4 ++-- rpcs3/Emu/RSX/GL/GLHelpers.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/rpcs3/Emu/RSX/Common/GLSLCommon.cpp b/rpcs3/Emu/RSX/Common/GLSLCommon.cpp index c1ba7a054c..64572e70ab 100644 --- a/rpcs3/Emu/RSX/Common/GLSLCommon.cpp +++ b/rpcs3/Emu/RSX/Common/GLSLCommon.cpp @@ -223,11 +223,11 @@ namespace glsl "#define VTX_FMT_UINT8 6\n\n"; // For intel GPUs which cannot access vectors in indexed mode (driver bug? or glsl version too low?) - // Note: Tested on Mesa iris with HD 530 and compilant path works fine, may be a bug on Windows proprietary drivers + // Note: Tested on Mesa iris with HD 530 and compliant path works fine, may be a bug on Windows proprietary drivers if (!glsl4_compliant) { OS << - "void mov(inout vec4 vector, const in int index, const in float scalar)\n" + "void mov(inout uvec4 vector, const in int index, const in uint scalar)\n" "{\n" " switch(index)\n" " {\n" diff --git a/rpcs3/Emu/RSX/GL/GLHelpers.h b/rpcs3/Emu/RSX/GL/GLHelpers.h index 85bb799862..9aeee91b34 100644 --- a/rpcs3/Emu/RSX/GL/GLHelpers.h +++ b/rpcs3/Emu/RSX/GL/GLHelpers.h @@ -2340,7 +2340,7 @@ public: error_msg = buf.get(); } - rsx_log.fatal("Compilation failed: %s", error_msg); + rsx_log.fatal("Compilation failed: %s\nsource: %s", error_msg, source); } m_compiled_fence.create();