Skip to content

Commit

Permalink
rsx: Default initailize zcull reoports padding
Browse files Browse the repository at this point in the history
  • Loading branch information
elad335 committed Oct 5, 2019
1 parent 305a5bd commit 093bca4
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions rpcs3/Emu/Cell/lv2/sys_rsx.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -116,17 +116,21 @@ error_code sys_rsx_context_allocate(vm::ptr<u32> context_id, vm::ptr<u64> 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<RsxDriverInfo>(*lpar_driver_info);

Expand Down

0 comments on commit 093bca4

Please sign in to comment.