Vulkan and OpenGL must share idx pool.

This commit is contained in:
Bartosz Taudul 2018-06-18 01:10:43 +02:00
parent 021dd853b9
commit 7a23f677dd
2 changed files with 2 additions and 3 deletions

View File

@ -25,7 +25,7 @@
namespace tracy
{
extern std::atomic<uint16_t> s_vkCtxCounter;
extern std::atomic<uint16_t> s_gpuCtxCounter;
class VkCtx
{
@ -37,7 +37,7 @@ public:
VkCtx( VkPhysicalDevice physdev, VkDevice device, VkQueue queue, VkCommandBuffer cmdbuf )
: m_device( device )
, m_queue( queue )
, m_context( s_vkCtxCounter.fetch_add( 1, std::memory_order_relaxed ) )
, m_context( s_gpuCtxCounter.fetch_add( 1, std::memory_order_relaxed ) )
, m_head( 0 )
, m_tail( 0 )
, m_oldCnt( 0 )

View File

@ -169,7 +169,6 @@ static RPMallocInit init_order(102) s_rpmalloc_init;
moodycamel::ConcurrentQueue<QueueItem> init_order(103) s_queue( QueuePrealloc );
std::atomic<uint32_t> init_order(104) s_lockCounter( 0 );
std::atomic<uint16_t> init_order(104) s_gpuCtxCounter( 0 );
std::atomic<uint16_t> init_order(104) s_vkCtxCounter( 0 );
thread_local GpuCtxWrapper init_order(104) s_gpuCtx { nullptr };
VkCtxWrapper init_order(104) s_vkCtx { nullptr };