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/pixelshader9.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/pixelshader9.c')
-rw-r--r-- | src/gallium/state_trackers/nine/pixelshader9.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gallium/state_trackers/nine/pixelshader9.c b/src/gallium/state_trackers/nine/pixelshader9.c index cb970eae76b..bfc395cdf55 100644 --- a/src/gallium/state_trackers/nine/pixelshader9.c +++ b/src/gallium/state_trackers/nine/pixelshader9.c @@ -51,7 +51,6 @@ NinePixelShader9_ctor( struct NinePixelShader9 *This, return D3D_OK; } device = This->base.device; - pipe = NineDevice9_GetPipe(device); info.type = PIPE_SHADER_FRAGMENT; info.byte_code = pFunction; @@ -63,7 +62,9 @@ NinePixelShader9_ctor( struct NinePixelShader9 *This, info.projected = 0; info.process_vertices = false; + pipe = nine_context_get_pipe_acquire(device); hr = nine_translate_shader(device, &info, pipe); + nine_context_get_pipe_release(device); if (FAILED(hr)) return hr; This->byte_code.version = info.version; |