diff options
author | Axel Davy <[email protected]> | 2016-11-12 23:36:35 +0100 |
---|---|---|
committer | Axel Davy <[email protected]> | 2016-12-20 23:44:23 +0100 |
commit | 31262bbce085c69ef7a654528f509cb37415b41f (patch) | |
tree | 4aa276717d27ef00f20ef3ced214c4a79ef63f8f /src/gallium/state_trackers/nine/buffer9.c | |
parent | 22f6d6fbd270333979c282627349eb74c06acd6b (diff) |
st/nine: use get_pipe_acquire/release when possible
Use the acquire/release semantic when we don't need
to wait for any pending command.
Signed-off-by: Axel Davy <[email protected]>
Diffstat (limited to 'src/gallium/state_trackers/nine/buffer9.c')
-rw-r--r-- | src/gallium/state_trackers/nine/buffer9.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/gallium/state_trackers/nine/buffer9.c b/src/gallium/state_trackers/nine/buffer9.c index bd115ff70b1..086985b0d5a 100644 --- a/src/gallium/state_trackers/nine/buffer9.c +++ b/src/gallium/state_trackers/nine/buffer9.c @@ -327,11 +327,13 @@ NineBuffer9_Unlock( struct NineBuffer9 *This ) if (This->base.pool != D3DPOOL_MANAGED) { pipe = This->maps[This->nmaps].is_pipe_secondary ? device->pipe_secondary : - NineDevice9_GetPipe(device); + nine_context_get_pipe_acquire(device); pipe->transfer_unmap(pipe, This->maps[This->nmaps].transfer); /* We need to flush in case the driver does implicit copies */ if (This->maps[This->nmaps].is_pipe_secondary) pipe->flush(pipe, NULL, 0); + else + nine_context_get_pipe_release(device); } else { BASEBUF_REGISTER_UPDATE(This); } |