mirror of
https://github.com/doitsujin/dxvk.git
synced 2025-03-06 20:58:37 +01:00
[d3d11] Don't use MAP_MODE_DIRECT for multi-plane images
This commit is contained in:
parent
01236fbd84
commit
6d9da5a8d7
1 changed files with 5 additions and 1 deletions
|
@ -507,7 +507,11 @@ namespace dxvk {
|
|||
// packing rules, so we need to copy that data into a buffer first
|
||||
if (GetPackedDepthStencilFormat(m_desc.Format))
|
||||
return D3D11_COMMON_TEXTURE_MAP_MODE_BUFFER;
|
||||
|
||||
|
||||
// Multi-plane images have a sepcial memory layout in D3D11
|
||||
if (imageFormatInfo(pImageInfo->format)->flags.test(DxvkFormatFlag::MultiPlane))
|
||||
return D3D11_COMMON_TEXTURE_MAP_MODE_BUFFER;
|
||||
|
||||
// Images that can be read by the host should be mapped directly in
|
||||
// order to avoid expensive synchronization with the GPU. This does
|
||||
// however require linear tiling, which may not be supported for all
|
||||
|
|
Loading…
Add table
Reference in a new issue