Structure builder and rays: dispatches counted in threads, empty slots never entered, pages that are not there never hit; vertex signatures as DXC orders them

From DexNom/VIctory (GPL-3.0-or-later) bc3cd4b0 and 5f4c3df4:
- DispatchX's flag 0x20 says the counts are threads (bc3cd4b0). Taken for
  groups, a rehydration stage ran up to 64 times its threads and stored over
  the structures after its own. The lanes past the count leave at once, in
  every builder program of one dimension without a group barrier (there: in
  two, by digest). VICTORY_THREAD_DIMENSIONS=0: as before.
- A child that is not there may have inverted infinite bounds: it was entered
  at minus infinity, came first and ended the walk (bc3cd4b0).
- A node in a page without a copy reads zeros, a child and a box: no hit
  (bc3cd4b0).
- Signature rows in the order of their names; vertex outputs interpolated as
  the title's PSV0 says; an unread input packed beside a per-vertex one is
  constant too (5f4c3df4), with their tests.
Every shader is translated again.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
localandClaude Opus 5.5 committed 2026-11-25 09:39:18 -06:00
1 parent 972bb4b0f8
commit 810efe5829
11 files changed
+443 -44

No files matched your search

+7
View File
@@ -122,6 +122,8 @@ fn shader(stage: &'static str, bytes: &[u8]) -> Arc<Shader> {
#[cfg(windows)]
pub(crate) struct Translated {
pub(crate) host: victory_shader::emit::HostShader,
/// A compute program's threads in a group.
pub(crate) threads: Option<[u32; 3]>,
pub(crate) used: Vec<victory_shader::UsedResource>,
/// Whether the shader's code can store to buffer memory ([`stores`]);
/// true when its code is not known.
@@ -200,6 +202,10 @@ fn translate(container: &[u8]) -> Result<Translated, String> {
};
let host = crate::shader_cache::host_shader(container)?;
let stores = programs.is_empty() || programs.iter().any(stores);
let threads = programs.iter().find_map(|p| match &p.io {
victory_shader::native::StageIo::Cs(cs) if cs.threads.iter().all(|&n| n > 0) => Some(cs.threads),
_ => None,
});
let stores_by_address = programs.is_empty() || programs.iter().any(stores_by_address);
let used = programs
.into_iter()
@@ -213,6 +219,7 @@ fn translate(container: &[u8]) -> Result<Translated, String> {
.unwrap_or_default();
Ok(Translated {
host,
threads,
used,
stores,
stores_by_address,