Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-121769

QWidgets application cannot recover from d3d11/d3d12 graphics device lost

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P3: Somewhat important
    • None
    • 6.5
    • Qt RHI
    • None
    • Windows

    Description

      Looks like qbackingstoredefaultcompositor.cpp only handles device lost after checking beginFrame().

      QRhiD3D11::beginFrame() & QRhiD3D12::beginFrame() never return QRhi::FrameOpDeviceLost.

      QRhiD3D11::beginFrame() always returns success

      QRhiD3D12::beginFrame() never returns a device lost error code

       

      Would it be possible to check for device lost on beginFrame()? (Or handle the endFrame() scenario)

      https://learn.microsoft.com/en-us/windows/win32/api/d3d11/nf-d3d11-id3d11device-getdeviceremovedreason
      https://learn.microsoft.com/en-us/windows/win32/api/d3d12/nf-d3d12-id3d12device-getdeviceremovedreason

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            lagocs Laszlo Agocs
            ctummon Cathal Tummon
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes