gl: Intel GPU shader fix

This commit is contained in:
octopoulo 2021-05-09 20:32:16 +02:00 committed by kd-11
parent 675c9a7945
commit b8928d230a
2 changed files with 3 additions and 3 deletions

View File

@ -223,11 +223,11 @@ namespace glsl
"#define VTX_FMT_UINT8 6\n\n"; "#define VTX_FMT_UINT8 6\n\n";
// For intel GPUs which cannot access vectors in indexed mode (driver bug? or glsl version too low?) // 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) if (!glsl4_compliant)
{ {
OS << 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" "{\n"
" switch(index)\n" " switch(index)\n"
" {\n" " {\n"

View File

@ -2340,7 +2340,7 @@ public:
error_msg = buf.get(); 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(); m_compiled_fence.create();