From 4e6a5ce76041bdc6e8462048272039dd208eed49 Mon Sep 17 00:00:00 2001 From: "Unknown W. Brackets" Date: Fri, 26 Nov 2021 08:45:52 -0800 Subject: [PATCH] softjit: Log any failed compiles. --- GPU/Software/DrawPixelX86.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/GPU/Software/DrawPixelX86.cpp b/GPU/Software/DrawPixelX86.cpp index f0ef5da905..4aaf012094 100644 --- a/GPU/Software/DrawPixelX86.cpp +++ b/GPU/Software/DrawPixelX86.cpp @@ -21,6 +21,7 @@ #include #include "Common/x64Emitter.h" #include "Common/CPUDetect.h" +#include "Core/Reporting.h" #include "GPU/GPUState.h" #include "GPU/Software/DrawPixel.h" #include "GPU/Software/SoftGpu.h" @@ -133,6 +134,8 @@ SingleFunc PixelJitCache::CompileSingle(const PixelFuncID &id) { discards_.clear(); if (!success) { + ERROR_LOG_REPORT(G3D, "Could not compile pixel func: %s", DescribePixelFuncID(id).c_str()); + EndWrite(); ResetCodePtr(GetOffset(start)); return nullptr; @@ -816,7 +819,7 @@ bool PixelJitCache::Jit_ApplyStencilOp(const PixelFuncID &id, GEStencilOp op, Pi break; } - return false; + return true; } bool PixelJitCache::Jit_WriteStencilOnly(const PixelFuncID &id, PixelRegCache::Reg stencilReg) { @@ -1111,7 +1114,7 @@ bool PixelJitCache::Jit_AlphaBlend(const PixelFuncID &id) { regCache_.Release(tempReg, PixelRegCache::T_VEC); regCache_.Release(dstReg, PixelRegCache::T_VEC); - return true; + return success; }