d3d12: Try not to overcommit texture memory
This commit is contained in:
@@ -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);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user