A write through one view of a page is seen at its other views; page writes counted; levels on demand (off); warm-up; card memory numbers
Memory sync: - The guard over every view of a physical page (code by myokex, victory-amd c6dc4d8, after pull request #115 by Spexivus, its correction by joroyt and a part of VIctory #1122 by tightfall): the title shows one page at several addresses and a copy was guarded at one only. 0.8 to 1.0 million writes through another view in a five-minute run on the test machine. VICTORY_VIEW_GUARD=0 turns it off. - Kernel reads into title memory are read beside and copied in (Joshua Odom, 10ea38e). - Writes of the storage layer into physical pages are counted where the title has the pages mapped and can open the guards there (VICTORY_PAGE_WRITES, off: counted only). Failed page-destination reads are retried. Card memory: - Levels on demand, off unless VICTORY_LEVELS_ON_DEMAND=1: a texture the title fills takes card memory for the levels the title holds; held levels get memory only while the card has room and are asked for again. Its test runs on the software adapter; not run on a card yet. - Refused texture slots are held back so a pass reaches the slots behind them; room can be kept for card copies of title buffers (off). Tools: translate --warm all; the shader cache is keyed on the translator's source; counters for copy-back races, page writes and the copies the texture sweep never lets go; a walls trace. Game runs of these changes on an RTX 4070: five five-minute runs without a device loss or a failed request. This merged tree was built; its test suites were run on the tree the changes come from (gpu 129, hle 97). Co-Authored-By: Claude Fable 5.2 <[email protected]>
This commit is contained in:
1 parent
8d3ce0190f
commit
847a0af35e
25 files changed
+4218
-240
No files matched your search
@@ -188,6 +188,33 @@ pub fn shader_opt() -> u32 {
|
||||
*PASSES.get_or_init(|| parse_shader_opt(std::env::var("VICTORY_SHADER_OPT").ok().as_deref()))
|
||||
}
|
||||
|
||||
/// Everything a translation depends on besides the container: the
|
||||
/// translator's own source (hashed at build time), the value of every
|
||||
/// `VICTORY_*` switch it reads, the host facts the device hands it (widest
|
||||
/// wave, view heap limit) and the settings above. The shader cache keys on
|
||||
/// this instead of on the whole executable, so a rebuild that leaves the
|
||||
/// translator alone keeps its translations. Call it after the device is made.
|
||||
pub fn translation_fingerprint() -> Vec<u8> {
|
||||
let mut out = Vec::new();
|
||||
out.extend_from_slice(env!("VICTORY_SHADER_SOURCE_HASH").as_bytes());
|
||||
out.push(u8::from(cfg!(feature = "diagnostics")));
|
||||
out.push(u8::from(cfg!(debug_assertions)));
|
||||
for name in env!("VICTORY_SHADER_SWITCHES").split(',').filter(|n| !n.is_empty()) {
|
||||
out.extend_from_slice(name.as_bytes());
|
||||
out.push(b'=');
|
||||
if let Some(value) = std::env::var_os(name) {
|
||||
out.extend_from_slice(value.as_encoded_bytes());
|
||||
}
|
||||
out.push(0);
|
||||
}
|
||||
out.extend_from_slice(&lower::host_max_wave().to_le_bytes());
|
||||
out.extend_from_slice(&shader::view_heap_limit().to_le_bytes());
|
||||
out.extend_from_slice(&loop_limit().to_le_bytes());
|
||||
out.push(group_sync());
|
||||
out.extend_from_slice(&shader_opt().to_le_bytes());
|
||||
out
|
||||
}
|
||||
|
||||
/// `VICTORY_SHADER_OPT`'s value; every pass when it is unset or
|
||||
/// unreadable. Pure, for testing.
|
||||
fn parse_shader_opt(value: Option<&str>) -> u32 {
|
||||
|
||||
Reference in new issue
Block a user