Removed bug calling start/end during sequence submit phase

This commit is contained in:
Alejandro Saucedo 2020-08-22 16:27:09 +01:00
parent ce00048d8c
commit 906533ae9d
5 changed files with 11 additions and 12 deletions

View file

@ -97,11 +97,6 @@ Sequence::eval()
{
SPDLOG_DEBUG("Kompute sequence compute recording EVAL");
bool toggleSingleRecording = !this->mRecording;
if (toggleSingleRecording) {
this->begin();
}
const vk::PipelineStageFlags waitStageMask =
vk::PipelineStageFlagBits::eTransfer;
vk::SubmitInfo submitInfo(
@ -116,10 +111,6 @@ Sequence::eval()
this->mDevice->waitForFences(1, &fence, VK_TRUE, UINT64_MAX);
this->mDevice->destroy(fence);
if (toggleSingleRecording) {
this->end();
}
// TODO: Explore whether moving postSubmit calls to a separate sequence
// function that is explicitly called by the manager
for (size_t i = 0; i < this->mOperations.size(); i++) {