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

[d3d9] Enable bounds testing for D3DPOOL_SYSTEMMEM buffers

Improves performance in Halo CE.
parent d39ff902
Pipeline #976 passed with stage
in 4 minutes and 7 seconds
......@@ -4101,7 +4101,7 @@ namespace dxvk {
// D3D9 does not do region tracking for READONLY locks
// But lets also account for whether we get readback from ProcessVertices
const bool quickRead = ((Flags & D3DLOCK_READONLY) && !pResource->GetReadLocked());
const bool boundsCheck = IsPoolManaged(desc.Pool) && !quickRead;
const bool boundsCheck = desc.Pool != D3DPOOL_DEFAULT && !quickRead;
if (boundsCheck) {
// We can only respect this for these cases -- otherwise R/W OOB still get copied on native
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