Frame replay: --shaders takes passes of ours too, by their own hash
Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
1 parent
03fbb23b27
commit
eaef3651c6
2 files changed
+4
-3
No files matched your search
@@ -97,7 +97,7 @@ pub struct Options {
|
||||
/// these in it.
|
||||
pub skip_shaders: Vec<String>,
|
||||
/// Shaders taken from this folder where it has them: `<hash>.dxil`, by
|
||||
/// the hash the runtime names the title's shader by.
|
||||
/// the hash the runtime names the title's shader by (ours: by their own).
|
||||
pub shaders: Option<PathBuf>,
|
||||
/// With `compare`: the folder the shaders of the second are from.
|
||||
pub shaders_b: Option<PathBuf>,
|
||||
@@ -948,7 +948,8 @@ impl Player {
|
||||
let taken = std::cell::Cell::new(false);
|
||||
let mut m = super::pso::make(&device, &p.parts, root, |i| {
|
||||
let other = shaders.and_then(|dir| {
|
||||
let hash = title_hash(p, i)?;
|
||||
let own = || frame.codes.get(i as usize).map(|c| c.hash[..8].iter().map(|b| format!("{b:02x}")).collect());
|
||||
let hash = title_hash(p, i).map(str::to_owned).or_else(own)?;
|
||||
std::fs::read(dir.join(format!("{hash}.dxil"))).ok()
|
||||
});
|
||||
taken.set(taken.get() || other.is_some());
|
||||
|
||||
+1
-1
@@ -69,7 +69,7 @@ with the presented one.
|
||||
| `--only 3..7` | runs these lists; of the others only barriers |
|
||||
| `--no-merge` | copies of what the CPU wrote also overwrite the card's own results (below) |
|
||||
| `--skip-shader <text>` | leaves out what runs pipelines with the text in their name or DXIL hash (repeatable) |
|
||||
| `--shaders <folder>` | takes shaders from the folder where it has them: `<hash>.dxil`, by the hash the runtime names the title's shader by; with `--compare --shaders-b <folder>` a second set, turn by turn with the first |
|
||||
| `--shaders <folder>` | takes shaders from the folder where it has them: `<hash>.dxil`, by the hash the runtime names the title's shader by (a pass of ours: its own DXIL hash); with `--compare --shaders-b <folder>` a second set, turn by turn with the first |
|
||||
| `--retranslate <folder>` | only writes that folder: the capture's shaders translated by this build with the `VICTORY_*` switches of this run (`--view-limit`, `--raw-views`: the view heap's null slot and where raw views start, as the capture's shaders have them) |
|
||||
| `--no-restore` | leaves what a loop changed, and makes no copies to restore from (of a capture that does not fit in the card's memory with them) |
|
||||
| `--pace <ms>` | a wait after each submission sent: the card stands idle between them, as in a game that prepares the next one |
|
||||
|
||||
Reference in new issue
Block a user