-
Notifications
You must be signed in to change notification settings - Fork 124
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add options to save and load pipeline caches
Add three options `--save-pipeline-cache`, `--load-pipeline-cache` and `--add-new-pipeline-caches` to manually handle pipeline cache creation/loading instead of using the ones saved in the capture file. This is useful when pipeline creation is slow on the target system. You can generate the cache once then run the trace multiple times, or generate it on a faster device type with the same GPU and driver. When using `--save-pipeline-cache` the contents of the pipeline caches are written to the specified file just before their destruction, and just before the destruction of the last bound pipeline for caches created by `--create-new-pipeline-cache`, or at the end of the program if no destruction occurs before. When using `--load-pipeline-cache` the contents of the pipeline caches are loaded just before their creation, and just before the creation of the pipeline for caches created by `--create-new-pipeline-cache`. If set, allows gfxreconstruct to create new vkPipelineCache objects when it encounters a pipeline created without cache. This option can be used in coordination with `--save-pipeline-cache` and `--load-pipeline-cache`. Change-Id: I40667416efe4c88033c386f6ec5fd53a86dd58ca
- Loading branch information
1 parent
118b535
commit 655c52c
Showing
10 changed files
with
617 additions
and
51 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
Oops, something went wrong.