mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-06-25 20:06:17 +00:00
buffer_cache: Inline data to cpu unless gpu modified (#3061)
This commit is contained in:
parent
ce42eccc9d
commit
14b082f5ea
1 changed files with 1 additions and 1 deletions
|
@ -293,7 +293,7 @@ void BufferCache::BindIndexBuffer(u32 index_offset) {
|
|||
|
||||
void BufferCache::InlineData(VAddr address, const void* value, u32 num_bytes, bool is_gds) {
|
||||
ASSERT_MSG(address % 4 == 0, "GDS offset must be dword aligned");
|
||||
if (!is_gds && !IsRegionRegistered(address, num_bytes)) {
|
||||
if (!is_gds && !IsRegionGpuModified(address, num_bytes)) {
|
||||
memcpy(std::bit_cast<void*>(address), value, num_bytes);
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue