From 05064dfaf4c8b2e95a03a99fe27631de851736d4 Mon Sep 17 00:00:00 2001 From: Megamouse Date: Sun, 5 Mar 2023 02:53:22 +0100 Subject: [PATCH] cellVdec: revert RGBA alignment change --- rpcs3/Emu/Cell/Modules/cellVdec.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/rpcs3/Emu/Cell/Modules/cellVdec.cpp b/rpcs3/Emu/Cell/Modules/cellVdec.cpp index 010157ec5b..d7f4fd2f0e 100644 --- a/rpcs3/Emu/Cell/Modules/cellVdec.cpp +++ b/rpcs3/Emu/Cell/Modules/cellVdec.cpp @@ -1298,7 +1298,11 @@ error_code cellVdecGetPictureExt(ppu_thread& ppu, u32 handle, vm::cptrdata[0], frame->data[1], frame->data[2], alpha_plane.get() }; int in_line[4] = { frame->linesize[0], frame->linesize[1], frame->linesize[2], w * 1 }; u8* out_data[4] = { outBuff.get_ptr() }; - int out_line[4] = { static_cast(utils::align(w * 4u, 128)) }; // RGBA32 or ARGB32 + int out_line[4] = { w * 4 }; // RGBA32 or ARGB32 + + // TODO: + // It's possible that we need to align the pitch to 128 here. + // PS HOME seems to rely on this somehow in certain cases. if (!alpha_plane) { @@ -1310,10 +1314,6 @@ error_code cellVdecGetPictureExt(ppu_thread& ppu, u32 handle, vm::cptrsws, in_data, in_line, 0, h, out_data, out_line);