1
0
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:
Philip Rebohle 2018-11-28 11:01:47 +01:00
parent a5c17f2753
commit 746529b71b
No known key found for this signature in database
GPG Key ID: C8CC613427A31C99
6 changed files with 17 additions and 25 deletions

View File

@ -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);
}

View File

@ -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());

View File

@ -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) {

View File

@ -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

View File

@ -36,7 +36,8 @@ namespace dxvk {
dev->submitCommandList(
ctx->endRecording(),
nullptr, nullptr);
VK_NULL_HANDLE,
VK_NULL_HANDLE);
}

View File

@ -323,7 +323,8 @@ namespace dxvk::hud {
device->submitCommandList(
context->endRecording(),
nullptr, nullptr);
VK_NULL_HANDLE,
VK_NULL_HANDLE);
}