diff options
author | Laszlo Agocs <laszlo.agocs@qt.io> | 2019-09-07 19:23:09 +0200 |
---|---|---|
committer | Laszlo Agocs <laszlo.agocs@qt.io> | 2019-09-12 12:39:12 +0200 |
commit | f567129bb514b5856c7d1320cdc4dd5a84a5b6e3 (patch) | |
tree | 7e5209853f6877bb4ce7774053fe1a5148e11ddb /src/gui/painting/qcolormatrix_p.h | |
parent | 08ad96404b4c915eece1a547bf12e91664e7cdff (diff) |
rhi: d3d11: Add the device lost testing machinery
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>
Diffstat (limited to 'src/gui/painting/qcolormatrix_p.h')
0 files changed, 0 insertions, 0 deletions