mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-13 02:08:49 +12:00
d3d12: Try not to overcommit texture memory
This commit is contained in:
parent
a5fb8c95f4
commit
a751a06d01
1 changed files with 3 additions and 0 deletions
|
@ -250,6 +250,9 @@ size_t D3D12GSRender::UploadTextures()
|
||||||
}
|
}
|
||||||
Texture->Unmap(0, nullptr);
|
Texture->Unmap(0, nullptr);
|
||||||
|
|
||||||
|
size_t powerOf2Height = log2(heightInBlocks) + 1;
|
||||||
|
textureSize = rowPitch * powerOf2Height;
|
||||||
|
|
||||||
assert(m_textureData.canAlloc(textureSize * 2));
|
assert(m_textureData.canAlloc(textureSize * 2));
|
||||||
size_t heapOffset2 = m_textureData.alloc(textureSize * 2);
|
size_t heapOffset2 = m_textureData.alloc(textureSize * 2);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue