Commit e582117f authored by Joshua Ashton's avatar Joshua Ashton 🐸

[d3d9] Expose DIRECT for WRITEONLY buffers

CSGO continues writing to these buffers after unlocking on the async filesystem thread.

Closes #462
parent 4239fcc4
Pipeline #922 passed with stage
in 10 minutes and 11 seconds
......@@ -85,7 +85,7 @@ namespace dxvk {
D3D9_BUFFER_DESC* pDesc);
D3D9_COMMON_BUFFER_MAP_MODE GetMapMode() const {
return (m_desc.Pool == D3DPOOL_DEFAULT && (m_desc.Usage & D3DUSAGE_DYNAMIC))
return (m_desc.Pool == D3DPOOL_DEFAULT && (m_desc.Usage & D3DUSAGE_DYNAMIC | D3DUSAGE_WRITEONLY))
? D3D9_COMMON_BUFFER_MAP_MODE_DIRECT
: D3D9_COMMON_BUFFER_MAP_MODE_BUFFER;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment