mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-09 16:31:28 +12:00
Use atomic_t<> in VKMemAlloc
This commit is contained in:
parent
65c04e4ddd
commit
72284b4530
2 changed files with 15 additions and 0 deletions
|
@ -22,8 +22,16 @@
|
||||||
#include "../display.h"
|
#include "../display.h"
|
||||||
#include "../rsx_utils.h"
|
#include "../rsx_utils.h"
|
||||||
|
|
||||||
|
#define VMA_ATOMIC_UINT32 atomic_t<u32>
|
||||||
|
#define VMA_ATOMIC_UINT64 atomic_t<u64>
|
||||||
|
#define compare_exchange_strong compare_exchange
|
||||||
|
#define compare_exchange_weak compare_exchange
|
||||||
|
|
||||||
#include "3rdparty/GPUOpen/include/vk_mem_alloc.h"
|
#include "3rdparty/GPUOpen/include/vk_mem_alloc.h"
|
||||||
|
|
||||||
|
#undef compare_exchange_strong
|
||||||
|
#undef compare_exchange_weak
|
||||||
|
|
||||||
#ifdef __APPLE__
|
#ifdef __APPLE__
|
||||||
#define VK_DISABLE_COMPONENT_SWIZZLE 1
|
#define VK_DISABLE_COMPONENT_SWIZZLE 1
|
||||||
#else
|
#else
|
||||||
|
|
|
@ -1,5 +1,12 @@
|
||||||
#define VMA_IMPLEMENTATION
|
#define VMA_IMPLEMENTATION
|
||||||
|
|
||||||
|
#include "util/atomic.hpp"
|
||||||
|
|
||||||
|
#define VMA_ATOMIC_UINT32 atomic_t<u32>
|
||||||
|
#define VMA_ATOMIC_UINT64 atomic_t<u64>
|
||||||
|
#define compare_exchange_strong compare_exchange
|
||||||
|
#define compare_exchange_weak compare_exchange
|
||||||
|
|
||||||
#ifdef _MSC_VER
|
#ifdef _MSC_VER
|
||||||
#pragma warning(push, 0)
|
#pragma warning(push, 0)
|
||||||
#else
|
#else
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue