mirror of
https://github.com/gnif/LookingGlass.git
synced 2025-04-25 08:06:30 +00:00
[idd] driver: fix free copy queue search method
This commit is contained in:
parent
57a2f68931
commit
a4406ac867
@ -174,6 +174,8 @@ CD3D12CommandQueue * CD3D12Device::GetCopyQueue()
|
|||||||
{
|
{
|
||||||
// try for up to a maximum of 100ms to find a free copy queue
|
// try for up to a maximum of 100ms to find a free copy queue
|
||||||
for (int c = 0; c < 100; ++c)
|
for (int c = 0; c < 100; ++c)
|
||||||
|
{
|
||||||
|
for (int i = 0; i < ARRAYSIZE(m_copyQueue); ++i)
|
||||||
{
|
{
|
||||||
auto& queue = m_copyQueue[m_copyQueueIndex++];
|
auto& queue = m_copyQueue[m_copyQueueIndex++];
|
||||||
if (m_copyQueueIndex == ARRAYSIZE(m_copyQueue))
|
if (m_copyQueueIndex == ARRAYSIZE(m_copyQueue))
|
||||||
@ -184,6 +186,7 @@ CD3D12CommandQueue * CD3D12Device::GetCopyQueue()
|
|||||||
queue.Reset();
|
queue.Reset();
|
||||||
return &queue;
|
return &queue;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
Sleep(1);
|
Sleep(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user