1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2025-03-13 19:29:14 +01:00

[d3d11] Only use mapped buffer for images if bind flags are non-zero

We really shouldn't use the intermediate buffer for DYNAMIC images
that can only ever be used for copy commands, since the copies will
be redundant.
This commit is contained in:
Philip Rebohle 2019-09-18 13:15:22 +02:00
parent 65428da3fe
commit bc853d0e48
No known key found for this signature in database
GPG Key ID: C8CC613427A31C99

View File

@ -415,6 +415,7 @@ namespace dxvk {
// writing the image to device-local image may be more efficient than
// reading its contents from host-visible memory.
if (m_desc.Usage == D3D11_USAGE_DYNAMIC
&& m_desc.BindFlags != 0
&& m_desc.TextureLayout != D3D11_TEXTURE_LAYOUT_ROW_MAJOR)
return D3D11_COMMON_TEXTURE_MAP_MODE_BUFFER;