mirror of
https://github.com/skyline-emu/skyline.git
synced 2024-12-24 17:21:51 +01:00
Fix Depth RT lock to be in scope
Earlier texture locking design required the lock to be retained but since the introduction of `AttachTexture`, this no longer needs to be done. This being done caused deadlocks when the depth texture is sampled by the fragment shader while being bound as an RT since it would attempt to lock the texture again.
This commit is contained in:
parent
1c8d994161
commit
ae5bcbdb5c
@ -2856,9 +2856,8 @@ namespace skyline::gpu::interconnect {
|
||||
|
||||
// Depth/Stencil Render Target Setup
|
||||
auto depthRenderTargetView{GetDepthRenderTarget()};
|
||||
std::optional<std::scoped_lock<TextureView>> depthTargetLock;
|
||||
if (depthRenderTargetView) {
|
||||
depthTargetLock.emplace(*depthRenderTargetView);
|
||||
std::scoped_lock lock(*depthRenderTargetView);
|
||||
executor.AttachTexture(depthRenderTargetView);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user