mirror of
https://github.com/RPCS3/rpcs3.git
synced 2026-04-03 19:38:08 -06:00
d3d12: Try not to overcommit texture memory
This commit is contained in:
parent
a5fb8c95f4
commit
a751a06d01
@ -250,6 +250,9 @@ size_t D3D12GSRender::UploadTextures()
|
||||
}
|
||||
Texture->Unmap(0, nullptr);
|
||||
|
||||
size_t powerOf2Height = log2(heightInBlocks) + 1;
|
||||
textureSize = rowPitch * powerOf2Height;
|
||||
|
||||
assert(m_textureData.canAlloc(textureSize * 2));
|
||||
size_t heapOffset2 = m_textureData.alloc(textureSize * 2);
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user