mirror of
https://github.com/doitsujin/dxvk.git
synced 2025-03-02 04:29:14 +01:00
[dxvk] Pass raw semaphore handles to submitCommandList
This commit is contained in:
parent
a5c17f2753
commit
746529b71b
@ -284,8 +284,8 @@ namespace dxvk {
|
||||
|
||||
m_device->submitCommandList(
|
||||
m_context->endRecording(),
|
||||
wsiSemas.acquireSync,
|
||||
wsiSemas.presentSync);
|
||||
wsiSemas.acquireSync->handle(),
|
||||
wsiSemas.presentSync->handle());
|
||||
|
||||
m_swapchain->present(
|
||||
wsiSemas.presentSync);
|
||||
@ -408,7 +408,8 @@ namespace dxvk {
|
||||
|
||||
m_device->submitCommandList(
|
||||
m_context->endRecording(),
|
||||
nullptr, nullptr);
|
||||
VK_NULL_HANDLE,
|
||||
VK_NULL_HANDLE);
|
||||
}
|
||||
|
||||
|
||||
@ -461,7 +462,8 @@ namespace dxvk {
|
||||
|
||||
m_device->submitCommandList(
|
||||
m_context->endRecording(),
|
||||
nullptr, nullptr);
|
||||
VK_NULL_HANDLE,
|
||||
VK_NULL_HANDLE);
|
||||
}
|
||||
|
||||
|
||||
|
@ -70,7 +70,8 @@ namespace dxvk {
|
||||
void DxvkContext::flushCommandList() {
|
||||
m_device->submitCommandList(
|
||||
this->endRecording(),
|
||||
nullptr, nullptr);
|
||||
VK_NULL_HANDLE,
|
||||
VK_NULL_HANDLE);
|
||||
|
||||
this->beginRecording(
|
||||
m_device->createCommandList());
|
||||
|
@ -256,21 +256,8 @@ namespace dxvk {
|
||||
|
||||
void DxvkDevice::submitCommandList(
|
||||
const Rc<DxvkCommandList>& commandList,
|
||||
const Rc<DxvkSemaphore>& waitSync,
|
||||
const Rc<DxvkSemaphore>& wakeSync) {
|
||||
VkSemaphore waitSemaphore = VK_NULL_HANDLE;
|
||||
VkSemaphore wakeSemaphore = VK_NULL_HANDLE;
|
||||
|
||||
if (waitSync != nullptr) {
|
||||
waitSemaphore = waitSync->handle();
|
||||
commandList->trackResource(waitSync);
|
||||
}
|
||||
|
||||
if (wakeSync != nullptr) {
|
||||
wakeSemaphore = wakeSync->handle();
|
||||
commandList->trackResource(wakeSync);
|
||||
}
|
||||
|
||||
VkSemaphore waitSync,
|
||||
VkSemaphore wakeSync) {
|
||||
VkResult status;
|
||||
|
||||
{ // Queue submissions are not thread safe
|
||||
@ -282,7 +269,7 @@ namespace dxvk {
|
||||
|
||||
status = commandList->submit(
|
||||
m_graphicsQueue.queueHandle,
|
||||
waitSemaphore, wakeSemaphore);
|
||||
waitSync, wakeSync);
|
||||
}
|
||||
|
||||
if (status == VK_SUCCESS) {
|
||||
|
@ -349,8 +349,8 @@ namespace dxvk {
|
||||
*/
|
||||
void submitCommandList(
|
||||
const Rc<DxvkCommandList>& commandList,
|
||||
const Rc<DxvkSemaphore>& waitSync,
|
||||
const Rc<DxvkSemaphore>& wakeSync);
|
||||
VkSemaphore waitSync,
|
||||
VkSemaphore wakeSync);
|
||||
|
||||
/**
|
||||
* \brief Locks submission queue
|
||||
|
@ -36,7 +36,8 @@ namespace dxvk {
|
||||
|
||||
dev->submitCommandList(
|
||||
ctx->endRecording(),
|
||||
nullptr, nullptr);
|
||||
VK_NULL_HANDLE,
|
||||
VK_NULL_HANDLE);
|
||||
}
|
||||
|
||||
|
||||
|
@ -323,7 +323,8 @@ namespace dxvk::hud {
|
||||
|
||||
device->submitCommandList(
|
||||
context->endRecording(),
|
||||
nullptr, nullptr);
|
||||
VK_NULL_HANDLE,
|
||||
VK_NULL_HANDLE);
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user