mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2025-01-28 13:05:02 -08:00
vkd3d: Use vkd3d_atomic_increment_u32() in d3d12_command_allocator_AddRef().
This commit is contained in:
parent
78bb7b6760
commit
315fce8ac5
Notes:
Alexandre Julliard
2024-01-25 23:12:08 +01:00
Approved-by: Alexandre Julliard (@julliard) Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/605
@ -1635,7 +1635,7 @@ static HRESULT STDMETHODCALLTYPE d3d12_command_allocator_QueryInterface(ID3D12Co
|
||||
static ULONG STDMETHODCALLTYPE d3d12_command_allocator_AddRef(ID3D12CommandAllocator *iface)
|
||||
{
|
||||
struct d3d12_command_allocator *allocator = impl_from_ID3D12CommandAllocator(iface);
|
||||
ULONG refcount = InterlockedIncrement(&allocator->refcount);
|
||||
unsigned int refcount = vkd3d_atomic_increment_u32(&allocator->refcount);
|
||||
|
||||
TRACE("%p increasing refcount to %u.\n", allocator, refcount);
|
||||
|
||||
@ -1645,7 +1645,7 @@ static ULONG STDMETHODCALLTYPE d3d12_command_allocator_AddRef(ID3D12CommandAlloc
|
||||
static ULONG STDMETHODCALLTYPE d3d12_command_allocator_Release(ID3D12CommandAllocator *iface)
|
||||
{
|
||||
struct d3d12_command_allocator *allocator = impl_from_ID3D12CommandAllocator(iface);
|
||||
ULONG refcount = InterlockedDecrement(&allocator->refcount);
|
||||
unsigned int refcount = InterlockedDecrement((LONG *)&allocator->refcount);
|
||||
|
||||
TRACE("%p decreasing refcount to %u.\n", allocator, refcount);
|
||||
|
||||
|
@ -1365,7 +1365,7 @@ struct vkd3d_buffer
|
||||
struct d3d12_command_allocator
|
||||
{
|
||||
ID3D12CommandAllocator ID3D12CommandAllocator_iface;
|
||||
LONG refcount;
|
||||
unsigned int refcount;
|
||||
|
||||
D3D12_COMMAND_LIST_TYPE type;
|
||||
VkQueueFlags vk_queue_flags;
|
||||
|
Loading…
x
Reference in New Issue
Block a user