Faces move, ray tracing mostly off, intro video fix, picture fixes

- Faces: the face network's 16-bit values travel through integer views; they
  were read as floats and came back as zeros on NVIDIA. Port of
  fxceless/victory-fork pull request 927 (tippythetaidum): emit/halves.rs,
  lower.rs, descriptor/host.rs, draw.rs.
- Ray tracing mostly off: scripts/rt_off_hashes.txt lists the 1,000
  CS_RaytracingResolve and 34 traced-shadow shaders, skipped by
  play-nvidia.ps1 through VICTORY_SKIP_PIPELINES (-RayTracing keeps them).
  The structure builder cannot run on NVIDIA, so every ray missed and rooms
  went white depending on the view angle. The screen-probe and visibility
  traces keep running; skipping them left rainbow glitter.
- Intro video flicker: linear one-level R8 video planes always record their
  copy (texture.rs), so frames of the ring no longer show out of order.
- VICTORY_AMBIENT_MOST (ambient.rs), VICTORY_NAN_SCRUB (emit/lower.rs) and
  VICTORY_PIPELINE_WAIT_ONCE (pipeline/make.rs, on by default).
- Off by default: VICTORY_CONSTANT_MARKS (port of fxceless pull request
  1216), VICTORY_TARGET_VARIANTS (port of fxceless a35c557393), F9 frame
  capture (capture.rs).
- play-nvidia.ps1: the speed set by default, -Quality for the slower set
  with fewer stretched bodies and less rainbow skin. README updated.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
trustno1-coderandClaude Opus 5.5 committed 2026-11-25 19:13:08 -08:00
1 parent 3e5fb36392
commit 77e13a974a
27 files changed
+1868 -73

No files matched your search

+23 -2
View File
@@ -122,8 +122,8 @@ pub use lower::{host_settings, set_host_max_wave, set_host_rdna};
pub use rect::rect_list_gs;
pub use shader::{
MEMORY_FAULTS, MEMORY_PAGES, MEMORY_READ_ONLY, ROOT_CBV_SPACE, SAMPLER_SPACE, SLOT_FAULTS, SLOT_MEMORY, SLOT_STRIDES,
SLOT_STRIDES_COUNT, USER_DATA_SPACE, VIEW_INTEGER, VIEW_SIGNED, VIEW_STRIDE_BITS, USER_DISPATCH_THREADS_X, USER_MEMORY_BASE, USER_ROOT_ADDRESS, USER_VIEW_ADDRESS, USER_VIEW_BIAS,
raw_views, set_raw_views, set_view_heap_limit, view_heap_limit,
SLOT_STRIDE_CONSTANT, SLOT_STRIDES_COUNT, USER_DATA_SPACE, VIEW_INTEGER, VIEW_SIGNED, VIEW_STRIDE_BITS, USER_DISPATCH_THREADS_X, USER_MEMORY_BASE, USER_ROOT_ADDRESS, USER_VIEW_ADDRESS, USER_VIEW_BIAS,
constant_marks, raw_views, set_raw_views, set_view_heap_limit, view_heap_limit,
};
/// The loop limit without an override: 2^20.
@@ -354,6 +354,21 @@ pub struct HostShader {
pub root_uavs: Vec<u8>,
/// Heap descriptors that can be selected from root state at bind time.
pub root_indexed_views: Vec<crate::resource::RootIndexedView>,
/// Table descriptors (root parameter, dword offset in the table) whose
/// buffer the shader reads or writes sixteen bits a channel
/// (`buffer_load_format_d16_*`, `buffer_store_format_d16_*`), in
/// order. On the console each channel's 16 bits move as they are
/// through a 16-bit float view and through a 16-bit integer one alike
/// (the title keeps half floats, and indices beside them, in
/// `R16G16B16A16_UINT` and `R16_UINT` buffers). The DXIL moves them as
/// unsigned integers, which an unsigned 16-bit view carries unchanged;
/// the host shows the shader a 16-bit float or signed buffer view at
/// these places as the unsigned format of the same layout.
/// shortcut: a view in a normalised 16-bit format, whose values the
/// console would convert to halves, is read as its integers; a
/// descriptor picked at run time keeps the float path (its slot, and so
/// its format, is known only then).
pub half_views: Vec<(u8, u32)>,
}
impl HostShader {
@@ -796,6 +811,7 @@ fn emit_program(
root_srvs: l.root_srvs,
root_uavs: l.root_uavs,
root_indexed_views: res.root_indexed_views.clone(),
half_views: l.half_views,
};
Ok((shader, wave_size))
}
@@ -1578,6 +1594,7 @@ mod tests {
root_srvs: Vec::new(),
root_uavs: Vec::new(),
root_indexed_views: Vec::new(),
half_views: Vec::new(),
};
let file = |var: &str, stage| {
std::env::var(var).ok().map(|p| super::HostShader {
@@ -1590,6 +1607,7 @@ mod tests {
root_srvs: Vec::new(),
root_uavs: Vec::new(),
root_indexed_views: Vec::new(),
half_views: Vec::new(),
})
};
let ps = file("VICTORY_REF_PS", crate::HwStage::Ps).unwrap_or(ps);
@@ -2199,6 +2217,7 @@ mod tests {
root_srvs: l.root_srvs,
root_uavs: l.root_uavs,
root_indexed_views: Vec::new(),
half_views: Vec::new(),
};
let (root, pso) = host.compute_pipeline(&cs).unwrap();
// Twelve dwords: the loads below run across the view's end.
@@ -2352,6 +2371,7 @@ mod tests {
root_srvs: l.root_srvs,
root_uavs: l.root_uavs,
root_indexed_views: Vec::new(),
half_views: l.half_views,
};
let (root, pso) = host.compute_pipeline(&cs).unwrap();
let inputs: Vec<u32> = [
@@ -2768,6 +2788,7 @@ mod barycentric_tests {
root_srvs: Vec::new(),
root_uavs: Vec::new(),
root_indexed_views: Vec::new(),
half_views: Vec::new(),
};
validate(&vs);
// One triangle covers an 8x8 target, with attribute values 2, 6, 10.