Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rsx: Default initailize zcull reports padding #6710

Merged
merged 1 commit into from
Oct 5, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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;
kd-11 marked this conversation as resolved.
Show resolved Hide resolved

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