summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/gallium/drivers/swr/rasterizer/jitter/JitManager.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/gallium/drivers/swr/rasterizer/jitter/JitManager.cpp b/src/gallium/drivers/swr/rasterizer/jitter/JitManager.cpp
index cc773d75cc2..18bbbe79d41 100644
--- a/src/gallium/drivers/swr/rasterizer/jitter/JitManager.cpp
+++ b/src/gallium/drivers/swr/rasterizer/jitter/JitManager.cpp
@@ -239,9 +239,12 @@ bool JitManager::SetupModuleFromIR(const uint8_t *pIR)
SMDiagnostic Err;
std::unique_ptr<Module> newModule = parseIR(pMem.get()->getMemBufferRef(), Err, mContext);
+ SWR_REL_ASSERT(
+ !(newModule == nullptr),
+ "Parse failed!\n"
+ "%s", Err.getMessage().data());
if (newModule == nullptr)
{
- SWR_ASSERT(0, "Parse failed! Check Err for details.");
return false;
}