swr: [rasterizer jitter] adjust jitmanager assert
authorTim Rowley <timothy.o.rowley@intel.com>
Fri, 7 Oct 2016 17:24:52 +0000 (12:24 -0500)
committerTim Rowley <timothy.o.rowley@intel.com>
Tue, 11 Oct 2016 16:48:17 +0000 (11:48 -0500)
Signed-off-by: Tim Rowley <timothy.o.rowley@intel.com>
src/gallium/drivers/swr/rasterizer/jitter/JitManager.cpp

index cc773d75cc277a303fd434625b62709c64abadd4..18bbbe79d416598b46b49c44cdb49f8549ba8f2c 100644 (file)
@@ -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;
     }