Repository navigation
Implement Waves 1-5: shader, GPU, formats, HLE, and loader improvements - #1
Conversation
Waves 1-4: - Shader translator: merged Es/Ls/Gs/Hs stages, RootType::Constants 64-bit VA pairs (CONST_VIEW_SPACE=2), 64-bit image_atomic_*, Wave64-on-Wave32 LDS adaptation, transitive phi liveness, host-wave lane ops, NGG geometry mesh path, VSH3 shader cache - GPU runtime: waitable-timer frame pacing, host ID3D12QueryHeap & timestamp frequency, IDXGIOutput6 HDR + SetColorSpace1 + Blitter PSO + clamped CopyTextureRegion fallback, physical_epoch-gated texture hashing, coalesced watch guards, Shadow::copy_back scratch, indirect execution & descriptor heap scaling - Formats: GFX10.3 HTILE/DCC/CMASK/FMASK metadata planes and layout support - HLE: SAPI 5 speech synthesis, Freeverb DSP reverb, WinRT WGI 4-motor rumble, DirectStorage zero-staging streaming & 16 MiB scratch, APU Opus tests, display HDR mode resolution Wave 5: - victory-shader: ordered OLT|OGT for v_cmp_lg (Marvisak#706), denormal-as-zero legacy_mul (Marvisak#682), 16-bit VALU omod & v_cvt_{u16,i16}_f16 modifiers/saturation (Marvisak#668), v_interp_p1ll_f16 high-half preservation (Marvisak#683), LOD-clamped image_sample_*_cl & image_gather4_l (Marvisak#694), root-view structured buffer raw fallback (Marvisak#709), conversion-free tbuffer_store_format_* (Marvisak#707), cfg(windows) gate on constant_color (Marvisak#685) - victory-gpu & formats: upload CPU-written textures before CopyResource/CopyTextureRegion (Marvisak#671), clear vertex-buffer slots on null views (Marvisak#681), command-list 64-bit memory wait sync (Marvisak#700), dynamic descriptor slot reclamation from executed lists (Marvisak#688), private MICRO doc-link fix (Marvisak#696), clippy::field_reassign_with_default fix (Marvisak#692) - victory-hle, loader, formats, apps: 0x-prefixed TitleId & self-closing XML handling (Marvisak#715), xg null-out/bounds/checked-span validation (Marvisak#674), Media Foundation local-file URL policy on MFCreateFile/MFBeginCreateFile/MFCreateSourceReaderFromURL/MFCreateSinkWriterFromURL (Marvisak#663), checked PE patch offsets (Marvisak#670), zero-alloc streaming bcpack Workspace (Marvisak#703), in-repo capture/dump directory guards (Marvisak#679/Marvisak#664) Co-authored-by: arena-agent <297053741+arena-agent@users.noreply.github.com>
Thanks for using CodeAnt! 🎉We're free for open-source projects. if you're enjoying it, help us grow by sharing. Share on X · |
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars.
|
| #[cfg(windows)] | ||
| let freq = crate::host::host() | ||
| .and_then(|h| h.timestamp_frequency()) | ||
| .unwrap_or(TIMESTAMP_FREQUENCY); |
There was a problem hiding this comment.
Suggestion: On Windows this reports host ticks per second, but Written::GpuTimestamp still generates 100 MHz ticks, so elapsed-time conversions are wrong whenever the host frequency differs.
Assessment: 🟠 Major · 🔁 Occurrence: Rarely · 🏷️ Api mismatch
Prompt for AI Agent 🤖
This is a comment left during a code review.
**Path:** crates/victory-gpu/src/queue.rs
**Line:** 176:179
**Comment:**
*Api Mismatch: On Windows this reports host ticks per second, but `Written::GpuTimestamp` still generates 100 MHz ticks, so elapsed-time conversions are wrong whenever the host frequency differs.
Validate the correctness of the flagged issue. If correct, How can I resolve this? If you propose a fix, implement it and please make it concise.
Once fix is implemented, also check other comments on the same PR, and ask user if the user wants to fix the rest of the comments as well. if said yes, then fetch all the comments validate the correctness and implement a minimal fix| if last.hash.is_some() && last.epoch == epoch { | ||
| return 0; |
There was a problem hiding this comment.
Suggestion: For physical-page texture views, ordinary CPU stores do not bump physical_epoch, and writes(..., false) cannot observe them, so this early return leaves the host texture stale.
Assessment: 🟠 Major · 🔁 Occurrence: Sometimes · 🏷️ Cache
Prompt for AI Agent 🤖
This is a comment left during a code review.
**Path:** crates/victory-gpu/src/texture.rs
**Line:** 208:209
**Comment:**
*Cache: For physical-page texture views, ordinary CPU stores do not bump `physical_epoch`, and `writes(..., false)` cannot observe them, so this early return leaves the host texture stale.
Validate the correctness of the flagged issue. If correct, How can I resolve this? If you propose a fix, implement it and please make it concise.
Once fix is implemented, also check other comments on the same PR, and ask user if the user wants to fix the rest of the comments as well. if said yes, then fetch all the comments validate the correctness and implement a minimal fix| } | ||
| let id = read_cstr(voice_id); | ||
| // SAFETY: live handle from `create`. | ||
| unsafe { (*handle.cast::<Synthesizer>()).voice_id = Some(id) }; |
There was a problem hiding this comment.
Suggestion: Selecting a custom voice only changes stored state; stream synthesis ignores that value, so speech always uses the system default voice.
Assessment: 🟠 Major · 🔁 Occurrence: Sometimes · 🏷️ Incomplete implementation
Prompt for AI Agent 🤖
This is a comment left during a code review.
**Path:** crates/victory-hle/src/modules/speech.rs
**Line:** 182:182
**Comment:**
*Incomplete Implementation: Selecting a custom voice only changes stored state; stream synthesis ignores that value, so speech always uses the system default voice.
Validate the correctness of the flagged issue. If correct, How can I resolve this? If you propose a fix, implement it and please make it concise.
Once fix is implemented, also check other comments on the same PR, and ask user if the user wants to fix the rest of the comments as well. if said yes, then fetch all the comments validate the correctness and implement a minimal fix| (within, done) = (0, done + k); | ||
| } | ||
| true | ||
| victory_gpu::physical_memory_written(); |
There was a problem hiding this comment.
Suggestion: fill may alter mapped bytes before a later map or fill error exits this loop, skipping the epoch bump and leaving cached physical textures stale.
Assessment: 🟠 Major · 🔁 Occurrence: Rarely · 🏷️ Cache
Prompt for AI Agent 🤖
This is a comment left during a code review.
**Path:** crates/victory-hle/src/modules/xmem.rs
**Line:** 633:633
**Comment:**
*Cache: `fill` may alter mapped bytes before a later map or fill error exits this loop, skipping the epoch bump and leaving cached physical textures stale.
Validate the correctness of the flagged issue. If correct, How can I resolve this? If you propose a fix, implement it and please make it concise.
Once fix is implemented, also check other comments on the same PR, and ask user if the user wants to fix the rest of the comments as well. if said yes, then fetch all the comments validate the correctness and implement a minimal fix| match swizzle.0 { | ||
| 0 => 256, | ||
| 1..=3 => 256, | ||
| 4..=7 | 20..=22 => 4096, |
There was a problem hiding this comment.
Suggestion: Metadata alignment treats swizzle 23 as 64 KiB, although SW_4KB_R_X is a 4 KiB mode; generated plane offsets and reported allocation alignment are wrong.
Assessment: 🟠 Major · 🔁 Occurrence: Rarely · 🏷️ Api mismatch
Prompt for AI Agent 🤖
This is a comment left during a code review.
**Path:** crates/victory-formats/src/texture.rs
**Line:** 979:979
**Comment:**
*Api Mismatch: Metadata alignment treats swizzle 23 as 64 KiB, although `SW_4KB_R_X` is a 4 KiB mode; generated plane offsets and reported allocation alignment are wrong.
Validate the correctness of the flagged issue. If correct, How can I resolve this? If you propose a fix, implement it and please make it concise.
Once fix is implemented, also check other comments on the same PR, and ask user if the user wants to fix the rest of the comments as well. if said yes, then fetch all the comments validate the correctness and implement a minimal fix| if !self.root_uavs.is_empty() && graphics && !self.pixel { | ||
| self.flags |= flags::UAVS_AT_EVERY_STAGE; |
There was a problem hiding this comment.
Suggestion: A graphics shader using a root-constant-pair UAV leaves UAVS_AT_EVERY_STAGE unset, so its non-pixel UAV use is not declared in DXIL.
Assessment: 🟠 Major · 🔁 Occurrence: Rarely · 🏷️ Incomplete implementation
Prompt for AI Agent 🤖
This is a comment left during a code review.
**Path:** crates/victory-shader/src/emit/shader.rs
**Line:** 669:670
**Comment:**
*Incomplete Implementation: A graphics shader using a root-constant-pair UAV leaves `UAVS_AT_EVERY_STAGE` unset, so its non-pixel UAV use is not declared in DXIL.
Validate the correctness of the flagged issue. If correct, How can I resolve this? If you propose a fix, implement it and please make it concise.
Once fix is implemented, also check other comments on the same PR, and ask user if the user wants to fix the rest of the comments as well. if said yes, then fetch all the comments validate the correctness and implement a minimal fix| if self.root_uavs.len() > 8 { | ||
| self.flags |= flags::USE_64_UAVS; |
There was a problem hiding this comment.
Suggestion: This counts bindings instead of checking the highest UAV register and ignores constant-pair UAVs, so a binding above u7 can omit the required 64-UAV feature bit.
Assessment: 🟠 Major · 🔁 Occurrence: Rarely · 🏷️ Incorrect condition logic
Prompt for AI Agent 🤖
This is a comment left during a code review.
**Path:** crates/victory-shader/src/emit/shader.rs
**Line:** 672:673
**Comment:**
*Incorrect Condition Logic: This counts bindings instead of checking the highest UAV register and ignores constant-pair UAVs, so a binding above `u7` can omit the required 64-UAV feature bit.
Validate the correctness of the flagged issue. If correct, How can I resolve this? If you propose a fix, implement it and please make it concise.
Once fix is implemented, also check other comments on the same PR, and ask user if the user wants to fix the rest of the comments as well. if said yes, then fetch all the comments validate the correctness and implement a minimal fix| if let Some((_, [a, b])) = self.sop2(v, &["s_and_b32"]) { | ||
| return matches!(b, Term::Const(_)) && self.is_spill_hi(a, spill_hi) | ||
| || matches!(a, Term::Const(_)) && self.is_spill_hi(b, spill_hi); |
There was a problem hiding this comment.
Suggestion: is_spill_hi accepts every constant AND mask, including zero, so loads with the spill pointer's low word can be skipped and replaced by root data.
Assessment: 🟠 Major · 🔁 Occurrence: Rarely · 🏷️ Incorrect condition logic
Prompt for AI Agent 🤖
This is a comment left during a code review.
**Path:** crates/victory-shader/src/resource.rs
**Line:** 522:524
**Comment:**
*Incorrect Condition Logic: `is_spill_hi` accepts every constant AND mask, including zero, so loads with the spill pointer's low word can be skipped and replaced by root data.
Validate the correctness of the flagged issue. If correct, How can I resolve this? If you propose a fix, implement it and please make it concise.
Once fix is implemented, also check other comments on the same PR, and ask user if the user wants to fix the rest of the comments as well. if said yes, then fetch all the comments validate the correctness and implement a minimal fix| if self.inputs[v.0 as usize].is_some() { | ||
| return Sum::dynamic(v); | ||
| } |
There was a problem hiding this comment.
Suggestion: RootType::Constants inputs reach this branch as dynamic terms, never as address bases, so address() rejects the newly supported 64-bit constant-address pair.
Assessment: 🟠 Major · 🔁 Occurrence: Sometimes · 🏷️ Incomplete implementation
Prompt for AI Agent 🤖
This is a comment left during a code review.
**Path:** crates/victory-shader/src/resource.rs
**Line:** 600:602
**Comment:**
*Incomplete Implementation: `RootType::Constants` inputs reach this branch as dynamic terms, never as address bases, so `address()` rejects the newly supported 64-bit constant-address pair.
Validate the correctness of the flagged issue. If correct, How can I resolve this? If you propose a fix, implement it and please make it concise.
Once fix is implemented, also check other comments on the same PR, and ask user if the user wants to fix the rest of the comments as well. if said yes, then fetch all the comments validate the correctness and implement a minimal fix| if let Some((_, [a, Term::Const(_)])) = self.sop2(v, &["s_bfe_u32"]) { | ||
| t = a; | ||
| continue; | ||
| } |
There was a problem hiding this comment.
Suggestion: s_bfe_u32 is stripped without checking its bit range; a narrow extraction can truncate the high address word and still pass as the root address.
Assessment: 🟠 Major · 🔁 Occurrence: Rarely · 🏷️ Incorrect condition logic
Prompt for AI Agent 🤖
This is a comment left during a code review.
**Path:** crates/victory-shader/src/resource.rs
**Line:** 1127:1130
**Comment:**
*Incorrect Condition Logic: `s_bfe_u32` is stripped without checking its bit range; a narrow extraction can truncate the high address word and still pass as the root address.
Validate the correctness of the flagged issue. If correct, How can I resolve this? If you propose a fix, implement it and please make it concise.
Once fix is implemented, also check other comments on the same PR, and ask user if the user wants to fix the rest of the comments as well. if said yes, then fetch all the comments validate the correctness and implement a minimal fix| let ok = if let Some((_, [a, b])) = self.sop2(v, &["s_addc_u32"]) { | ||
| self.carried_inner(a, want, visiting) || self.carried_inner(b, want, visiting) |
There was a problem hiding this comment.
Suggestion: A nonzero second addend is treated as carry only; address() accepts the pointer and lowering drops that high-word contribution, accessing the wrong address.
Assessment: 🟠 Major · 🔁 Occurrence: Rarely · 🏷️ Incorrect condition logic
Prompt for AI Agent 🤖
This is a comment left during a code review.
**Path:** crates/victory-shader/src/resource.rs
**Line:** 1258:1259
**Comment:**
*Incorrect Condition Logic: A nonzero second addend is treated as carry only; `address()` accepts the pointer and lowering drops that high-word contribution, accessing the wrong address.
Validate the correctness of the flagged issue. If correct, How can I resolve this? If you propose a fix, implement it and please make it concise.
Once fix is implemented, also check other comments on the same PR, and ask user if the user wants to fix the rest of the comments as well. if said yes, then fetch all the comments validate the correctness and implement a minimal fix| (68, state::depth_bounds as *const ()), // 0x220 depth bounds | ||
| (69, write32 as *const ()), // 0x228 | ||
| (70, write64 as *const ()), // 0x230 | ||
| (71, wait_value as *const ()), // 0x238, 32 bits |
There was a problem hiding this comment.
Suggestion: 0x238 is the 32-bit wait slot, but it uses the same handler as the 64-bit slot, and wait_for_memory reads a u64; unrelated adjacent bits can make a satisfied wait time out.
Assessment: 🟠 Major · 🔁 Occurrence: Sometimes · 🏷️ Api mismatch
Prompt for AI Agent 🤖
This is a comment left during a code review.
**Path:** crates/victory-gpu/src/list.rs
**Line:** 1507:1508
**Comment:**
*Api Mismatch: `0x238` is the 32-bit wait slot, but it uses the same handler as the 64-bit slot, and `wait_for_memory` reads a `u64`; unrelated adjacent bits can make a satisfied wait time out.
Validate the correctness of the flagged issue. If correct, How can I resolve this? If you propose a fix, implement it and please make it concise.
Once fix is implemented, also check other comments on the same PR, and ask user if the user wants to fix the rest of the comments as well. if said yes, then fetch all the comments validate the correctness and implement a minimal fix| let mut const_views: Vec<(u32, u8)> = stages | ||
| .iter() | ||
| .flat_map(|(s, _)| { | ||
| let cbvs = s.const_cbvs.iter().map(|r| (r.register, 0u8)); | ||
| let srvs = s.const_srvs.iter().map(|r| (r.register, 1u8)); | ||
| let uavs = s.const_uavs.iter().map(|r| (r.register, 2u8)); | ||
| cbvs.chain(srvs).chain(uavs) | ||
| }) | ||
| .collect(); | ||
| const_views.sort_unstable(); | ||
| const_views.dedup(); |
There was a problem hiding this comment.
Suggestion: Two stages can assign the same register to different (slot, dword) pairs, but this drops that identity and emits one shared descriptor, causing one shader to read the other buffer.
Assessment: 🟠 Major · 🔁 Occurrence: Sometimes · 🏷️ Api mismatch
Prompt for AI Agent 🤖
This is a comment left during a code review.
**Path:** crates/victory-shader/src/emit/host.rs
**Line:** 163:173
**Comment:**
*Api Mismatch: Two stages can assign the same register to different `(slot, dword)` pairs, but this drops that identity and emits one shared descriptor, causing one shader to read the other buffer.
Validate the correctness of the flagged issue. If correct, How can I resolve this? If you propose a fix, implement it and please make it concise.
Once fix is implemented, also check other comments on the same PR, and ask user if the user wants to fix the rest of the comments as well. if said yes, then fetch all the comments validate the correctness and implement a minimal fix| pub fn physical_memory_written() { | ||
| PHYSICAL_EPOCH.fetch_add(1, Ordering::Release); | ||
| } |
There was a problem hiding this comment.
Suggestion: CPU writes through a mapped physical-page view do not advance this counter, so a texture hashed once can retain stale contents on later submissions.
Assessment: 🟠 Major · 🔁 Occurrence: Sometimes · 🏷️ Cache
Prompt for AI Agent 🤖
This is a comment left during a code review.
**Path:** crates/victory-gpu/src/watch.rs
**Line:** 131:133
**Comment:**
*Cache: CPU writes through a mapped physical-page view do not advance this counter, so a texture hashed once can retain stale contents on later submissions.
Validate the correctness of the flagged issue. If correct, How can I resolve this? If you propose a fix, implement it and please make it concise.
Once fix is implemented, also check other comments on the same PR, and ask user if the user wants to fix the rest of the comments as well. if said yes, then fetch all the comments validate the correctness and implement a minimal fix| if len == 0 || !HAS_GUARDS.load(Ordering::Acquire) { | ||
| return; | ||
| } |
There was a problem hiding this comment.
Suggestion: writing can see HAS_GUARDS as false after protect makes a page read-only but before it sets the flag, so kernel writes fail outside the vectored handler.
Assessment: 🟠 Major · 🔁 Occurrence: Rarely · 🏷️ Race condition
Prompt for AI Agent 🤖
This is a comment left during a code review.
**Path:** crates/victory-gpu/src/watch.rs
**Line:** 275:277
**Comment:**
*Race Condition: `writing` can see `HAS_GUARDS` as false after `protect` makes a page read-only but before it sets the flag, so kernel writes fail outside the vectored handler.
Validate the correctness of the flagged issue. If correct, How can I resolve this? If you propose a fix, implement it and please make it concise.
Once fix is implemented, also check other comments on the same PR, and ask user if the user wants to fix the rest of the comments as well. if said yes, then fetch all the comments validate the correctness and implement a minimal fix| } else if desc.ir.is_null() && ir_floats == 0 { | ||
| 0.18 | ||
| } else { | ||
| 0.0 | ||
| }; |
There was a problem hiding this comment.
Suggestion: ir_floats > 0 with a null IR takes this branch, sets ir_scale to zero, and makes the convolution output silent despite the documented fallback.
Assessment: 🟠 Major · 🔁 Occurrence: Rarely · 🏷️ Incorrect condition logic
Prompt for AI Agent 🤖
This is a comment left during a code review.
**Path:** crates/victory-hle/src/modules/dsp.rs
**Line:** 186:190
**Comment:**
*Incorrect Condition Logic: `ir_floats > 0` with a null IR takes this branch, sets `ir_scale` to zero, and makes the convolution output silent despite the documented fallback.
Validate the correctness of the flagged issue. If correct, How can I resolve this? If you propose a fix, implement it and please make it concise.
Once fix is implemented, also check other comments on the same PR, and ask user if the user wants to fix the rest of the comments as well. if said yes, then fetch all the comments validate the correctness and implement a minimal fix| } else if !uav_buffers.contains(&key) { | ||
| list.ensure_buffer(&shadow, BUFFER_READ); | ||
| } |
There was a problem hiding this comment.
Suggestion: When a dispatch reads and writes different views of the same shadow buffer, this skips the SRV state transition, leaving shader reads in UNORDERED_ACCESS.
Assessment: 🟠 Major · 🔁 Occurrence: Sometimes · 🏷️ Api mismatch
Prompt for AI Agent 🤖
This is a comment left during a code review.
**Path:** crates/victory-gpu/src/draw.rs
**Line:** 1317:1319
**Comment:**
*Api Mismatch: When a dispatch reads and writes different views of the same shadow buffer, this skips the SRV state transition, leaving shader reads in `UNORDERED_ACCESS`.
Validate the correctness of the flagged issue. If correct, How can I resolve this? If you propose a fix, implement it and please make it concise.
Once fix is implemented, also check other comments on the same PR, and ask user if the user wants to fix the rest of the comments as well. if said yes, then fetch all the comments validate the correctness and implement a minimal fix| 5 => current > reference, | ||
| 6 => current != reference, | ||
| 7 => current >= reference, | ||
| _ => true, |
There was a problem hiding this comment.
Suggestion: comparison == 1 is the valid NEVER mode, but this fallback marks it satisfied immediately, so the list runs before its wait.
Assessment: 🟠 Major · 🔁 Occurrence: Rarely · 🏷️ Incorrect condition logic
Prompt for AI Agent 🤖
This is a comment left during a code review.
**Path:** crates/victory-gpu/src/host.rs
**Line:** 527:527
**Comment:**
*Incorrect Condition Logic: `comparison == 1` is the valid `NEVER` mode, but this fallback marks it satisfied immediately, so the list runs before its wait.
Validate the correctness of the flagged issue. If correct, How can I resolve this? If you propose a fix, implement it and please make it concise.
Once fix is implemented, also check other comments on the same PR, and ask user if the user wants to fix the rest of the comments as well. if said yes, then fetch all the comments validate the correctness and implement a minimal fix| let read_u64 = |addr: usize| -> u64 { | ||
| let val = if addr.is_multiple_of(8) { | ||
| // SAFETY: title memory address recorded by the command list. | ||
| unsafe { (*(addr as *const std::sync::atomic::AtomicU64)).load(Ordering::Acquire) } | ||
| } else { | ||
| // SAFETY: title memory address recorded by the command list. | ||
| let v = unsafe { (addr as *const u64).read_unaligned() }; | ||
| std::sync::atomic::fence(Ordering::Acquire); | ||
| v | ||
| }; | ||
| val | ||
| }; |
There was a problem hiding this comment.
Suggestion: The 32-bit wait slot also reaches this code, but it reads eight bytes; neighboring memory can change the comparison and make the wait pass or block incorrectly.
Assessment: 🟠 Major · 🔁 Occurrence: Sometimes · 🏷️ Api mismatch
Prompt for AI Agent 🤖
This is a comment left during a code review.
**Path:** crates/victory-gpu/src/host.rs
**Line:** 539:550
**Comment:**
*Api Mismatch: The 32-bit wait slot also reaches this code, but it reads eight bytes; neighboring memory can change the comparison and make the wait pass or block incorrectly.
Validate the correctness of the flagged issue. If correct, How can I resolve this? If you propose a fix, implement it and please make it concise.
Once fix is implemented, also check other comments on the same PR, and ask user if the user wants to fix the rest of the comments as well. if said yes, then fetch all the comments validate the correctness and implement a minimal fix| let adapter = factory.EnumAdapters1(0).ok()?; | ||
| let output = adapter.EnumOutputs(0).ok()?; |
There was a problem hiding this comment.
Suggestion: HDR status is cached from adapter 0 and output 0, not the output containing the title window; multi-monitor setups can report the wrong HDR mode.
Assessment: 🟠 Major · 🔁 Occurrence: Sometimes · 🏷️ Logic error
Prompt for AI Agent 🤖
This is a comment left during a code review.
**Path:** crates/victory-gpu/src/host.rs
**Line:** 1901:1902
**Comment:**
*Logic Error: HDR status is cached from adapter 0 and output 0, not the output containing the title window; multi-monitor setups can report the wrong HDR mode.
Validate the correctness of the flagged issue. If correct, How can I resolve this? If you propose a fix, implement it and please make it concise.
Once fix is implemented, also check other comments on the same PR, and ask user if the user wants to fix the rest of the comments as well. if said yes, then fetch all the comments validate the correctness and implement a minimal fix
|
User description
Summary
Implements Waves 1–5 across
victory-shader,victory-gpu,victory-formats,victory-hle,victory-loader,victory-core, andapps/victory(48 files changed, +9965 / -1549; noCargo.toml/Cargo.lockchanges).Waves 1–4
victory-shader): MergedEs/Ls/Gs/Hsstages,RootType::Constants64-bit VA pairs (CONST_VIEW_SPACE = 2), 64-bitimage_atomic_*, Wave64-on-Wave32 LDS adaptation, transitive phi liveness, host-wave lane ops, NGG geometry mesh path, andVSH3cache.victory-gpu): High-res waitable-timer frame pacing, hostID3D12QueryHeap& timestamp frequency,IDXGIOutput6HDR +SetColorSpace1+BlitterPSO + clampedCopyTextureRegionfallback,physical_epoch-gated texture hashing, coalesced memory-watch guards, andShadow::copy_backscratch.victory-formats): GFX10.3 HTILE/DCC/CMASK/FMASK metadata planes and layout support wired intovictory-gpuandvictory-hle::xg.victory-hle): SAPI 5 speech synthesis, Freeverb DSP reverb, WinRT WGI 4-motor rumble, DirectStorage zero-staging streaming & 16 MiB scratch, APU Opus tests, anddisplay::resolve_hdr_mode.Wave 5
fcmp olt | fcmp ogtforv_cmp_lg(Shaders: v_cmp_lg is ordered on AMD hosts too (olt | ogt, not fcmp one) Marvisak/VIctory#706), denormal-as-zerolegacy_mul(Shaders: v_mul_legacy_f32 treats denormal operands as zero Marvisak/VIctory#682), 16-bit VALUomod&v_cvt_{u16,i16}_f16modifiers/saturation (Shaders: allow abs/neg source modifiers on v_cvt_{u16,i16}_f16 Marvisak/VIctory#668),v_interp_p1ll_f16high-half preservation (Shaders: zero unavailable mixed-precision FMA halves Marvisak/VIctory#683), LOD-clampedimage_sample_*_cl&image_gather4_l(Shaders: support image_sample_d_cl and image_gather4_l lowering (#293, #653) Marvisak/VIctory#694), root-view structured buffer raw fallback (Shaders: structured access through a root SRV or UAV uses its raw view (stacked on #294) Marvisak/VIctory#709), conversion-freetbuffer_store_format_*(Shaders: lower tbuffer_store_format_* that need no conversion Marvisak/VIctory#707), and#[cfg(windows)]gate onconstant_color(Shaders: gate the constant_color test helper to Windows Marvisak/VIctory#685).CopyResource/CopyTextureRegion(GPU: upload CPU-written textures before full and region copies Marvisak/VIctory#671), clear vertex-buffer slots on null views (GPU: unbind vertex buffer slots for null view arrays Marvisak/VIctory#681), command-list 64-bit memory wait sync (GPU: a command-list 64-bit memory wait lets the consumer read before its producer writes Marvisak/VIctory#700), dynamic descriptor slot reclamation from executed lists (GPU: take back the dynamic descriptor slots of lists that ran when a heap runs short Marvisak/VIctory#688), privateMICROdoc-link fix (Docs: drop the private intra-doc link to MICRO in texture.rs Marvisak/VIctory#696), andclippy::field_reassign_with_defaultfix (style: cargo fmt across the workspace; fix clippy field-reassign-with-default Marvisak/VIctory#692).0x-prefixedTitleId& self-closing XML handling (HLE: parse hex-prefixed TitleId in manifest and isolate self-closing element bodies Marvisak/VIctory#715),xgnull-out/bounds/checked-span validation (HLE (xg): validate null tiling output, slice bounds, and checked copy spans Marvisak/VIctory#674), Media Foundation local-file URL policy onMFCreateFile/MFBeginCreateFile/MFCreateSourceReaderFromURL/MFCreateSinkWriterFromURL(media: apply the local-file rule to the source reader, sink writer and MFCreateFile Marvisak/VIctory#663), checked PE patch offsets (loader: use checked offsets and sizes in image preparation Marvisak/VIctory#670), zero-alloc streamingbcpack::Workspace(Formats: eliminate BCPack per-call allocations and optimize streaming decode Marvisak/VIctory#703), and in-repo capture/dump directory guards (run: refuse capture and dump paths inside the repo Marvisak/VIctory#679/translate: refuse a VICTORY_EMIT_DUMP directory inside the repo Marvisak/VIctory#664).Verification
unsafeblocks, 0 asset-policy violations, 0 untracked files.cargo test/cargo clippyshould run on a Rust/Windows CI runner (norustc/cargoin the authoring sandbox).CodeAnt-AI Description
Expand game compatibility while improving graphics, audio, and controller support
What Changed
Impact
✅ Fewer shader translation failures across different GPUs✅ HDR and window-sized game presentation✅ Audible narration and four-motor controller rumble💡 Usage Guide
Checking Your Pull Request
Every time you make a pull request, our system automatically looks through it. We check for security issues, mistakes in how you're setting up your infrastructure, and common code problems. We do this to make sure your changes are solid and won't cause any trouble later.
Talking to CodeAnt AI
Got a question or need a hand with something in your pull request? You can easily get in touch with CodeAnt AI right here. Just type the following in a comment on your pull request, and replace "Your question here" with whatever you want to ask:
This lets you have a chat with CodeAnt AI about your pull request, making it easier to understand and improve your code.
Example
Preserve Org Learnings with CodeAnt
You can record team preferences so CodeAnt AI applies them in future reviews. Reply directly to the specific CodeAnt AI suggestion (in the same thread) and replace "Your feedback here" with your input:
This helps CodeAnt AI learn and adapt to your team's coding style and standards.
Example
Retrigger review
Ask CodeAnt AI to review the PR again, by typing:
Check Your Repository Health
To analyze the health of your code repository, visit our dashboard at https://app.codeant.ai. This tool helps you identify potential issues and areas for improvement in your codebase, ensuring your repository maintains high standards of code health.