summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/swr/rasterizer
diff options
context:
space:
mode:
authorTim Rowley <[email protected]>2016-10-07 12:24:52 -0500
committerTim Rowley <[email protected]>2016-10-11 11:48:17 -0500
commit185a531206e6d3c6d129ad91657432a67e254cba (patch)
treed64beb6899f3a9b1bbf1f12c4e7525fb819608fe /src/gallium/drivers/swr/rasterizer
parenteaec263427631b3aa3a86f6287f3144381866510 (diff)
swr: [rasterizer jitter] adjust jitmanager assert
Signed-off-by: Tim Rowley <[email protected]>
Diffstat (limited to 'src/gallium/drivers/swr/rasterizer')
-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;
}