diff options
Diffstat (limited to 'src/gallium/state_trackers/nine/nine_lock.c')
-rw-r--r-- | src/gallium/state_trackers/nine/nine_lock.c | 440 |
1 files changed, 220 insertions, 220 deletions
diff --git a/src/gallium/state_trackers/nine/nine_lock.c b/src/gallium/state_trackers/nine/nine_lock.c index 0ac0cd778af..ca0f04a69b3 100644 --- a/src/gallium/state_trackers/nine/nine_lock.c +++ b/src/gallium/state_trackers/nine/nine_lock.c @@ -59,7 +59,7 @@ NineLockGlobalMutex() void NineUnlockGlobalMutex() { - pipe_mutex_unlock(d3dlock_global); + mtx_unlock(&d3dlock_global); } static HRESULT NINE_WINAPI @@ -69,7 +69,7 @@ LockAuthenticatedChannel9_GetCertificateSize( struct NineAuthenticatedChannel9 * HRESULT r; mtx_lock(&d3dlock_global); r = NineAuthenticatedChannel9_GetCertificateSize(This, pCertificateSize); - pipe_mutex_unlock(d3dlock_global); + mtx_unlock(&d3dlock_global); return r; } @@ -81,7 +81,7 @@ LockAuthenticatedChannel9_GetCertificate( struct NineAuthenticatedChannel9 *This HRESULT r; mtx_lock(&d3dlock_global); r = NineAuthenticatedChannel9_GetCertificate(This, CertifacteSize, ppCertificate); - pipe_mutex_unlock(d3dlock_global); + mtx_unlock(&d3dlock_global); return r; } @@ -93,7 +93,7 @@ LockAuthenticatedChannel9_NegotiateKeyExchange( struct NineAuthenticatedChannel9 HRESULT r; mtx_lock(&d3dlock_global); r = NineAuthenticatedChannel9_NegotiateKeyExchange(This, DataSize, pData); - pipe_mutex_unlock(d3dlock_global); + mtx_unlock(&d3dlock_global); return r; } @@ -107,7 +107,7 @@ LockAuthenticatedChannel9_Query( struct NineAuthenticatedChannel9 *This, HRESULT r; mtx_lock(&d3dlock_global); r = NineAuthenticatedChannel9_Query(This, InputSize, pInput, OutputSize, pOutput); - pipe_mutex_unlock(d3dlock_global); + mtx_unlock(&d3dlock_global); return r; } @@ -120,7 +120,7 @@ LockAuthenticatedChannel9_Configure( struct NineAuthenticatedChannel9 *This, HRESULT r; mtx_lock(&d3dlock_global); r = NineAuthenticatedChannel9_Configure(This, InputSize, pInput, pOutput); - pipe_mutex_unlock(d3dlock_global); + mtx_unlock(&d3dlock_global); return r; } @@ -145,7 +145,7 @@ LockUnknown_SetPrivateData( struct NineUnknown *This, HRESULT r; mtx_lock(&d3dlock_global); r = NineUnknown_SetPrivateData(This, refguid, pData, SizeOfData, Flags); - pipe_mutex_unlock(d3dlock_global); + mtx_unlock(&d3dlock_global); return r; } @@ -158,7 +158,7 @@ LockUnknown_GetPrivateData( struct NineUnknown *This, HRESULT r; mtx_lock(&d3dlock_global); r = NineUnknown_GetPrivateData(This, refguid, pData, pSizeOfData); - pipe_mutex_unlock(d3dlock_global); + mtx_unlock(&d3dlock_global); return r; } @@ -169,7 +169,7 @@ LockUnknown_FreePrivateData( struct NineUnknown *This, HRESULT r; mtx_lock(&d3dlock_global); r = NineUnknown_FreePrivateData(This, refguid); - pipe_mutex_unlock(d3dlock_global); + mtx_unlock(&d3dlock_global); return r; } @@ -181,7 +181,7 @@ LockResource9_GetDevice( struct NineResource9 *This, HRESULT r; mtx_lock(&d3dlock_global); r = NineUnknown_GetDevice(NineUnknown(This), ppDevice); - pipe_mutex_unlock(d3dlock_global); + mtx_unlock(&d3dlock_global); return r; } #endif @@ -193,7 +193,7 @@ LockResource9_SetPriority( struct NineResource9 *This, DWORD r; mtx_lock(&d3dlock_global); r = NineResource9_SetPriority(This, PriorityNew); - pipe_mutex_unlock(d3dlock_global); + mtx_unlock(&d3dlock_global); return r; } @@ -203,7 +203,7 @@ LockResource9_GetPriority( struct NineResource9 *This ) DWORD r; mtx_lock(&d3dlock_global); r = NineResource9_GetPriority(This); - pipe_mutex_unlock(d3dlock_global); + mtx_unlock(&d3dlock_global); return r; } @@ -213,7 +213,7 @@ LockResource9_PreLoad( struct NineResource9 *This ) { mtx_lock(&d3dlock_global); NineResource9_PreLoad(This); - pipe_mutex_unlock(d3dlock_global); + mtx_unlock(&d3dlock_global); } #endif @@ -224,7 +224,7 @@ LockResource9_GetType( struct NineResource9 *This ) D3DRESOURCETYPE r; mtx_lock(&d3dlock_global); r = NineResource9_GetType(This); - pipe_mutex_unlock(d3dlock_global); + mtx_unlock(&d3dlock_global); return r; } #endif @@ -236,7 +236,7 @@ LockBaseTexture9_SetLOD( struct NineBaseTexture9 *This, DWORD r; mtx_lock(&d3dlock_global); r = NineBaseTexture9_SetLOD(This, LODNew); - pipe_mutex_unlock(d3dlock_global); + mtx_unlock(&d3dlock_global); return r; } @@ -246,7 +246,7 @@ LockBaseTexture9_GetLOD( struct NineBaseTexture9 *This ) DWORD r; mtx_lock(&d3dlock_global); r = NineBaseTexture9_GetLOD(This); - pipe_mutex_unlock(d3dlock_global); + mtx_unlock(&d3dlock_global); return r; } @@ -256,7 +256,7 @@ LockBaseTexture9_GetLevelCount( struct NineBaseTexture9 *This ) DWORD r; mtx_lock(&d3dlock_global); r = NineBaseTexture9_GetLevelCount(This); - pipe_mutex_unlock(d3dlock_global); + mtx_unlock(&d3dlock_global); return r; } @@ -267,7 +267,7 @@ LockBaseTexture9_SetAutoGenFilterType( struct NineBaseTexture9 *This, HRESULT r; mtx_lock(&d3dlock_global); r = NineBaseTexture9_SetAutoGenFilterType(This, FilterType); - pipe_mutex_unlock(d3dlock_global); + mtx_unlock(&d3dlock_global); return r; } @@ -277,7 +277,7 @@ LockBaseTexture9_GetAutoGenFilterType( struct NineBaseTexture9 *This ) D3DTEXTUREFILTERTYPE r; mtx_lock(&d3dlock_global); r = NineBaseTexture9_GetAutoGenFilterType(This); - pipe_mutex_unlock(d3dlock_global); + mtx_unlock(&d3dlock_global); return r; } @@ -286,7 +286,7 @@ LockBaseTexture9_PreLoad( struct NineBaseTexture9 *This ) { mtx_lock(&d3dlock_global); NineBaseTexture9_PreLoad(This); - pipe_mutex_unlock(d3dlock_global); + mtx_unlock(&d3dlock_global); } static void NINE_WINAPI @@ -294,7 +294,7 @@ LockBaseTexture9_GenerateMipSubLevels( struct NineBaseTexture9 *This ) { mtx_lock(&d3dlock_global); NineBaseTexture9_GenerateMipSubLevels(This); - pipe_mutex_unlock(d3dlock_global); + mtx_unlock(&d3dlock_global); } static HRESULT NINE_WINAPI @@ -304,7 +304,7 @@ LockCryptoSession9_GetCertificateSize( struct NineCryptoSession9 *This, HRESULT r; mtx_lock(&d3dlock_global); r = NineCryptoSession9_GetCertificateSize(This, pCertificateSize); - pipe_mutex_unlock(d3dlock_global); + mtx_unlock(&d3dlock_global); return r; } @@ -316,7 +316,7 @@ LockCryptoSession9_GetCertificate( struct NineCryptoSession9 *This, HRESULT r; mtx_lock(&d3dlock_global); r = NineCryptoSession9_GetCertificate(This, CertifacteSize, ppCertificate); - pipe_mutex_unlock(d3dlock_global); + mtx_unlock(&d3dlock_global); return r; } @@ -328,7 +328,7 @@ LockCryptoSession9_NegotiateKeyExchange( struct NineCryptoSession9 *This, HRESULT r; mtx_lock(&d3dlock_global); r = NineCryptoSession9_NegotiateKeyExchange(This, DataSize, pData); - pipe_mutex_unlock(d3dlock_global); + mtx_unlock(&d3dlock_global); return r; } @@ -342,7 +342,7 @@ LockCryptoSession9_EncryptionBlt( struct NineCryptoSession9 *This, HRESULT r; mtx_lock(&d3dlock_global); r = NineCryptoSession9_EncryptionBlt(This, pSrcSurface, pDstSurface, DstSurfaceSize, pIV); - pipe_mutex_unlock(d3dlock_global); + mtx_unlock(&d3dlock_global); return r; } @@ -358,7 +358,7 @@ LockCryptoSession9_DecryptionBlt( struct NineCryptoSession9 *This, HRESULT r; mtx_lock(&d3dlock_global); r = NineCryptoSession9_DecryptionBlt(This, pSrcSurface, pDstSurface, SrcSurfaceSize, pEncryptedBlockInfo, pContentKey, pIV); - pipe_mutex_unlock(d3dlock_global); + mtx_unlock(&d3dlock_global); return r; } @@ -370,7 +370,7 @@ LockCryptoSession9_GetSurfacePitch( struct NineCryptoSession9 *This, HRESULT r; mtx_lock(&d3dlock_global); r = NineCryptoSession9_GetSurfacePitch(This, pSrcSurface, pSurfacePitch); - pipe_mutex_unlock(d3dlock_global); + mtx_unlock(&d3dlock_global); return r; } @@ -382,7 +382,7 @@ LockCryptoSession9_StartSessionKeyRefresh( struct NineCryptoSession9 *This, HRESULT r; mtx_lock(&d3dlock_global); r = NineCryptoSession9_StartSessionKeyRefresh(This, pRandomNumber, RandomNumberSize); - pipe_mutex_unlock(d3dlock_global); + mtx_unlock(&d3dlock_global); return r; } @@ -392,7 +392,7 @@ LockCryptoSession9_FinishSessionKeyRefresh( struct NineCryptoSession9 *This ) HRESULT r; mtx_lock(&d3dlock_global); r = NineCryptoSession9_FinishSessionKeyRefresh(This); - pipe_mutex_unlock(d3dlock_global); + mtx_unlock(&d3dlock_global); return r; } @@ -404,7 +404,7 @@ LockCryptoSession9_GetEncryptionBltKey( struct NineCryptoSession9 *This, HRESULT r; mtx_lock(&d3dlock_global); r = NineCryptoSession9_GetEncryptionBltKey(This, pReadbackKey, KeySize); - pipe_mutex_unlock(d3dlock_global); + mtx_unlock(&d3dlock_global); return r; } @@ -432,7 +432,7 @@ LockCubeTexture9_GetLevelDesc( struct NineCubeTexture9 *This, HRESULT r; mtx_lock(&d3dlock_global); r = NineCubeTexture9_GetLevelDesc(This, Level, pDesc); - pipe_mutex_unlock(d3dlock_global); + mtx_unlock(&d3dlock_global); return r; } #endif @@ -447,7 +447,7 @@ LockCubeTexture9_GetCubeMapSurface( struct NineCubeTexture9 *This, HRESULT r; mtx_lock(&d3dlock_global); r = NineCubeTexture9_GetCubeMapSurface(This, FaceType, Level, ppCubeMapSurface); - pipe_mutex_unlock(d3dlock_global); + mtx_unlock(&d3dlock_global); return r; } #endif @@ -463,7 +463,7 @@ LockCubeTexture9_LockRect( struct NineCubeTexture9 *This, HRESULT r; mtx_lock(&d3dlock_global); r = NineCubeTexture9_LockRect(This, FaceType, Level, pLockedRect, pRect, Flags); - pipe_mutex_unlock(d3dlock_global); + mtx_unlock(&d3dlock_global); return r; } @@ -475,7 +475,7 @@ LockCubeTexture9_UnlockRect( struct NineCubeTexture9 *This, HRESULT r; mtx_lock(&d3dlock_global); r = NineCubeTexture9_UnlockRect(This, FaceType, Level); - pipe_mutex_unlock(d3dlock_global); + mtx_unlock(&d3dlock_global); return r; } @@ -487,7 +487,7 @@ LockCubeTexture9_AddDirtyRect( struct NineCubeTexture9 *This, HRESULT r; mtx_lock(&d3dlock_global); r = NineCubeTexture9_AddDirtyRect(This, FaceType, pDirtyRect); - pipe_mutex_unlock(d3dlock_global); + mtx_unlock(&d3dlock_global); return r; } @@ -522,7 +522,7 @@ LockDevice9_TestCooperativeLevel( struct NineDevice9 *This ) HRESULT r; mtx_lock(&d3dlock_global); r = NineDevice9_TestCooperativeLevel(This); - pipe_mutex_unlock(d3dlock_global); + mtx_unlock(&d3dlock_global); return r; } @@ -532,7 +532,7 @@ LockDevice9_GetAvailableTextureMem( struct NineDevice9 *This ) UINT r; mtx_lock(&d3dlock_global); r = NineDevice9_GetAvailableTextureMem(This); - pipe_mutex_unlock(d3dlock_global); + mtx_unlock(&d3dlock_global); return r; } @@ -542,7 +542,7 @@ LockDevice9_EvictManagedResources( struct NineDevice9 *This ) HRESULT r; mtx_lock(&d3dlock_global); r = NineDevice9_EvictManagedResources(This); - pipe_mutex_unlock(d3dlock_global); + mtx_unlock(&d3dlock_global); return r; } @@ -553,7 +553,7 @@ LockDevice9_GetDirect3D( struct NineDevice9 *This, HRESULT r; mtx_lock(&d3dlock_global); r = NineDevice9_GetDirect3D(This, ppD3D9); - pipe_mutex_unlock(d3dlock_global); + mtx_unlock(&d3dlock_global); return r; } @@ -565,7 +565,7 @@ LockDevice9_GetDeviceCaps( struct NineDevice9 *This, HRESULT r; mtx_lock(&d3dlock_global); r = NineDevice9_GetDeviceCaps(This, pCaps); - pipe_mutex_unlock(d3dlock_global); + mtx_unlock(&d3dlock_global); return r; } #endif @@ -578,7 +578,7 @@ LockDevice9_GetDisplayMode( struct NineDevice9 *This, HRESULT r; mtx_lock(&d3dlock_global); r = NineDevice9_GetDisplayMode(This, iSwapChain, pMode); - pipe_mutex_unlock(d3dlock_global); + mtx_unlock(&d3dlock_global); return r; } @@ -590,7 +590,7 @@ LockDevice9_GetCreationParameters( struct NineDevice9 *This, HRESULT r; mtx_lock(&d3dlock_global); r = NineDevice9_GetCreationParameters(This, pParameters); - pipe_mutex_unlock(d3dlock_global); + mtx_unlock(&d3dlock_global); return r; } #endif @@ -604,7 +604,7 @@ LockDevice9_SetCursorProperties( struct NineDevice9 *This, HRESULT r; mtx_lock(&d3dlock_global); r = NineDevice9_SetCursorProperties(This, XHotSpot, YHotSpot, pCursorBitmap); - pipe_mutex_unlock(d3dlock_global); + mtx_unlock(&d3dlock_global); return r; } @@ -616,7 +616,7 @@ LockDevice9_SetCursorPosition( struct NineDevice9 *This, { mtx_lock(&d3dlock_global); NineDevice9_SetCursorPosition(This, X, Y, Flags); - pipe_mutex_unlock(d3dlock_global); + mtx_unlock(&d3dlock_global); } static BOOL NINE_WINAPI @@ -626,7 +626,7 @@ LockDevice9_ShowCursor( struct NineDevice9 *This, BOOL r; mtx_lock(&d3dlock_global); r = NineDevice9_ShowCursor(This, bShow); - pipe_mutex_unlock(d3dlock_global); + mtx_unlock(&d3dlock_global); return r; } @@ -638,7 +638,7 @@ LockDevice9_CreateAdditionalSwapChain( struct NineDevice9 *This, HRESULT r; mtx_lock(&d3dlock_global); r = NineDevice9_CreateAdditionalSwapChain(This, pPresentationParameters, pSwapChain); - pipe_mutex_unlock(d3dlock_global); + mtx_unlock(&d3dlock_global); return r; } @@ -650,7 +650,7 @@ LockDevice9_GetSwapChain( struct NineDevice9 *This, HRESULT r; mtx_lock(&d3dlock_global); r = NineDevice9_GetSwapChain(This, iSwapChain, pSwapChain); - pipe_mutex_unlock(d3dlock_global); + mtx_unlock(&d3dlock_global); return r; } @@ -660,7 +660,7 @@ LockDevice9_GetNumberOfSwapChains( struct NineDevice9 *This ) UINT r; mtx_lock(&d3dlock_global); r = NineDevice9_GetNumberOfSwapChains(This); - pipe_mutex_unlock(d3dlock_global); + mtx_unlock(&d3dlock_global); return r; } @@ -671,7 +671,7 @@ LockDevice9_Reset( struct NineDevice9 *This, HRESULT r; mtx_lock(&d3dlock_global); r = NineDevice9_Reset(This, pPresentationParameters); - pipe_mutex_unlock(d3dlock_global); + mtx_unlock(&d3dlock_global); return r; } @@ -685,7 +685,7 @@ LockDevice9_Present( struct NineDevice9 *This, HRESULT r; mtx_lock(&d3dlock_global); r = NineDevice9_Present(This, pSourceRect, pDestRect, hDestWindowOverride, pDirtyRegion); - pipe_mutex_unlock(d3dlock_global); + mtx_unlock(&d3dlock_global); return r; } @@ -699,7 +699,7 @@ LockDevice9_GetBackBuffer( struct NineDevice9 *This, HRESULT r; mtx_lock(&d3dlock_global); r = NineDevice9_GetBackBuffer(This, iSwapChain, iBackBuffer, Type, ppBackBuffer); - pipe_mutex_unlock(d3dlock_global); + mtx_unlock(&d3dlock_global); return r; } @@ -711,7 +711,7 @@ LockDevice9_GetRasterStatus( struct NineDevice9 *This, HRESULT r; mtx_lock(&d3dlock_global); r = NineDevice9_GetRasterStatus(This, iSwapChain, pRasterStatus); - pipe_mutex_unlock(d3dlock_global); + mtx_unlock(&d3dlock_global); return r; } @@ -722,7 +722,7 @@ LockDevice9_SetDialogBoxMode( struct NineDevice9 *This, HRESULT r; mtx_lock(&d3dlock_global); r = NineDevice9_SetDialogBoxMode(This, bEnableDialogs); - pipe_mutex_unlock(d3dlock_global); + mtx_unlock(&d3dlock_global); return r; } @@ -734,7 +734,7 @@ LockDevice9_SetGammaRamp( struct NineDevice9 *This, { mtx_lock(&d3dlock_global); NineDevice9_SetGammaRamp(This, iSwapChain, Flags, pRamp); - pipe_mutex_unlock(d3dlock_global); + mtx_unlock(&d3dlock_global); } static void NINE_WINAPI @@ -744,7 +744,7 @@ LockDevice9_GetGammaRamp( struct NineDevice9 *This, { mtx_lock(&d3dlock_global); NineDevice9_GetGammaRamp(This, iSwapChain, pRamp); - pipe_mutex_unlock(d3dlock_global); + mtx_unlock(&d3dlock_global); } static HRESULT NINE_WINAPI @@ -761,7 +761,7 @@ LockDevice9_CreateTexture( struct NineDevice9 *This, HRESULT r; mtx_lock(&d3dlock_global); r = NineDevice9_CreateTexture(This, Width, Height, Levels, Usage, Format, Pool, ppTexture, pSharedHandle); - pipe_mutex_unlock(d3dlock_global); + mtx_unlock(&d3dlock_global); return r; } @@ -780,7 +780,7 @@ LockDevice9_CreateVolumeTexture( struct NineDevice9 *This, HRESULT r; mtx_lock(&d3dlock_global); r = NineDevice9_CreateVolumeTexture(This, Width, Height, Depth, Levels, Usage, Format, Pool, ppVolumeTexture, pSharedHandle); - pipe_mutex_unlock(d3dlock_global); + mtx_unlock(&d3dlock_global); return r; } @@ -797,7 +797,7 @@ LockDevice9_CreateCubeTexture( struct NineDevice9 *This, HRESULT r; mtx_lock(&d3dlock_global); r = NineDevice9_CreateCubeTexture(This, EdgeLength, Levels, Usage, Format, Pool, ppCubeTexture, pSharedHandle); - pipe_mutex_unlock(d3dlock_global); + mtx_unlock(&d3dlock_global); return r; } @@ -813,7 +813,7 @@ LockDevice9_CreateVertexBuffer( struct NineDevice9 *This, HRESULT r; mtx_lock(&d3dlock_global); r = NineDevice9_CreateVertexBuffer(This, Length, Usage, FVF, Pool, ppVertexBuffer, pSharedHandle); - pipe_mutex_unlock(d3dlock_global); + mtx_unlock(&d3dlock_global); return r; } @@ -829,7 +829,7 @@ LockDevice9_CreateIndexBuffer( struct NineDevice9 *This, HRESULT r; mtx_lock(&d3dlock_global); r = NineDevice9_CreateIndexBuffer(This, Length, Usage, Format, Pool, ppIndexBuffer, pSharedHandle); - pipe_mutex_unlock(d3dlock_global); + mtx_unlock(&d3dlock_global); return r; } @@ -847,7 +847,7 @@ LockDevice9_CreateRenderTarget( struct NineDevice9 *This, HRESULT r; mtx_lock(&d3dlock_global); r = NineDevice9_CreateRenderTarget(This, Width, Height, Format, MultiSample, MultisampleQuality, Lockable, ppSurface, pSharedHandle); - pipe_mutex_unlock(d3dlock_global); + mtx_unlock(&d3dlock_global); return r; } @@ -865,7 +865,7 @@ LockDevice9_CreateDepthStencilSurface( struct NineDevice9 *This, HRESULT r; mtx_lock(&d3dlock_global); r = NineDevice9_CreateDepthStencilSurface(This, Width, Height, Format, MultiSample, MultisampleQuality, Discard, ppSurface, pSharedHandle); - pipe_mutex_unlock(d3dlock_global); + mtx_unlock(&d3dlock_global); return r; } @@ -879,7 +879,7 @@ LockDevice9_UpdateSurface( struct NineDevice9 *This, HRESULT r; mtx_lock(&d3dlock_global); r = NineDevice9_UpdateSurface(This, pSourceSurface, pSourceRect, pDestinationSurface, pDestPoint); - pipe_mutex_unlock(d3dlock_global); + mtx_unlock(&d3dlock_global); return r; } @@ -891,7 +891,7 @@ LockDevice9_UpdateTexture( struct NineDevice9 *This, HRESULT r; mtx_lock(&d3dlock_global); r = NineDevice9_UpdateTexture(This, pSourceTexture, pDestinationTexture); - pipe_mutex_unlock(d3dlock_global); + mtx_unlock(&d3dlock_global); return r; } @@ -903,7 +903,7 @@ LockDevice9_GetRenderTargetData( struct NineDevice9 *This, HRESULT r; mtx_lock(&d3dlock_global); r = NineDevice9_GetRenderTargetData(This, pRenderTarget, pDestSurface); - pipe_mutex_unlock(d3dlock_global); + mtx_unlock(&d3dlock_global); return r; } @@ -915,7 +915,7 @@ LockDevice9_GetFrontBufferData( struct NineDevice9 *This, HRESULT r; mtx_lock(&d3dlock_global); r = NineDevice9_GetFrontBufferData(This, iSwapChain, pDestSurface); - pipe_mutex_unlock(d3dlock_global); + mtx_unlock(&d3dlock_global); return r; } @@ -930,7 +930,7 @@ LockDevice9_StretchRect( struct NineDevice9 *This, HRESULT r; mtx_lock(&d3dlock_global); r = NineDevice9_StretchRect(This, pSourceSurface, pSourceRect, pDestSurface, pDestRect, Filter); - pipe_mutex_unlock(d3dlock_global); + mtx_unlock(&d3dlock_global); return r; } @@ -943,7 +943,7 @@ LockDevice9_ColorFill( struct NineDevice9 *This, HRESULT r; mtx_lock(&d3dlock_global); r = NineDevice9_ColorFill(This, pSurface, pRect, color); - pipe_mutex_unlock(d3dlock_global); + mtx_unlock(&d3dlock_global); return r; } @@ -959,7 +959,7 @@ LockDevice9_CreateOffscreenPlainSurface( struct NineDevice9 *This, HRESULT r; mtx_lock(&d3dlock_global); r = NineDevice9_CreateOffscreenPlainSurface(This, Width, Height, Format, Pool, ppSurface, pSharedHandle); - pipe_mutex_unlock(d3dlock_global); + mtx_unlock(&d3dlock_global); return r; } @@ -971,7 +971,7 @@ LockDevice9_SetRenderTarget( struct NineDevice9 *This, HRESULT r; mtx_lock(&d3dlock_global); r = NineDevice9_SetRenderTarget(This, RenderTargetIndex, pRenderTarget); - pipe_mutex_unlock(d3dlock_global); + mtx_unlock(&d3dlock_global); return r; } @@ -983,7 +983,7 @@ LockDevice9_GetRenderTarget( struct NineDevice9 *This, HRESULT r; mtx_lock(&d3dlock_global); r = NineDevice9_GetRenderTarget(This, RenderTargetIndex, ppRenderTarget); - pipe_mutex_unlock(d3dlock_global); + mtx_unlock(&d3dlock_global); return r; } @@ -994,7 +994,7 @@ LockDevice9_SetDepthStencilSurface( struct NineDevice9 *This, HRESULT r; mtx_lock(&d3dlock_global); r = NineDevice9_SetDepthStencilSurface(This, pNewZStencil); - pipe_mutex_unlock(d3dlock_global); + mtx_unlock(&d3dlock_global); return r; } @@ -1005,7 +1005,7 @@ LockDevice9_GetDepthStencilSurface( struct NineDevice9 *This, HRESULT r; mtx_lock(&d3dlock_global); r = NineDevice9_GetDepthStencilSurface(This, ppZStencilSurface); - pipe_mutex_unlock(d3dlock_global); + mtx_unlock(&d3dlock_global); return r; } @@ -1015,7 +1015,7 @@ LockDevice9_BeginScene( struct NineDevice9 *This ) HRESULT r; mtx_lock(&d3dlock_global); r = NineDevice9_BeginScene(This); - pipe_mutex_unlock(d3dlock_global); + mtx_unlock(&d3dlock_global); return r; } @@ -1025,7 +1025,7 @@ LockDevice9_EndScene( struct NineDevice9 *This ) HRESULT r; mtx_lock(&d3dlock_global); r = NineDevice9_EndScene(This); - pipe_mutex_unlock(d3dlock_global); + mtx_unlock(&d3dlock_global); return r; } @@ -1041,7 +1041,7 @@ LockDevice9_Clear( struct NineDevice9 *This, HRESULT r; mtx_lock(&d3dlock_global); r = NineDevice9_Clear(This, Count, pRects, Flags, Color, Z, Stencil); - pipe_mutex_unlock(d3dlock_global); + mtx_unlock(&d3dlock_global); return r; } @@ -1053,7 +1053,7 @@ LockDevice9_SetTransform( struct NineDevice9 *This, HRESULT r; mtx_lock(&d3dlock_global); r = NineDevice9_SetTransform(This, State, pMatrix); - pipe_mutex_unlock(d3dlock_global); + mtx_unlock(&d3dlock_global); return r; } @@ -1065,7 +1065,7 @@ LockDevice9_GetTransform( struct NineDevice9 *This, HRESULT r; mtx_lock(&d3dlock_global); r = NineDevice9_GetTransform(This, State, pMatrix); - pipe_mutex_unlock(d3dlock_global); + mtx_unlock(&d3dlock_global); return r; } @@ -1077,7 +1077,7 @@ LockDevice9_MultiplyTransform( struct NineDevice9 *This, HRESULT r; mtx_lock(&d3dlock_global); r = NineDevice9_MultiplyTransform(This, State, pMatrix); - pipe_mutex_unlock(d3dlock_global); + mtx_unlock(&d3dlock_global); return r; } @@ -1088,7 +1088,7 @@ LockDevice9_SetViewport( struct NineDevice9 *This, HRESULT r; mtx_lock(&d3dlock_global); r = NineDevice9_SetViewport(This, pViewport); - pipe_mutex_unlock(d3dlock_global); + mtx_unlock(&d3dlock_global); return r; } @@ -1099,7 +1099,7 @@ LockDevice9_GetViewport( struct NineDevice9 *This, HRESULT r; mtx_lock(&d3dlock_global); r = NineDevice9_GetViewport(This, pViewport); - pipe_mutex_unlock(d3dlock_global); + mtx_unlock(&d3dlock_global); return r; } @@ -1110,7 +1110,7 @@ LockDevice9_SetMaterial( struct NineDevice9 *This, HRESULT r; mtx_lock(&d3dlock_global); r = NineDevice9_SetMaterial(This, pMaterial); - pipe_mutex_unlock(d3dlock_global); + mtx_unlock(&d3dlock_global); return r; } @@ -1121,7 +1121,7 @@ LockDevice9_GetMaterial( struct NineDevice9 *This, HRESULT r; mtx_lock(&d3dlock_global); r = NineDevice9_GetMaterial(This, pMaterial); - pipe_mutex_unlock(d3dlock_global); + mtx_unlock(&d3dlock_global); return r; } @@ -1133,7 +1133,7 @@ LockDevice9_SetLight( struct NineDevice9 *This, HRESULT r; mtx_lock(&d3dlock_global); r = NineDevice9_SetLight(This, Index, pLight); - pipe_mutex_unlock(d3dlock_global); + mtx_unlock(&d3dlock_global); return r; } @@ -1145,7 +1145,7 @@ LockDevice9_GetLight( struct NineDevice9 *This, HRESULT r; mtx_lock(&d3dlock_global); r = NineDevice9_GetLight(This, Index, pLight); - pipe_mutex_unlock(d3dlock_global); + mtx_unlock(&d3dlock_global); return r; } @@ -1157,7 +1157,7 @@ LockDevice9_LightEnable( struct NineDevice9 *This, HRESULT r; mtx_lock(&d3dlock_global); r = NineDevice9_LightEnable(This, Index, Enable); - pipe_mutex_unlock(d3dlock_global); + mtx_unlock(&d3dlock_global); return r; } @@ -1169,7 +1169,7 @@ LockDevice9_GetLightEnable( struct NineDevice9 *This, HRESULT r; mtx_lock(&d3dlock_global); r = NineDevice9_GetLightEnable(This, Index, pEnable); - pipe_mutex_unlock(d3dlock_global); + mtx_unlock(&d3dlock_global); return r; } @@ -1181,7 +1181,7 @@ LockDevice9_SetClipPlane( struct NineDevice9 *This, HRESULT r; mtx_lock(&d3dlock_global); r = NineDevice9_SetClipPlane(This, Index, pPlane); - pipe_mutex_unlock(d3dlock_global); + mtx_unlock(&d3dlock_global); return r; } @@ -1193,7 +1193,7 @@ LockDevice9_GetClipPlane( struct NineDevice9 *This, HRESULT r; mtx_lock(&d3dlock_global); r = NineDevice9_GetClipPlane(This, Index, pPlane); - pipe_mutex_unlock(d3dlock_global); + mtx_unlock(&d3dlock_global); return r; } @@ -1205,7 +1205,7 @@ LockDevice9_SetRenderState( struct NineDevice9 *This, HRESULT r; mtx_lock(&d3dlock_global); r = NineDevice9_SetRenderState(This, State, Value); - pipe_mutex_unlock(d3dlock_global); + mtx_unlock(&d3dlock_global); return r; } @@ -1217,7 +1217,7 @@ LockDevice9_GetRenderState( struct NineDevice9 *This, HRESULT r; mtx_lock(&d3dlock_global); r = NineDevice9_GetRenderState(This, State, pValue); - pipe_mutex_unlock(d3dlock_global); + mtx_unlock(&d3dlock_global); return r; } @@ -1229,7 +1229,7 @@ LockDevice9_CreateStateBlock( struct NineDevice9 *This, HRESULT r; mtx_lock(&d3dlock_global); r = NineDevice9_CreateStateBlock(This, Type, ppSB); - pipe_mutex_unlock(d3dlock_global); + mtx_unlock(&d3dlock_global); return r; } @@ -1239,7 +1239,7 @@ LockDevice9_BeginStateBlock( struct NineDevice9 *This ) HRESULT r; mtx_lock(&d3dlock_global); r = NineDevice9_BeginStateBlock(This); - pipe_mutex_unlock(d3dlock_global); + mtx_unlock(&d3dlock_global); return r; } @@ -1250,7 +1250,7 @@ LockDevice9_EndStateBlock( struct NineDevice9 *This, HRESULT r; mtx_lock(&d3dlock_global); r = NineDevice9_EndStateBlock(This, ppSB); - pipe_mutex_unlock(d3dlock_global); + mtx_unlock(&d3dlock_global); return r; } @@ -1261,7 +1261,7 @@ LockDevice9_SetClipStatus( struct NineDevice9 *This, HRESULT r; mtx_lock(&d3dlock_global); r = NineDevice9_SetClipStatus(This, pClipStatus); - pipe_mutex_unlock(d3dlock_global); + mtx_unlock(&d3dlock_global); return r; } @@ -1272,7 +1272,7 @@ LockDevice9_GetClipStatus( struct NineDevice9 *This, HRESULT r; mtx_lock(&d3dlock_global); r = NineDevice9_GetClipStatus(This, pClipStatus); - pipe_mutex_unlock(d3dlock_global); + mtx_unlock(&d3dlock_global); return r; } @@ -1284,7 +1284,7 @@ LockDevice9_GetTexture( struct NineDevice9 *This, HRESULT r; mtx_lock(&d3dlock_global); r = NineDevice9_GetTexture(This, Stage, ppTexture); - pipe_mutex_unlock(d3dlock_global); + mtx_unlock(&d3dlock_global); return r; } @@ -1296,7 +1296,7 @@ LockDevice9_SetTexture( struct NineDevice9 *This, HRESULT r; mtx_lock(&d3dlock_global); r = NineDevice9_SetTexture(This, Stage, pTexture); - pipe_mutex_unlock(d3dlock_global); + mtx_unlock(&d3dlock_global); return r; } @@ -1309,7 +1309,7 @@ LockDevice9_GetTextureStageState( struct NineDevice9 *This, HRESULT r; mtx_lock(&d3dlock_global); r = NineDevice9_GetTextureStageState(This, Stage, Type, pValue); - pipe_mutex_unlock(d3dlock_global); + mtx_unlock(&d3dlock_global); return r; } @@ -1322,7 +1322,7 @@ LockDevice9_SetTextureStageState( struct NineDevice9 *This, HRESULT r; mtx_lock(&d3dlock_global); r = NineDevice9_SetTextureStageState(This, Stage, Type, Value); - pipe_mutex_unlock(d3dlock_global); + mtx_unlock(&d3dlock_global); return r; } @@ -1335,7 +1335,7 @@ LockDevice9_GetSamplerState( struct NineDevice9 *This, HRESULT r; mtx_lock(&d3dlock_global); r = NineDevice9_GetSamplerState(This, Sampler, Type, pValue); - pipe_mutex_unlock(d3dlock_global); + mtx_unlock(&d3dlock_global); return r; } @@ -1348,7 +1348,7 @@ LockDevice9_SetSamplerState( struct NineDevice9 *This, HRESULT r; mtx_lock(&d3dlock_global); r = NineDevice9_SetSamplerState(This, Sampler, Type, Value); - pipe_mutex_unlock(d3dlock_global); + mtx_unlock(&d3dlock_global); return r; } @@ -1359,7 +1359,7 @@ LockDevice9_ValidateDevice( struct NineDevice9 *This, HRESULT r; mtx_lock(&d3dlock_global); r = NineDevice9_ValidateDevice(This, pNumPasses); - pipe_mutex_unlock(d3dlock_global); + mtx_unlock(&d3dlock_global); return r; } @@ -1371,7 +1371,7 @@ LockDevice9_SetPaletteEntries( struct NineDevice9 *This, HRESULT r; mtx_lock(&d3dlock_global); r = NineDevice9_SetPaletteEntries(This, PaletteNumber, pEntries); - pipe_mutex_unlock(d3dlock_global); + mtx_unlock(&d3dlock_global); return r; } @@ -1383,7 +1383,7 @@ LockDevice9_GetPaletteEntries( struct NineDevice9 *This, HRESULT r; mtx_lock(&d3dlock_global); r = NineDevice9_GetPaletteEntries(This, PaletteNumber, pEntries); - pipe_mutex_unlock(d3dlock_global); + mtx_unlock(&d3dlock_global); return r; } @@ -1394,7 +1394,7 @@ LockDevice9_SetCurrentTexturePalette( struct NineDevice9 *This, HRESULT r; mtx_lock(&d3dlock_global); r = NineDevice9_SetCurrentTexturePalette(This, PaletteNumber); - pipe_mutex_unlock(d3dlock_global); + mtx_unlock(&d3dlock_global); return r; } @@ -1405,7 +1405,7 @@ LockDevice9_GetCurrentTexturePalette( struct NineDevice9 *This, HRESULT r; mtx_lock(&d3dlock_global); r = NineDevice9_GetCurrentTexturePalette(This, PaletteNumber); - pipe_mutex_unlock(d3dlock_global); + mtx_unlock(&d3dlock_global); return r; } @@ -1416,7 +1416,7 @@ LockDevice9_SetScissorRect( struct NineDevice9 *This, HRESULT r; mtx_lock(&d3dlock_global); r = NineDevice9_SetScissorRect(This, pRect); - pipe_mutex_unlock(d3dlock_global); + mtx_unlock(&d3dlock_global); return r; } @@ -1427,7 +1427,7 @@ LockDevice9_GetScissorRect( struct NineDevice9 *This, HRESULT r; mtx_lock(&d3dlock_global); r = NineDevice9_GetScissorRect(This, pRect); - pipe_mutex_unlock(d3dlock_global); + mtx_unlock(&d3dlock_global); return r; } @@ -1438,7 +1438,7 @@ LockDevice9_SetSoftwareVertexProcessing( struct NineDevice9 *This, HRESULT r; mtx_lock(&d3dlock_global); r = NineDevice9_SetSoftwareVertexProcessing(This, bSoftware); - pipe_mutex_unlock(d3dlock_global); + mtx_unlock(&d3dlock_global); return r; } @@ -1448,7 +1448,7 @@ LockDevice9_GetSoftwareVertexProcessing( struct NineDevice9 *This ) BOOL r; mtx_lock(&d3dlock_global); r = NineDevice9_GetSoftwareVertexProcessing(This); - pipe_mutex_unlock(d3dlock_global); + mtx_unlock(&d3dlock_global); return r; } @@ -1459,7 +1459,7 @@ LockDevice9_SetNPatchMode( struct NineDevice9 *This, HRESULT r; mtx_lock(&d3dlock_global); r = NineDevice9_SetNPatchMode(This, nSegments); - pipe_mutex_unlock(d3dlock_global); + mtx_unlock(&d3dlock_global); return r; } @@ -1469,7 +1469,7 @@ LockDevice9_GetNPatchMode( struct NineDevice9 *This ) float r; mtx_lock(&d3dlock_global); r = NineDevice9_GetNPatchMode(This); - pipe_mutex_unlock(d3dlock_global); + mtx_unlock(&d3dlock_global); return r; } @@ -1482,7 +1482,7 @@ LockDevice9_DrawPrimitive( struct NineDevice9 *This, HRESULT r; mtx_lock(&d3dlock_global); r = NineDevice9_DrawPrimitive(This, PrimitiveType, StartVertex, PrimitiveCount); - pipe_mutex_unlock(d3dlock_global); + mtx_unlock(&d3dlock_global); return r; } @@ -1498,7 +1498,7 @@ LockDevice9_DrawIndexedPrimitive( struct NineDevice9 *This, HRESULT r; mtx_lock(&d3dlock_global); r = NineDevice9_DrawIndexedPrimitive(This, PrimitiveType, BaseVertexIndex, MinVertexIndex, NumVertices, startIndex, primCount); - pipe_mutex_unlock(d3dlock_global); + mtx_unlock(&d3dlock_global); return r; } @@ -1512,7 +1512,7 @@ LockDevice9_DrawPrimitiveUP( struct NineDevice9 *This, HRESULT r; mtx_lock(&d3dlock_global); r = NineDevice9_DrawPrimitiveUP(This, PrimitiveType, PrimitiveCount, pVertexStreamZeroData, VertexStreamZeroStride); - pipe_mutex_unlock(d3dlock_global); + mtx_unlock(&d3dlock_global); return r; } @@ -1530,7 +1530,7 @@ LockDevice9_DrawIndexedPrimitiveUP( struct NineDevice9 *This, HRESULT r; mtx_lock(&d3dlock_global); r = NineDevice9_DrawIndexedPrimitiveUP(This, PrimitiveType, MinVertexIndex, NumVertices, PrimitiveCount, pIndexData, IndexDataFormat, pVertexStreamZeroData, VertexStreamZeroStride); - pipe_mutex_unlock(d3dlock_global); + mtx_unlock(&d3dlock_global); return r; } @@ -1546,7 +1546,7 @@ LockDevice9_ProcessVertices( struct NineDevice9 *This, HRESULT r; mtx_lock(&d3dlock_global); r = NineDevice9_ProcessVertices(This, SrcStartIndex, DestIndex, VertexCount, pDestBuffer, pVertexDecl, Flags); - pipe_mutex_unlock(d3dlock_global); + mtx_unlock(&d3dlock_global); return r; } @@ -1558,7 +1558,7 @@ LockDevice9_CreateVertexDeclaration( struct NineDevice9 *This, HRESULT r; mtx_lock(&d3dlock_global); r = NineDevice9_CreateVertexDeclaration(This, pVertexElements, ppDecl); - pipe_mutex_unlock(d3dlock_global); + mtx_unlock(&d3dlock_global); return r; } @@ -1569,7 +1569,7 @@ LockDevice9_SetVertexDeclaration( struct NineDevice9 *This, HRESULT r; mtx_lock(&d3dlock_global); r = NineDevice9_SetVertexDeclaration(This, pDecl); - pipe_mutex_unlock(d3dlock_global); + mtx_unlock(&d3dlock_global); return r; } @@ -1580,7 +1580,7 @@ LockDevice9_GetVertexDeclaration( struct NineDevice9 *This, HRESULT r; mtx_lock(&d3dlock_global); r = NineDevice9_GetVertexDeclaration(This, ppDecl); - pipe_mutex_unlock(d3dlock_global); + mtx_unlock(&d3dlock_global); return r; } @@ -1591,7 +1591,7 @@ LockDevice9_SetFVF( struct NineDevice9 *This, HRESULT r; mtx_lock(&d3dlock_global); r = NineDevice9_SetFVF(This, FVF); - pipe_mutex_unlock(d3dlock_global); + mtx_unlock(&d3dlock_global); return r; } @@ -1602,7 +1602,7 @@ LockDevice9_GetFVF( struct NineDevice9 *This, HRESULT r; mtx_lock(&d3dlock_global); r = NineDevice9_GetFVF(This, pFVF); - pipe_mutex_unlock(d3dlock_global); + mtx_unlock(&d3dlock_global); return r; } @@ -1614,7 +1614,7 @@ LockDevice9_CreateVertexShader( struct NineDevice9 *This, HRESULT r; mtx_lock(&d3dlock_global); r = NineDevice9_CreateVertexShader(This, pFunction, ppShader); - pipe_mutex_unlock(d3dlock_global); + mtx_unlock(&d3dlock_global); return r; } @@ -1625,7 +1625,7 @@ LockDevice9_SetVertexShader( struct NineDevice9 *This, HRESULT r; mtx_lock(&d3dlock_global); r = NineDevice9_SetVertexShader(This, pShader); - pipe_mutex_unlock(d3dlock_global); + mtx_unlock(&d3dlock_global); return r; } @@ -1636,7 +1636,7 @@ LockDevice9_GetVertexShader( struct NineDevice9 *This, HRESULT r; mtx_lock(&d3dlock_global); r = NineDevice9_GetVertexShader(This, ppShader); - pipe_mutex_unlock(d3dlock_global); + mtx_unlock(&d3dlock_global); return r; } @@ -1649,7 +1649,7 @@ LockDevice9_SetVertexShaderConstantF( struct NineDevice9 *This, HRESULT r; mtx_lock(&d3dlock_global); r = NineDevice9_SetVertexShaderConstantF(This, StartRegister, pConstantData, Vector4fCount); - pipe_mutex_unlock(d3dlock_global); + mtx_unlock(&d3dlock_global); return r; } @@ -1662,7 +1662,7 @@ LockDevice9_GetVertexShaderConstantF( struct NineDevice9 *This, HRESULT r; mtx_lock(&d3dlock_global); r = NineDevice9_GetVertexShaderConstantF(This, StartRegister, pConstantData, Vector4fCount); - pipe_mutex_unlock(d3dlock_global); + mtx_unlock(&d3dlock_global); return r; } @@ -1675,7 +1675,7 @@ LockDevice9_SetVertexShaderConstantI( struct NineDevice9 *This, HRESULT r; mtx_lock(&d3dlock_global); r = NineDevice9_SetVertexShaderConstantI(This, StartRegister, pConstantData, Vector4iCount); - pipe_mutex_unlock(d3dlock_global); + mtx_unlock(&d3dlock_global); return r; } @@ -1688,7 +1688,7 @@ LockDevice9_GetVertexShaderConstantI( struct NineDevice9 *This, HRESULT r; mtx_lock(&d3dlock_global); r = NineDevice9_GetVertexShaderConstantI(This, StartRegister, pConstantData, Vector4iCount); - pipe_mutex_unlock(d3dlock_global); + mtx_unlock(&d3dlock_global); return r; } @@ -1701,7 +1701,7 @@ LockDevice9_SetVertexShaderConstantB( struct NineDevice9 *This, HRESULT r; mtx_lock(&d3dlock_global); r = NineDevice9_SetVertexShaderConstantB(This, StartRegister, pConstantData, BoolCount); - pipe_mutex_unlock(d3dlock_global); + mtx_unlock(&d3dlock_global); return r; } @@ -1714,7 +1714,7 @@ LockDevice9_GetVertexShaderConstantB( struct NineDevice9 *This, HRESULT r; mtx_lock(&d3dlock_global); r = NineDevice9_GetVertexShaderConstantB(This, StartRegister, pConstantData, BoolCount); - pipe_mutex_unlock(d3dlock_global); + mtx_unlock(&d3dlock_global); return r; } @@ -1728,7 +1728,7 @@ LockDevice9_SetStreamSource( struct NineDevice9 *This, HRESULT r; mtx_lock(&d3dlock_global); r = NineDevice9_SetStreamSource(This, StreamNumber, pStreamData, OffsetInBytes, Stride); - pipe_mutex_unlock(d3dlock_global); + mtx_unlock(&d3dlock_global); return r; } @@ -1742,7 +1742,7 @@ LockDevice9_GetStreamSource( struct NineDevice9 *This, HRESULT r; mtx_lock(&d3dlock_global); r = NineDevice9_GetStreamSource(This, StreamNumber, ppStreamData, pOffsetInBytes, pStride); - pipe_mutex_unlock(d3dlock_global); + mtx_unlock(&d3dlock_global); return r; } @@ -1754,7 +1754,7 @@ LockDevice9_SetStreamSourceFreq( struct NineDevice9 *This, HRESULT r; mtx_lock(&d3dlock_global); r = NineDevice9_SetStreamSourceFreq(This, StreamNumber, Setting); - pipe_mutex_unlock(d3dlock_global); + mtx_unlock(&d3dlock_global); return r; } @@ -1766,7 +1766,7 @@ LockDevice9_GetStreamSourceFreq( struct NineDevice9 *This, HRESULT r; mtx_lock(&d3dlock_global); r = NineDevice9_GetStreamSourceFreq(This, StreamNumber, pSetting); - pipe_mutex_unlock(d3dlock_global); + mtx_unlock(&d3dlock_global); return r; } @@ -1777,7 +1777,7 @@ LockDevice9_SetIndices( struct NineDevice9 *This, HRESULT r; mtx_lock(&d3dlock_global); r = NineDevice9_SetIndices(This, pIndexData); - pipe_mutex_unlock(d3dlock_global); + mtx_unlock(&d3dlock_global); return r; } @@ -1788,7 +1788,7 @@ LockDevice9_GetIndices( struct NineDevice9 *This, HRESULT r; mtx_lock(&d3dlock_global); r = NineDevice9_GetIndices(This, ppIndexData); - pipe_mutex_unlock(d3dlock_global); + mtx_unlock(&d3dlock_global); return r; } @@ -1800,7 +1800,7 @@ LockDevice9_CreatePixelShader( struct NineDevice9 *This, HRESULT r; mtx_lock(&d3dlock_global); r = NineDevice9_CreatePixelShader(This, pFunction, ppShader); - pipe_mutex_unlock(d3dlock_global); + mtx_unlock(&d3dlock_global); return r; } @@ -1811,7 +1811,7 @@ LockDevice9_SetPixelShader( struct NineDevice9 *This, HRESULT r; mtx_lock(&d3dlock_global); r = NineDevice9_SetPixelShader(This, pShader); - pipe_mutex_unlock(d3dlock_global); + mtx_unlock(&d3dlock_global); return r; } @@ -1822,7 +1822,7 @@ LockDevice9_GetPixelShader( struct NineDevice9 *This, HRESULT r; mtx_lock(&d3dlock_global); r = NineDevice9_GetPixelShader(This, ppShader); - pipe_mutex_unlock(d3dlock_global); + mtx_unlock(&d3dlock_global); return r; } @@ -1835,7 +1835,7 @@ LockDevice9_SetPixelShaderConstantF( struct NineDevice9 *This, HRESULT r; mtx_lock(&d3dlock_global); r = NineDevice9_SetPixelShaderConstantF(This, StartRegister, pConstantData, Vector4fCount); - pipe_mutex_unlock(d3dlock_global); + mtx_unlock(&d3dlock_global); return r; } @@ -1848,7 +1848,7 @@ LockDevice9_GetPixelShaderConstantF( struct NineDevice9 *This, HRESULT r; mtx_lock(&d3dlock_global); r = NineDevice9_GetPixelShaderConstantF(This, StartRegister, pConstantData, Vector4fCount); - pipe_mutex_unlock(d3dlock_global); + mtx_unlock(&d3dlock_global); return r; } @@ -1861,7 +1861,7 @@ LockDevice9_SetPixelShaderConstantI( struct NineDevice9 *This, HRESULT r; mtx_lock(&d3dlock_global); r = NineDevice9_SetPixelShaderConstantI(This, StartRegister, pConstantData, Vector4iCount); - pipe_mutex_unlock(d3dlock_global); + mtx_unlock(&d3dlock_global); return r; } @@ -1874,7 +1874,7 @@ LockDevice9_GetPixelShaderConstantI( struct NineDevice9 *This, HRESULT r; mtx_lock(&d3dlock_global); r = NineDevice9_GetPixelShaderConstantI(This, StartRegister, pConstantData, Vector4iCount); - pipe_mutex_unlock(d3dlock_global); + mtx_unlock(&d3dlock_global); return r; } @@ -1887,7 +1887,7 @@ LockDevice9_SetPixelShaderConstantB( struct NineDevice9 *This, HRESULT r; mtx_lock(&d3dlock_global); r = NineDevice9_SetPixelShaderConstantB(This, StartRegister, pConstantData, BoolCount); - pipe_mutex_unlock(d3dlock_global); + mtx_unlock(&d3dlock_global); return r; } @@ -1900,7 +1900,7 @@ LockDevice9_GetPixelShaderConstantB( struct NineDevice9 *This, HRESULT r; mtx_lock(&d3dlock_global); r = NineDevice9_GetPixelShaderConstantB(This, StartRegister, pConstantData, BoolCount); - pipe_mutex_unlock(d3dlock_global); + mtx_unlock(&d3dlock_global); return r; } @@ -1913,7 +1913,7 @@ LockDevice9_DrawRectPatch( struct NineDevice9 *This, HRESULT r; mtx_lock(&d3dlock_global); r = NineDevice9_DrawRectPatch(This, Handle, pNumSegs, pRectPatchInfo); - pipe_mutex_unlock(d3dlock_global); + mtx_unlock(&d3dlock_global); return r; } @@ -1926,7 +1926,7 @@ LockDevice9_DrawTriPatch( struct NineDevice9 *This, HRESULT r; mtx_lock(&d3dlock_global); r = NineDevice9_DrawTriPatch(This, Handle, pNumSegs, pTriPatchInfo); - pipe_mutex_unlock(d3dlock_global); + mtx_unlock(&d3dlock_global); return r; } @@ -1937,7 +1937,7 @@ LockDevice9_DeletePatch( struct NineDevice9 *This, HRESULT r; mtx_lock(&d3dlock_global); r = NineDevice9_DeletePatch(This, Handle); - pipe_mutex_unlock(d3dlock_global); + mtx_unlock(&d3dlock_global); return r; } @@ -1949,7 +1949,7 @@ LockDevice9_CreateQuery( struct NineDevice9 *This, HRESULT r; mtx_lock(&d3dlock_global); r = NineDevice9_CreateQuery(This, Type, ppQuery); - pipe_mutex_unlock(d3dlock_global); + mtx_unlock(&d3dlock_global); return r; } @@ -2085,7 +2085,7 @@ LockDevice9Ex_SetConvolutionMonoKernel( struct NineDevice9Ex *This, HRESULT r; mtx_lock(&d3dlock_global); r = NineDevice9Ex_SetConvolutionMonoKernel(This, width, height, rows, columns); - pipe_mutex_unlock(d3dlock_global); + mtx_unlock(&d3dlock_global); return r; } @@ -2103,7 +2103,7 @@ LockDevice9Ex_ComposeRects( struct NineDevice9Ex *This, HRESULT r; mtx_lock(&d3dlock_global); r = NineDevice9Ex_ComposeRects(This, pSrc, pDst, pSrcRectDescs, NumRects, pDstRectDescs, Operation, Xoffset, Yoffset); - pipe_mutex_unlock(d3dlock_global); + mtx_unlock(&d3dlock_global); return r; } @@ -2118,7 +2118,7 @@ LockDevice9Ex_PresentEx( struct NineDevice9Ex *This, HRESULT r; mtx_lock(&d3dlock_global); r = NineDevice9Ex_PresentEx(This, pSourceRect, pDestRect, hDestWindowOverride, pDirtyRegion, dwFlags); - pipe_mutex_unlock(d3dlock_global); + mtx_unlock(&d3dlock_global); return r; } @@ -2129,7 +2129,7 @@ LockDevice9Ex_GetGPUThreadPriority( struct NineDevice9Ex *This, HRESULT r; mtx_lock(&d3dlock_global); r = NineDevice9Ex_GetGPUThreadPriority(This, pPriority); - pipe_mutex_unlock(d3dlock_global); + mtx_unlock(&d3dlock_global); return r; } @@ -2140,7 +2140,7 @@ LockDevice9Ex_SetGPUThreadPriority( struct NineDevice9Ex *This, HRESULT r; mtx_lock(&d3dlock_global); r = NineDevice9Ex_SetGPUThreadPriority(This, Priority); - pipe_mutex_unlock(d3dlock_global); + mtx_unlock(&d3dlock_global); return r; } @@ -2151,7 +2151,7 @@ LockDevice9Ex_WaitForVBlank( struct NineDevice9Ex *This, HRESULT r; mtx_lock(&d3dlock_global); r = NineDevice9Ex_WaitForVBlank(This, iSwapChain); - pipe_mutex_unlock(d3dlock_global); + mtx_unlock(&d3dlock_global); return r; } @@ -2163,7 +2163,7 @@ LockDevice9Ex_CheckResourceResidency( struct NineDevice9Ex *This, HRESULT r; mtx_lock(&d3dlock_global); r = NineDevice9Ex_CheckResourceResidency(This, pResourceArray, NumResources); - pipe_mutex_unlock(d3dlock_global); + mtx_unlock(&d3dlock_global); return r; } @@ -2174,7 +2174,7 @@ LockDevice9Ex_SetMaximumFrameLatency( struct NineDevice9Ex *This, HRESULT r; mtx_lock(&d3dlock_global); r = NineDevice9Ex_SetMaximumFrameLatency(This, MaxLatency); - pipe_mutex_unlock(d3dlock_global); + mtx_unlock(&d3dlock_global); return r; } @@ -2185,7 +2185,7 @@ LockDevice9Ex_GetMaximumFrameLatency( struct NineDevice9Ex *This, HRESULT r; mtx_lock(&d3dlock_global); r = NineDevice9Ex_GetMaximumFrameLatency(This, pMaxLatency); - pipe_mutex_unlock(d3dlock_global); + mtx_unlock(&d3dlock_global); return r; } @@ -2196,7 +2196,7 @@ LockDevice9Ex_CheckDeviceState( struct NineDevice9Ex *This, HRESULT r; mtx_lock(&d3dlock_global); r = NineDevice9Ex_CheckDeviceState(This, hDestinationWindow); - pipe_mutex_unlock(d3dlock_global); + mtx_unlock(&d3dlock_global); return r; } @@ -2215,7 +2215,7 @@ LockDevice9Ex_CreateRenderTargetEx( struct NineDevice9Ex *This, HRESULT r; mtx_lock(&d3dlock_global); r = NineDevice9Ex_CreateRenderTargetEx(This, Width, Height, Format, MultiSample, MultisampleQuality, Lockable, ppSurface, pSharedHandle, Usage); - pipe_mutex_unlock(d3dlock_global); + mtx_unlock(&d3dlock_global); return r; } @@ -2232,7 +2232,7 @@ LockDevice9Ex_CreateOffscreenPlainSurfaceEx( struct NineDevice9Ex *This, HRESULT r; mtx_lock(&d3dlock_global); r = NineDevice9Ex_CreateOffscreenPlainSurfaceEx(This, Width, Height, Format, Pool, ppSurface, pSharedHandle, Usage); - pipe_mutex_unlock(d3dlock_global); + mtx_unlock(&d3dlock_global); return r; } @@ -2251,7 +2251,7 @@ LockDevice9Ex_CreateDepthStencilSurfaceEx( struct NineDevice9Ex *This, HRESULT r; mtx_lock(&d3dlock_global); r = NineDevice9Ex_CreateDepthStencilSurfaceEx(This, Width, Height, Format, MultiSample, MultisampleQuality, Discard, ppSurface, pSharedHandle, Usage); - pipe_mutex_unlock(d3dlock_global); + mtx_unlock(&d3dlock_global); return r; } @@ -2263,7 +2263,7 @@ LockDevice9Ex_ResetEx( struct NineDevice9Ex *This, HRESULT r; mtx_lock(&d3dlock_global); r = NineDevice9Ex_ResetEx(This, pPresentationParameters, pFullscreenDisplayMode); - pipe_mutex_unlock(d3dlock_global); + mtx_unlock(&d3dlock_global); return r; } @@ -2276,7 +2276,7 @@ LockDevice9Ex_GetDisplayModeEx( struct NineDevice9Ex *This, HRESULT r; mtx_lock(&d3dlock_global); r = NineDevice9Ex_GetDisplayModeEx(This, iSwapChain, pMode, pRotation); - pipe_mutex_unlock(d3dlock_global); + mtx_unlock(&d3dlock_global); return r; } @@ -2426,7 +2426,7 @@ LockDevice9Video_GetContentProtectionCaps( struct NineDevice9Video *This, HRESULT r; mtx_lock(&d3dlock_global); r = NineDevice9Video_GetContentProtectionCaps(This, pCryptoType, pDecodeProfile, pCaps); - pipe_mutex_unlock(d3dlock_global); + mtx_unlock(&d3dlock_global); return r; } @@ -2439,7 +2439,7 @@ LockDevice9Video_CreateAuthenticatedChannel( struct NineDevice9Video *This, HRESULT r; mtx_lock(&d3dlock_global); r = NineDevice9Video_CreateAuthenticatedChannel(This, ChannelType, ppAuthenticatedChannel, pChannelHandle); - pipe_mutex_unlock(d3dlock_global); + mtx_unlock(&d3dlock_global); return r; } @@ -2453,7 +2453,7 @@ LockDevice9Video_CreateCryptoSession( struct NineDevice9Video *This, HRESULT r; mtx_lock(&d3dlock_global); r = NineDevice9Video_CreateCryptoSession(This, pCryptoType, pDecodeProfile, ppCryptoSession, pCryptoHandle); - pipe_mutex_unlock(d3dlock_global); + mtx_unlock(&d3dlock_global); return r; } @@ -2476,7 +2476,7 @@ LockIndexBuffer9_Lock( struct NineIndexBuffer9 *This, HRESULT r; mtx_lock(&d3dlock_global); r = NineIndexBuffer9_Lock(This, OffsetToLock, SizeToLock, ppbData, Flags); - pipe_mutex_unlock(d3dlock_global); + mtx_unlock(&d3dlock_global); return r; } @@ -2486,7 +2486,7 @@ LockIndexBuffer9_Unlock( struct NineIndexBuffer9 *This ) HRESULT r; mtx_lock(&d3dlock_global); r = NineIndexBuffer9_Unlock(This); - pipe_mutex_unlock(d3dlock_global); + mtx_unlock(&d3dlock_global); return r; } @@ -2498,7 +2498,7 @@ LockIndexBuffer9_GetDesc( struct NineIndexBuffer9 *This, HRESULT r; mtx_lock(&d3dlock_global); r = NineIndexBuffer9_GetDesc(This, pDesc); - pipe_mutex_unlock(d3dlock_global); + mtx_unlock(&d3dlock_global); return r; } #endif @@ -2528,7 +2528,7 @@ LockPixelShader9_GetDevice( struct NinePixelShader9 *This, HRESULT r; mtx_lock(&d3dlock_global); r = NineUnknown_GetDevice(NineUnknown(This), ppDevice); - pipe_mutex_unlock(d3dlock_global); + mtx_unlock(&d3dlock_global); return r; } #endif @@ -2541,7 +2541,7 @@ LockPixelShader9_GetFunction( struct NinePixelShader9 *This, HRESULT r; mtx_lock(&d3dlock_global); r = NinePixelShader9_GetFunction(This, pData, pSizeOfData); - pipe_mutex_unlock(d3dlock_global); + mtx_unlock(&d3dlock_global); return r; } @@ -2561,7 +2561,7 @@ LockQuery9_GetDevice( struct NineQuery9 *This, HRESULT r; mtx_lock(&d3dlock_global); r = NineUnknown_GetDevice(NineUnknown(This), ppDevice); - pipe_mutex_unlock(d3dlock_global); + mtx_unlock(&d3dlock_global); return r; } #endif @@ -2573,7 +2573,7 @@ LockQuery9_GetType( struct NineQuery9 *This ) D3DQUERYTYPE r; mtx_lock(&d3dlock_global); r = NineQuery9_GetType(This); - pipe_mutex_unlock(d3dlock_global); + mtx_unlock(&d3dlock_global); return r; } #endif @@ -2585,7 +2585,7 @@ LockQuery9_GetDataSize( struct NineQuery9 *This ) DWORD r; mtx_lock(&d3dlock_global); r = NineQuery9_GetDataSize(This); - pipe_mutex_unlock(d3dlock_global); + mtx_unlock(&d3dlock_global); return r; } #endif @@ -2597,7 +2597,7 @@ LockQuery9_Issue( struct NineQuery9 *This, HRESULT r; mtx_lock(&d3dlock_global); r = NineQuery9_Issue(This, dwIssueFlags); - pipe_mutex_unlock(d3dlock_global); + mtx_unlock(&d3dlock_global); return r; } @@ -2610,7 +2610,7 @@ LockQuery9_GetData( struct NineQuery9 *This, HRESULT r; mtx_lock(&d3dlock_global); r = NineQuery9_GetData(This, pData, dwSize, dwGetDataFlags); - pipe_mutex_unlock(d3dlock_global); + mtx_unlock(&d3dlock_global); return r; } @@ -2633,7 +2633,7 @@ LockStateBlock9_GetDevice( struct NineStateBlock9 *This, HRESULT r; mtx_lock(&d3dlock_global); r = NineUnknown_GetDevice(NineUnknown(This), ppDevice); - pipe_mutex_unlock(d3dlock_global); + mtx_unlock(&d3dlock_global); return r; } #endif @@ -2644,7 +2644,7 @@ LockStateBlock9_Capture( struct NineStateBlock9 *This ) HRESULT r; mtx_lock(&d3dlock_global); r = NineStateBlock9_Capture(This); - pipe_mutex_unlock(d3dlock_global); + mtx_unlock(&d3dlock_global); return r; } @@ -2654,7 +2654,7 @@ LockStateBlock9_Apply( struct NineStateBlock9 *This ) HRESULT r; mtx_lock(&d3dlock_global); r = NineStateBlock9_Apply(This); - pipe_mutex_unlock(d3dlock_global); + mtx_unlock(&d3dlock_global); return r; } @@ -2675,7 +2675,7 @@ LockSurface9_GetContainer( struct NineSurface9 *This, HRESULT r; mtx_lock(&d3dlock_global); r = NineSurface9_GetContainer(This, riid, ppContainer); - pipe_mutex_unlock(d3dlock_global); + mtx_unlock(&d3dlock_global); return r; } @@ -2687,7 +2687,7 @@ LockSurface9_GetDesc( struct NineSurface9 *This, HRESULT r; mtx_lock(&d3dlock_global); r = NineSurface9_GetDesc(This, pDesc); - pipe_mutex_unlock(d3dlock_global); + mtx_unlock(&d3dlock_global); return r; } #endif @@ -2701,7 +2701,7 @@ LockSurface9_LockRect( struct NineSurface9 *This, HRESULT r; mtx_lock(&d3dlock_global); r = NineSurface9_LockRect(This, pLockedRect, pRect, Flags); - pipe_mutex_unlock(d3dlock_global); + mtx_unlock(&d3dlock_global); return r; } @@ -2711,7 +2711,7 @@ LockSurface9_UnlockRect( struct NineSurface9 *This ) HRESULT r; mtx_lock(&d3dlock_global); r = NineSurface9_UnlockRect(This); - pipe_mutex_unlock(d3dlock_global); + mtx_unlock(&d3dlock_global); return r; } @@ -2722,7 +2722,7 @@ LockSurface9_GetDC( struct NineSurface9 *This, HRESULT r; mtx_lock(&d3dlock_global); r = NineSurface9_GetDC(This, phdc); - pipe_mutex_unlock(d3dlock_global); + mtx_unlock(&d3dlock_global); return r; } @@ -2733,7 +2733,7 @@ LockSurface9_ReleaseDC( struct NineSurface9 *This, HRESULT r; mtx_lock(&d3dlock_global); r = NineSurface9_ReleaseDC(This, hdc); - pipe_mutex_unlock(d3dlock_global); + mtx_unlock(&d3dlock_global); return r; } @@ -2768,7 +2768,7 @@ LockSwapChain9_Present( struct NineSwapChain9 *This, HRESULT r; mtx_lock(&d3dlock_global); r = NineSwapChain9_Present(This, pSourceRect, pDestRect, hDestWindowOverride, pDirtyRegion, dwFlags); - pipe_mutex_unlock(d3dlock_global); + mtx_unlock(&d3dlock_global); return r; } @@ -2779,7 +2779,7 @@ LockSwapChain9_GetFrontBufferData( struct NineSwapChain9 *This, HRESULT r; mtx_lock(&d3dlock_global); r = NineSwapChain9_GetFrontBufferData(This, pDestSurface); - pipe_mutex_unlock(d3dlock_global); + mtx_unlock(&d3dlock_global); return r; } @@ -2792,7 +2792,7 @@ LockSwapChain9_GetBackBuffer( struct NineSwapChain9 *This, HRESULT r; mtx_lock(&d3dlock_global); r = NineSwapChain9_GetBackBuffer(This, iBackBuffer, Type, ppBackBuffer); - pipe_mutex_unlock(d3dlock_global); + mtx_unlock(&d3dlock_global); return r; } @@ -2803,7 +2803,7 @@ LockSwapChain9_GetRasterStatus( struct NineSwapChain9 *This, HRESULT r; mtx_lock(&d3dlock_global); r = NineSwapChain9_GetRasterStatus(This, pRasterStatus); - pipe_mutex_unlock(d3dlock_global); + mtx_unlock(&d3dlock_global); return r; } @@ -2814,7 +2814,7 @@ LockSwapChain9_GetDisplayMode( struct NineSwapChain9 *This, HRESULT r; mtx_lock(&d3dlock_global); r = NineSwapChain9_GetDisplayMode(This, pMode); - pipe_mutex_unlock(d3dlock_global); + mtx_unlock(&d3dlock_global); return r; } @@ -2826,7 +2826,7 @@ LockSwapChain9_GetDevice( struct NineSwapChain9 *This, HRESULT r; mtx_lock(&d3dlock_global); r = NineUnknown_GetDevice(NineUnknown(This), ppDevice); - pipe_mutex_unlock(d3dlock_global); + mtx_unlock(&d3dlock_global); return r; } #endif @@ -2838,7 +2838,7 @@ LockSwapChain9_GetPresentParameters( struct NineSwapChain9 *This, HRESULT r; mtx_lock(&d3dlock_global); r = NineSwapChain9_GetPresentParameters(This, pPresentationParameters); - pipe_mutex_unlock(d3dlock_global); + mtx_unlock(&d3dlock_global); return r; } @@ -2862,7 +2862,7 @@ LockSwapChain9Ex_GetLastPresentCount( struct NineSwapChain9Ex *This, HRESULT r; mtx_lock(&d3dlock_global); r = NineSwapChain9Ex_GetLastPresentCount(This, pLastPresentCount); - pipe_mutex_unlock(d3dlock_global); + mtx_unlock(&d3dlock_global); return r; } @@ -2873,7 +2873,7 @@ LockSwapChain9Ex_GetPresentStats( struct NineSwapChain9Ex *This, HRESULT r; mtx_lock(&d3dlock_global); r = NineSwapChain9Ex_GetPresentStats(This, pPresentationStatistics); - pipe_mutex_unlock(d3dlock_global); + mtx_unlock(&d3dlock_global); return r; } @@ -2885,7 +2885,7 @@ LockSwapChain9Ex_GetDisplayModeEx( struct NineSwapChain9Ex *This, HRESULT r; mtx_lock(&d3dlock_global); r = NineSwapChain9Ex_GetDisplayModeEx(This, pMode, pRotation); - pipe_mutex_unlock(d3dlock_global); + mtx_unlock(&d3dlock_global); return r; } @@ -2914,7 +2914,7 @@ LockTexture9_GetLevelDesc( struct NineTexture9 *This, HRESULT r; mtx_lock(&d3dlock_global); r = NineTexture9_GetLevelDesc(This, Level, pDesc); - pipe_mutex_unlock(d3dlock_global); + mtx_unlock(&d3dlock_global); return r; } #endif @@ -2928,7 +2928,7 @@ LockTexture9_GetSurfaceLevel( struct NineTexture9 *This, HRESULT r; mtx_lock(&d3dlock_global); r = NineTexture9_GetSurfaceLevel(This, Level, ppSurfaceLevel); - pipe_mutex_unlock(d3dlock_global); + mtx_unlock(&d3dlock_global); return r; } #endif @@ -2943,7 +2943,7 @@ LockTexture9_LockRect( struct NineTexture9 *This, HRESULT r; mtx_lock(&d3dlock_global); r = NineTexture9_LockRect(This, Level, pLockedRect, pRect, Flags); - pipe_mutex_unlock(d3dlock_global); + mtx_unlock(&d3dlock_global); return r; } @@ -2954,7 +2954,7 @@ LockTexture9_UnlockRect( struct NineTexture9 *This, HRESULT r; mtx_lock(&d3dlock_global); r = NineTexture9_UnlockRect(This, Level); - pipe_mutex_unlock(d3dlock_global); + mtx_unlock(&d3dlock_global); return r; } @@ -2965,7 +2965,7 @@ LockTexture9_AddDirtyRect( struct NineTexture9 *This, HRESULT r; mtx_lock(&d3dlock_global); r = NineTexture9_AddDirtyRect(This, pDirtyRect); - pipe_mutex_unlock(d3dlock_global); + mtx_unlock(&d3dlock_global); return r; } @@ -3004,7 +3004,7 @@ LockVertexBuffer9_Lock( struct NineVertexBuffer9 *This, HRESULT r; mtx_lock(&d3dlock_global); r = NineVertexBuffer9_Lock(This, OffsetToLock, SizeToLock, ppbData, Flags); - pipe_mutex_unlock(d3dlock_global); + mtx_unlock(&d3dlock_global); return r; } @@ -3014,7 +3014,7 @@ LockVertexBuffer9_Unlock( struct NineVertexBuffer9 *This ) HRESULT r; mtx_lock(&d3dlock_global); r = NineVertexBuffer9_Unlock(This); - pipe_mutex_unlock(d3dlock_global); + mtx_unlock(&d3dlock_global); return r; } @@ -3026,7 +3026,7 @@ LockVertexBuffer9_GetDesc( struct NineVertexBuffer9 *This, HRESULT r; mtx_lock(&d3dlock_global); r = NineVertexBuffer9_GetDesc(This, pDesc); - pipe_mutex_unlock(d3dlock_global); + mtx_unlock(&d3dlock_global); return r; } #endif @@ -3056,7 +3056,7 @@ LockVertexDeclaration9_GetDevice( struct NineVertexDeclaration9 *This, HRESULT r; mtx_lock(&d3dlock_global); r = NineUnknown_GetDevice(NineUnknown(This), ppDevice); - pipe_mutex_unlock(d3dlock_global); + mtx_unlock(&d3dlock_global); return r; } #endif @@ -3069,7 +3069,7 @@ LockVertexDeclaration9_GetDeclaration( struct NineVertexDeclaration9 *This, HRESULT r; mtx_lock(&d3dlock_global); r = NineVertexDeclaration9_GetDeclaration(This, pElement, pNumElements); - pipe_mutex_unlock(d3dlock_global); + mtx_unlock(&d3dlock_global); return r; } @@ -3089,7 +3089,7 @@ LockVertexShader9_GetDevice( struct NineVertexShader9 *This, HRESULT r; mtx_lock(&d3dlock_global); r = NineUnknown_GetDevice(NineUnknown(This), ppDevice); - pipe_mutex_unlock(d3dlock_global); + mtx_unlock(&d3dlock_global); return r; } #endif @@ -3102,7 +3102,7 @@ LockVertexShader9_GetFunction( struct NineVertexShader9 *This, HRESULT r; mtx_lock(&d3dlock_global); r = NineVertexShader9_GetFunction(This, pData, pSizeOfData); - pipe_mutex_unlock(d3dlock_global); + mtx_unlock(&d3dlock_global); return r; } @@ -3122,7 +3122,7 @@ LockVolume9_GetDevice( struct NineVolume9 *This, HRESULT r; mtx_lock(&d3dlock_global); r = NineUnknown_GetDevice(NineUnknown(This), ppDevice); - pipe_mutex_unlock(d3dlock_global); + mtx_unlock(&d3dlock_global); return r; } #endif @@ -3135,7 +3135,7 @@ LockVolume9_GetContainer( struct NineVolume9 *This, HRESULT r; mtx_lock(&d3dlock_global); r = NineVolume9_GetContainer(This, riid, ppContainer); - pipe_mutex_unlock(d3dlock_global); + mtx_unlock(&d3dlock_global); return r; } @@ -3147,7 +3147,7 @@ LockVolume9_GetDesc( struct NineVolume9 *This, HRESULT r; mtx_lock(&d3dlock_global); r = NineVolume9_GetDesc(This, pDesc); - pipe_mutex_unlock(d3dlock_global); + mtx_unlock(&d3dlock_global); return r; } #endif @@ -3161,7 +3161,7 @@ LockVolume9_LockBox( struct NineVolume9 *This, HRESULT r; mtx_lock(&d3dlock_global); r = NineVolume9_LockBox(This, pLockedVolume, pBox, Flags); - pipe_mutex_unlock(d3dlock_global); + mtx_unlock(&d3dlock_global); return r; } @@ -3171,7 +3171,7 @@ LockVolume9_UnlockBox( struct NineVolume9 *This ) HRESULT r; mtx_lock(&d3dlock_global); r = NineVolume9_UnlockBox(This); - pipe_mutex_unlock(d3dlock_global); + mtx_unlock(&d3dlock_global); return r; } @@ -3198,7 +3198,7 @@ LockVolumeTexture9_GetLevelDesc( struct NineVolumeTexture9 *This, HRESULT r; mtx_lock(&d3dlock_global); r = NineVolumeTexture9_GetLevelDesc(This, Level, pDesc); - pipe_mutex_unlock(d3dlock_global); + mtx_unlock(&d3dlock_global); return r; } #endif @@ -3212,7 +3212,7 @@ LockVolumeTexture9_GetVolumeLevel( struct NineVolumeTexture9 *This, HRESULT r; mtx_lock(&d3dlock_global); r = NineVolumeTexture9_GetVolumeLevel(This, Level, ppVolumeLevel); - pipe_mutex_unlock(d3dlock_global); + mtx_unlock(&d3dlock_global); return r; } #endif @@ -3227,7 +3227,7 @@ LockVolumeTexture9_LockBox( struct NineVolumeTexture9 *This, HRESULT r; mtx_lock(&d3dlock_global); r = NineVolumeTexture9_LockBox(This, Level, pLockedVolume, pBox, Flags); - pipe_mutex_unlock(d3dlock_global); + mtx_unlock(&d3dlock_global); return r; } @@ -3238,7 +3238,7 @@ LockVolumeTexture9_UnlockBox( struct NineVolumeTexture9 *This, HRESULT r; mtx_lock(&d3dlock_global); r = NineVolumeTexture9_UnlockBox(This, Level); - pipe_mutex_unlock(d3dlock_global); + mtx_unlock(&d3dlock_global); return r; } @@ -3249,7 +3249,7 @@ LockVolumeTexture9_AddDirtyBox( struct NineVolumeTexture9 *This, HRESULT r; mtx_lock(&d3dlock_global); r = NineVolumeTexture9_AddDirtyBox(This, pDirtyBox); - pipe_mutex_unlock(d3dlock_global); + mtx_unlock(&d3dlock_global); return r; } |