mirror of
https://github.com/skyline-emu/skyline.git
synced 2024-12-29 16:25:36 +03:00
Lock textures before attaching in BlitContext
This commit is contained in:
parent
cb2b36e3ab
commit
8180bf852e
@ -123,8 +123,12 @@ namespace skyline::gpu::interconnect {
|
|||||||
auto srcTextureView{gpu.texture.FindOrCreate(srcGuestTexture)};
|
auto srcTextureView{gpu.texture.FindOrCreate(srcGuestTexture)};
|
||||||
auto dstTextureView{gpu.texture.FindOrCreate(dstGuestTexture)};
|
auto dstTextureView{gpu.texture.FindOrCreate(dstGuestTexture)};
|
||||||
|
|
||||||
executor.AttachTexture(&*srcTextureView);
|
{
|
||||||
executor.AttachTexture(&*dstTextureView);
|
std::scoped_lock lock{*srcTextureView, *dstTextureView};
|
||||||
|
|
||||||
|
executor.AttachTexture(&*srcTextureView);
|
||||||
|
executor.AttachTexture(&*dstTextureView);
|
||||||
|
}
|
||||||
|
|
||||||
auto getSubresourceLayers{[](const vk::ImageSubresourceRange &range, vk::ImageAspectFlags aspect) {
|
auto getSubresourceLayers{[](const vk::ImageSubresourceRange &range, vk::ImageAspectFlags aspect) {
|
||||||
return vk::ImageSubresourceLayers{
|
return vk::ImageSubresourceLayers{
|
||||||
|
Loading…
Reference in New Issue
Block a user