mirror of
https://github.com/doitsujin/dxvk.git
synced 2025-01-31 14:52:11 +01:00
[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:
parent
1db2e3a6ec
commit
1850819483
@ -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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user