[D3D12] Don't 4KB-align sizes of resolve destinations
This commit is contained in:
@@ -1208,7 +1208,7 @@ bool RenderTargetCache::ResolveCopy(SharedMemory* shared_memory,
|
||||
uint32_t dest_size = texture_util::GetGuestMipSliceStorageSize(
|
||||
xe::align(dest_pitch, 32u),
|
||||
xe::align(uint32_t(rect.bottom - (rect.top & ~LONG(31))), 32u), 1, true,
|
||||
dest_format, nullptr);
|
||||
dest_format, nullptr, false);
|
||||
uint32_t dest_offset_x = uint32_t(rect.left) & 31;
|
||||
uint32_t dest_offset_y = uint32_t(rect.top) & 31;
|
||||
// Make sure we have the memory to write to.
|
||||
|
||||
@@ -1091,7 +1091,7 @@ bool TextureCache::TileResolvedTexture(
|
||||
offset_y &= 31;
|
||||
uint32_t texture_size = texture_util::GetGuestMipSliceStorageSize(
|
||||
texture_pitch, xe::align(offset_y + resolve_height, 32u), 1, true, format,
|
||||
nullptr);
|
||||
nullptr, false);
|
||||
if (texture_size == 0) {
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user