mirror of
https://github.com/doitsujin/dxvk.git
synced 2025-04-06 00:57:40 +02:00
[dxvk] Use new lifetime tracking for queries
This commit is contained in:
parent
4a00623c40
commit
50d8e3933a
@ -286,10 +286,6 @@ namespace dxvk {
|
|||||||
m_resources.trackEvent(std::move(event));
|
m_resources.trackEvent(std::move(event));
|
||||||
}
|
}
|
||||||
|
|
||||||
void trackQuery(Rc<DxvkGpuQuery>&& query) {
|
|
||||||
m_resources.trackQuery(std::move(query));
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* \brief Tracks an object
|
* \brief Tracks an object
|
||||||
*
|
*
|
||||||
|
@ -352,7 +352,7 @@ namespace dxvk {
|
|||||||
VK_PIPELINE_STAGE_ALL_COMMANDS_BIT,
|
VK_PIPELINE_STAGE_ALL_COMMANDS_BIT,
|
||||||
handle.first, handle.second);
|
handle.first, handle.second);
|
||||||
|
|
||||||
cmd->trackQuery(std::move(q));
|
cmd->track(std::move(q));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -425,7 +425,7 @@ namespace dxvk {
|
|||||||
else
|
else
|
||||||
cmd->cmdBeginQuery(handle.first, handle.second, flags);
|
cmd->cmdBeginQuery(handle.first, handle.second, flags);
|
||||||
|
|
||||||
cmd->trackQuery(Rc<DxvkGpuQuery>(array.gpuQuery));
|
cmd->track(array.gpuQuery);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -374,7 +374,7 @@ namespace dxvk::hud {
|
|||||||
|
|
||||||
// Make sure GPU resources are being kept alive as necessary
|
// Make sure GPU resources are being kept alive as necessary
|
||||||
ctx.cmd->trackResource<DxvkAccess::Write>(m_gpuBuffer);
|
ctx.cmd->trackResource<DxvkAccess::Write>(m_gpuBuffer);
|
||||||
ctx.cmd->trackQuery(Rc<DxvkGpuQuery>(m_query));
|
ctx.cmd->track(m_query);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user