diff options
author | Axel Davy <[email protected]> | 2019-04-13 00:39:59 +0200 |
---|---|---|
committer | Axel Davy <[email protected]> | 2019-04-30 19:18:50 +0200 |
commit | f4ae483c44ffdc56f990f6ebff7b9b4dde2cd54f (patch) | |
tree | e59419aeb349eb2c00f0540307003ebc358fbd93 /src | |
parent | fd3a870401acd0fd3ff2369659a77e42aab81489 (diff) |
st/nine: Ignore nooverwrite for systemmem
Systemmem has a specific behaviour we don't
mimick exactly.
That makes Halo feel free to use nooverwrite
with it all the time, even when reading again
at the same location.
Ignore nooverwrite to have proper synchronization.
Fixes: https://github.com/iXit/Mesa-3D/issues/348
Signed-off-by: Axel Davy <[email protected]>
Diffstat (limited to 'src')
-rw-r--r-- | src/gallium/state_trackers/nine/buffer9.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/state_trackers/nine/buffer9.c b/src/gallium/state_trackers/nine/buffer9.c index 54855f16aef..30066f11c83 100644 --- a/src/gallium/state_trackers/nine/buffer9.c +++ b/src/gallium/state_trackers/nine/buffer9.c @@ -276,7 +276,7 @@ NineBuffer9_Lock( struct NineBuffer9 *This, * Our tests: SYSTEMMEM doesn't DISCARD */ if (This->base.pool == D3DPOOL_SYSTEMMEM) - Flags &= ~D3DLOCK_DISCARD; + Flags &= ~(D3DLOCK_DISCARD | D3DLOCK_NOOVERWRITE); if (Flags & D3DLOCK_DISCARD) usage = PIPE_TRANSFER_WRITE | PIPE_TRANSFER_DISCARD_WHOLE_RESOURCE; |