mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-01-04 06:06:00 +00:00
libraries: gnmdriver: fix for incorrect offset in sceGnmDrawInitDefaultHardwareState175
This commit is contained in:
parent
cc945fb92e
commit
3663c60f3d
|
@ -664,9 +664,10 @@ u32 PS4_SYSV_ABI sceGnmDrawInitDefaultHardwareState175(u32* cmdbuf, u32 size) {
|
|||
|
||||
cmdbuf = ClearContextState(cmdbuf);
|
||||
std::memcpy(cmdbuf, InitSequence175.data(), InitSequence175.size() * 4);
|
||||
cmdbuf += InitSequence175.size();
|
||||
|
||||
cmdbuf[0x7f] = 0xc07f1000;
|
||||
cmdbuf[0x80] = 0;
|
||||
constexpr auto cmdbuf_left = HwInitPacketSize - InitSequence175.size() - 0xc - 1;
|
||||
WriteTrailingNop<cmdbuf_left>(cmdbuf);
|
||||
|
||||
return HwInitPacketSize;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue