From 61dc8806bdcaa970742bf5d77f10a15fbc59f2c0 Mon Sep 17 00:00:00 2001 From: baldurk Date: Wed, 17 May 2017 17:10:37 +0100 Subject: [PATCH] Add message about NVIDIA 378.x series driver crash issues --- renderdoc/driver/gl/gl_replay_linux.cpp | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/renderdoc/driver/gl/gl_replay_linux.cpp b/renderdoc/driver/gl/gl_replay_linux.cpp index 96ad424ad..1070f85f9 100644 --- a/renderdoc/driver/gl/gl_replay_linux.cpp +++ b/renderdoc/driver/gl/gl_replay_linux.cpp @@ -250,6 +250,21 @@ ReplayStatus GL_CreateReplayDevice(const char *logfile, IReplayDriver **driver) return ReplayStatus::APIHardwareUnsupported; } + if(getStr) + { + const char *vendor = (const char *)getStr(eGL_VENDOR); + const char *version = (const char *)getStr(eGL_VERSION); + + if(strstr(vendor, "NVIDIA") && strstr(version, "378.")) + { + RDCLOG("There is a known crash issue on NVIDIA 378.x series drivers."); + RDCLOG( + "If you hit a crash after this message, try setting __GL_THREADED_OPTIMIZATIONS=0 or " + "upgrade to 381.x or newer."); + RDCLOG("See https://github.com/baldurk/renderdoc/issues/609 for more information."); + } + } + WrappedOpenGL *gl = new WrappedOpenGL(logfile, real, GetGLPlatform()); gl->Initialise(initParams);