summaryrefslogtreecommitdiffstats
path: root/src/gui/rhi/tdr.hlsl
Commit message (Collapse)AuthorAgeFilesLines
* rhi: d3d11: Drop the built-in TDR testLaszlo Agocs2023-02-201-9/+0
| | | | | | | | | This does not really belong here as a built-in feature, esp. considering that such testing is relevant for other backends as well. Change-Id: Ifbe3b8c6a430aacb9fcbdabf0e3761b14c48decc Reviewed-by: Andy Nichols <andy.nichols@qt.io>
* rhi: d3d11: Add the device lost testing machineryLaszlo Agocs2019-09-121-0/+9
The device can be lost when physically removing the graphics adapter, disabling the driver (Device Manager), upgrading/uninstalling the graphics driver, and when it is reset due to an error. Some of these can (and should) be tested manually, but the last one has a convenient, programmatic way of triggering: by triggering the timeout detection and recovery (TDR) of WDDM. A compute shader with an infinite loop should trigger this after 2 seconds by default. All tests in tests/manual/rhi can now be started with a --curse <count> argument where <count> specifies the number of frames to render before breaking the device. Qt Quick will get an environment variable with similar semantics in a separate patch. Change-Id: I4b6f8d977a15b5b89d686b3973965df6435810ae Reviewed-by: Christian Strømme <christian.stromme@qt.io>