Avoid resetting command buffers manually it's implicit

Somewhat costly on adreno, and with the one time submit flag the reset is implicit for the next beginCommandBuffers call.
This commit is contained in:
Billy Laws 2022-09-23 22:05:52 +01:00
parent e1717ed811
commit 128b68d8b2

View File

@ -32,7 +32,7 @@ namespace skyline::gpu::interconnect {
std::shared_ptr<FenceCycle> CommandRecordThread::Slot::Reset(GPU &gpu) {
cycle->Wait();
cycle = std::make_shared<FenceCycle>(gpu.vkDevice, *fence);
commandBuffer.reset();
// Command buffer doesn't need to be reset since that's done implicitly by begin
return cycle;
}