[d3d9] Only use direct buffer mapping for DYNAMIC buffers

Tests show that buffers with just D3DUSAGE_WRITEONLY are uploaded on Unlock.
This commit is contained in:
Robin Kertels 2023-05-25 23:45:24 +02:00 committed by Joshie
parent 1db2e3a6ec
commit 1850819483
1 changed files with 1 additions and 1 deletions

View File

@ -62,7 +62,7 @@ namespace dxvk {
if (m_desc.Pool != D3DPOOL_DEFAULT)
return D3D9_COMMON_BUFFER_MAP_MODE_BUFFER;
if (!(m_desc.Usage & (D3DUSAGE_DYNAMIC | D3DUSAGE_WRITEONLY)))
if (!(m_desc.Usage & D3DUSAGE_DYNAMIC))
return D3D9_COMMON_BUFFER_MAP_MODE_BUFFER;
// Tests show that DISCARD does not work for pure SWVP devices.