diff options
author | Tim Rowley <[email protected]> | 2016-10-07 12:24:52 -0500 |
---|---|---|
committer | Tim Rowley <[email protected]> | 2016-10-11 11:48:17 -0500 |
commit | 185a531206e6d3c6d129ad91657432a67e254cba (patch) | |
tree | d64beb6899f3a9b1bbf1f12c4e7525fb819608fe | |
parent | eaec263427631b3aa3a86f6287f3144381866510 (diff) |
swr: [rasterizer jitter] adjust jitmanager assert
Signed-off-by: Tim Rowley <[email protected]>
-rw-r--r-- | src/gallium/drivers/swr/rasterizer/jitter/JitManager.cpp | 5 |
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; } |