mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2024-11-21 16:46:41 -08:00
vkd3d: Use vkd3d_atomic_increment_u32() in d3d12_command_signature_AddRef().
This commit is contained in:
parent
0ff20e6b8d
commit
13ba36bb43
Notes:
Alexandre Julliard
2024-01-25 23:12:07 +01:00
Approved-by: Alexandre Julliard (@julliard) Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/605
@ -7442,7 +7442,7 @@ static HRESULT STDMETHODCALLTYPE d3d12_command_signature_QueryInterface(ID3D12Co
|
||||
static ULONG STDMETHODCALLTYPE d3d12_command_signature_AddRef(ID3D12CommandSignature *iface)
|
||||
{
|
||||
struct d3d12_command_signature *signature = impl_from_ID3D12CommandSignature(iface);
|
||||
ULONG refcount = InterlockedIncrement(&signature->refcount);
|
||||
unsigned int refcount = vkd3d_atomic_increment_u32(&signature->refcount);
|
||||
|
||||
TRACE("%p increasing refcount to %u.\n", signature, refcount);
|
||||
|
||||
@ -7452,7 +7452,7 @@ static ULONG STDMETHODCALLTYPE d3d12_command_signature_AddRef(ID3D12CommandSigna
|
||||
static ULONG STDMETHODCALLTYPE d3d12_command_signature_Release(ID3D12CommandSignature *iface)
|
||||
{
|
||||
struct d3d12_command_signature *signature = impl_from_ID3D12CommandSignature(iface);
|
||||
ULONG refcount = InterlockedDecrement(&signature->refcount);
|
||||
unsigned int refcount = InterlockedDecrement((LONG *)&signature->refcount);
|
||||
|
||||
TRACE("%p decreasing refcount to %u.\n", signature, refcount);
|
||||
|
||||
|
@ -1657,7 +1657,7 @@ HRESULT d3d12_command_queue_create(struct d3d12_device *device,
|
||||
struct d3d12_command_signature
|
||||
{
|
||||
ID3D12CommandSignature ID3D12CommandSignature_iface;
|
||||
LONG refcount;
|
||||
unsigned int refcount;
|
||||
unsigned int internal_refcount;
|
||||
|
||||
D3D12_COMMAND_SIGNATURE_DESC desc;
|
||||
|
Loading…
Reference in New Issue
Block a user