Skip to content

Commit

Permalink
Merge branch 'yaobin2/FixEyeAdaption' into 'main'
Browse files Browse the repository at this point in the history
[REMIX-3044] Fix device lost when toggling eye adaption

See merge request lightspeedrtx/dxvk-remix-nv!886
  • Loading branch information
Yaobin Ouyang committed Jul 2, 2024
2 parents 3c41a66 + 8ce8e1c commit dd71f5e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/dxvk/rtx_render/rtx_dlss.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -325,6 +325,10 @@ namespace dxvk {
}

void DxvkDLSS::initializeDLSS(Rc<DxvkContext> renderContext) {
// Toggling eye adaptation may cause DLSS get reinitialized while last frame is still executing.
// Use waitForIdle() to prevent racing conditions.
m_device->waitForIdle();

NGXDLSSContext* dlssWrapper = NGXDLSSContext::getInstance(m_device);
dlssWrapper->releaseNGXFeature();

Expand Down

0 comments on commit dd71f5e

Please sign in to comment.