mirror of
https://github.com/EduApps-CDG/OpenDX
synced 2024-12-30 09:45:37 +01:00
Revert "[d3d11] Don't create linearly tiled compressed images"
This reverts commit b8888ffe6a7d1a4cf95e1ea429bed4b41dc911dd. This is no longer beneficial since initialization of a linear image does not stall Map anymore.
This commit is contained in:
parent
e82c87dc52
commit
7e7609cac0
@ -434,12 +434,6 @@ namespace dxvk {
|
|||||||
if (GetPackedDepthStencilFormat(m_desc.Format))
|
if (GetPackedDepthStencilFormat(m_desc.Format))
|
||||||
return D3D11_COMMON_TEXTURE_MAP_MODE_BUFFER;
|
return D3D11_COMMON_TEXTURE_MAP_MODE_BUFFER;
|
||||||
|
|
||||||
// The only way to write to compressed textures on the GPU is by
|
|
||||||
// using copy commands, so we might as well copy to a buffer to
|
|
||||||
// prevent accidentally hitting a slow path if games misuse this.
|
|
||||||
if (imageFormatInfo(pImageInfo->format)->flags.test(DxvkFormatFlag::BlockCompressed))
|
|
||||||
return D3D11_COMMON_TEXTURE_MAP_MODE_BUFFER;
|
|
||||||
|
|
||||||
// Images that can be read by the host should be mapped directly in
|
// Images that can be read by the host should be mapped directly in
|
||||||
// order to avoid expensive synchronization with the GPU. This does
|
// order to avoid expensive synchronization with the GPU. This does
|
||||||
// however require linear tiling, which may not be supported for all
|
// however require linear tiling, which may not be supported for all
|
||||||
@ -525,6 +519,8 @@ namespace dxvk {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
D3D11DXGISurface::D3D11DXGISurface(
|
D3D11DXGISurface::D3D11DXGISurface(
|
||||||
ID3D11Resource* pResource,
|
ID3D11Resource* pResource,
|
||||||
D3D11CommonTexture* pTexture)
|
D3D11CommonTexture* pTexture)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user