Skip to content

Commit

Permalink
[d3d9] Enable bounds testing for D3DPOOL_SYSTEMMEM buffers
Browse files Browse the repository at this point in the history
Improves performance in Halo CE.
  • Loading branch information
Joshua-Ashton committed Dec 22, 2019
1 parent d39ff90 commit b4f2094
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/d3d9/d3d9_device.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b4f2094

Please sign in to comment.