From: Tim Rowley Date: Fri, 7 Oct 2016 17:24:52 +0000 (-0500) Subject: swr: [rasterizer jitter] adjust jitmanager assert X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=185a531206e6d3c6d129ad91657432a67e254cba;p=mesa.git swr: [rasterizer jitter] adjust jitmanager assert Signed-off-by: Tim Rowley --- 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 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; }