From b4f2094c02bea9b241f558a1c1888ba28a88d3f0 Mon Sep 17 00:00:00 2001 From: Joshua Ashton Date: Sun, 22 Dec 2019 19:05:22 +0000 Subject: [PATCH] [d3d9] Enable bounds testing for D3DPOOL_SYSTEMMEM buffers Improves performance in Halo CE. --- src/d3d9/d3d9_device.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/d3d9/d3d9_device.cpp b/src/d3d9/d3d9_device.cpp index df06b203..c2801341 100644 --- a/src/d3d9/d3d9_device.cpp +++ b/src/d3d9/d3d9_device.cpp @@ -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