Repository navigation
Add a one-device option and test case callbacks - #4737
Merged
Merged
Conversation
These let a runtime capture each test case in a graphics debugger such as RenderDoc, which can capture only one device at a time and has no frame boundaries to capture between in the CTS. - `--one-device` (`globalTestConfig.oneDevice`) makes the device pool destroy its devices before it creates a new one. - `globalTestConfig.testCaseStartCallback`, `deviceAcquiredCallback` and `testCaseEndCallback` are called when a test case starts, when it acquires a device from the device pool, and when it has finished.
kainino0x
approved these changes
Nov 20, 2026
Review feedback: destroy every device first, then await them all.
s-perron
marked this pull request as ready for review
November 23, 2026 14:37
The cache hashes cover each test's imports, which include the changed framework files. Generated with 'npx grunt run:generate-cache'.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
These let a runtime capture each test case in a graphics debugger such
as RenderDoc, which can capture only one device at a time and has no
frame boundaries to capture between in the CTS.
--one-device(globalTestConfig.oneDevice) makes the device pooldestroy its devices before it creates a new one.
globalTestConfig.testCaseStartCallback,deviceAcquiredCallbackand
testCaseEndCallbackare called when a test case starts, when itacquires a device from the device pool, and when it has finished.
Draft for input on the design. The motivation is capturing each test case in RenderDoc from Dawn's standalone CTS runner.
Issue: #
Requirements for PR author:
.unimplemented()./** documented */and new helper files are found inhelper_index.txt.Requirements for reviewer sign-off:
When landing this PR, be sure to make any necessary issue status updates.