From 9e929a25d4599c4b99c735c440e10b7346825003 Mon Sep 17 00:00:00 2001 From: Eladash Date: Sat, 5 Oct 2019 13:41:29 +0300 Subject: [PATCH] rsx: Default initailize zcull reports padding --- rpcs3/Emu/Cell/lv2/sys_rsx.cpp | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/rpcs3/Emu/Cell/lv2/sys_rsx.cpp b/rpcs3/Emu/Cell/lv2/sys_rsx.cpp index ad90f31641..23af0bb3a7 100644 --- a/rpcs3/Emu/Cell/lv2/sys_rsx.cpp +++ b/rpcs3/Emu/Cell/lv2/sys_rsx.cpp @@ -116,17 +116,21 @@ error_code sys_rsx_context_allocate(vm::ptr context_id, vm::ptr lpar_d std::memset(&reports, 0, sizeof(RsxReports)); for (int i = 0; i < 64; ++i) - reports.notify[i].timestamp = (u64)-1; + reports.notify[i].timestamp = -1; for (int i = 0; i < 256; ++i) { reports.semaphore[i].val = 0x1337C0D3; reports.semaphore[i].pad = 0x1337BABE; - reports.semaphore[i].timestamp = (u64)-1; // technically different but should be fine + reports.semaphore[i].timestamp = -1; // technically different but should be fine } for (int i = 0; i < 2048; ++i) - reports.report[i].timestamp = (u64)-1; + { + reports.report[i].val = 0; + reports.report[i].timestamp = -1; + reports.report[i].pad = -1; + } auto &driverInfo = vm::_ref(*lpar_driver_info);