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_query_heap_AddRef().
This commit is contained in:
parent
334f60c281
commit
d66f61cd5f
Notes:
Alexandre Julliard
2024-02-01 00:32:06 +01:00
Approved-by: Giovanni Mascellani (@giomasce) Approved-by: Alexandre Julliard (@julliard) Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/619
@ -4429,7 +4429,7 @@ static HRESULT STDMETHODCALLTYPE d3d12_query_heap_QueryInterface(ID3D12QueryHeap
|
||||
static ULONG STDMETHODCALLTYPE d3d12_query_heap_AddRef(ID3D12QueryHeap *iface)
|
||||
{
|
||||
struct d3d12_query_heap *heap = impl_from_ID3D12QueryHeap(iface);
|
||||
ULONG refcount = InterlockedIncrement(&heap->refcount);
|
||||
unsigned int refcount = vkd3d_atomic_increment_u32(&heap->refcount);
|
||||
|
||||
TRACE("%p increasing refcount to %u.\n", heap, refcount);
|
||||
|
||||
@ -4439,7 +4439,7 @@ static ULONG STDMETHODCALLTYPE d3d12_query_heap_AddRef(ID3D12QueryHeap *iface)
|
||||
static ULONG STDMETHODCALLTYPE d3d12_query_heap_Release(ID3D12QueryHeap *iface)
|
||||
{
|
||||
struct d3d12_query_heap *heap = impl_from_ID3D12QueryHeap(iface);
|
||||
ULONG refcount = InterlockedDecrement(&heap->refcount);
|
||||
unsigned int refcount = InterlockedDecrement((LONG *)&heap->refcount);
|
||||
|
||||
TRACE("%p decreasing refcount to %u.\n", heap, refcount);
|
||||
|
||||
|
@ -1085,7 +1085,7 @@ HRESULT d3d12_descriptor_heap_create(struct d3d12_device *device,
|
||||
struct d3d12_query_heap
|
||||
{
|
||||
ID3D12QueryHeap ID3D12QueryHeap_iface;
|
||||
LONG refcount;
|
||||
unsigned int refcount;
|
||||
|
||||
VkQueryPool vk_query_pool;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user