Remove redundant synchost creating a new buffer

This commit is contained in:
Billy Laws 2022-07-31 14:58:47 +01:00
parent 11a8feb037
commit f4e58a9238

View File

@ -185,7 +185,6 @@ namespace skyline::gpu {
// If we couldn't find any overlapping buffers, create a new buffer without coalescing // If we couldn't find any overlapping buffers, create a new buffer without coalescing
LockedBuffer buffer{std::make_shared<Buffer>(gpu, guestMapping), tag}; LockedBuffer buffer{std::make_shared<Buffer>(gpu, guestMapping), tag};
buffer->SetupGuestMappings(); buffer->SetupGuestMappings();
buffer->SynchronizeHost();
InsertBuffer(*buffer); InsertBuffer(*buffer);
return buffer->GetView(offset, size); return buffer->GetView(offset, size);
} else { } else {