1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2025-01-18 02:52:10 +01:00

[d3d11] Don't use MAP_MODE_DIRECT for multi-plane images

This commit is contained in:
Philip Rebohle 2021-05-19 19:18:51 +02:00
parent 01236fbd84
commit 6d9da5a8d7
No known key found for this signature in database
GPG Key ID: C8CC613427A31C99

View File

@ -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