From 771009f3338f4dcd6850f56aa95c538edc7c6819 Mon Sep 17 00:00:00 2001 From: Megamouse Date: Tue, 12 Apr 2022 00:46:29 +0200 Subject: [PATCH] cellVdec: add more error logging --- rpcs3/Emu/Cell/Modules/cellVdec.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rpcs3/Emu/Cell/Modules/cellVdec.cpp b/rpcs3/Emu/Cell/Modules/cellVdec.cpp index c345b2b3b4..cbf8ebb936 100644 --- a/rpcs3/Emu/Cell/Modules/cellVdec.cpp +++ b/rpcs3/Emu/Cell/Modules/cellVdec.cpp @@ -977,7 +977,7 @@ error_code cellVdecDecodeAu(u32 handle, CellVdecDecodeMode mode, vm::cptrpts.upper || !auInfo->startAddr) { - return CELL_VDEC_ERROR_ARG; + return { CELL_VDEC_ERROR_ARG, fmt::format("vdec=%d, auInfo=%d, upper=%d, startAddr=0x%x", !!vdec, !!auInfo, auInfo ? auInfo->pts.upper.value() : 0, auInfo ? auInfo->startAddr.value() : 0) }; } { @@ -991,7 +991,7 @@ error_code cellVdecDecodeAu(u32 handle, CellVdecDecodeMode mode, vm::cptr CELL_VDEC_DEC_MODE_PB_SKIP) { - return CELL_VDEC_ERROR_ARG; + return { CELL_VDEC_ERROR_ARG, fmt::format("mode=%d", +mode) }; } // TODO: