diff options
author | Laszlo Agocs <laszlo.agocs@qt.io> | 2023-02-17 12:18:03 +0100 |
---|---|---|
committer | Laszlo Agocs <laszlo.agocs@qt.io> | 2023-02-20 18:06:32 +0100 |
commit | c6b7737436fb375b3b637e05076d82628d616e4c (patch) | |
tree | 465bbafcfcc499c93dbc2c64df6491c155cd378e /tests/manual/rhi/shared/examplefw.h | |
parent | 9ac0742d3699bdce7015abeecec8aa23abea47d6 (diff) |
rhi: d3d11: Drop the built-in TDR test
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>
Diffstat (limited to 'tests/manual/rhi/shared/examplefw.h')
-rw-r--r-- | tests/manual/rhi/shared/examplefw.h | 15 |
1 files changed, 1 insertions, 14 deletions
diff --git a/tests/manual/rhi/shared/examplefw.h b/tests/manual/rhi/shared/examplefw.h index 44904d6fff..21db0836ad 100644 --- a/tests/manual/rhi/shared/examplefw.h +++ b/tests/manual/rhi/shared/examplefw.h @@ -83,7 +83,6 @@ int sampleCount = 1; QRhiSwapChain::Flags scFlags; QRhi::BeginFrameFlags beginFrameFlags; QRhi::EndFrameFlags endFrameFlags; -int framesUntilTdr = -1; bool transparentBackground = false; bool debugLayer = true; @@ -243,10 +242,6 @@ void Window::init() if (debugLayer) qDebug("Enabling D3D11 debug layer"); params.enableDebugLayer = debugLayer; - if (framesUntilTdr > 0) { - params.framesUntilKillingDeviceViaTdr = framesUntilTdr; - params.repeatDeviceKill = true; - } m_r = QRhi::create(QRhi::D3D11, ¶ms, rhiFlags); } else if (graphicsApi == D3D12) { QRhiD3D12InitParams params; @@ -414,12 +409,7 @@ int main(int argc, char **argv) cmdLineParser.addOption(sdOption); QCommandLineOption coreProfOption({ "c", "core" }, QLatin1String("Request a core profile context for OpenGL")); cmdLineParser.addOption(coreProfOption); - // Attempt testing device lost situations on D3D at least. - QCommandLineOption tdrOption(QLatin1String("curse"), QLatin1String("Curse the graphics device. " - "(generate a device reset every <count> frames when on D3D11)"), - QLatin1String("count")); - cmdLineParser.addOption(tdrOption); - // Allow testing preferring the software adapter (D3D). + // Allow testing preferring the software adapter (D3D, Vulkan). QCommandLineOption swOption(QLatin1String("software"), QLatin1String("Prefer a software renderer when choosing the adapter. " "Only applicable with some APIs and platforms.")); cmdLineParser.addOption(swOption); @@ -499,9 +489,6 @@ int main(int argc, char **argv) } #endif - if (cmdLineParser.isSet(tdrOption)) - framesUntilTdr = cmdLineParser.value(tdrOption).toInt(); - if (cmdLineParser.isSet(swOption)) rhiFlags |= QRhi::PreferSoftwareRenderer; |