Repository navigation
Port upstream correctness wave 5 (19 PRs: bounds/layout validation, diagnostics, loader/HLE fixes) - #5
Merged
Conversation
A texture that received a GPU copy or resolve kept the host contents for good, so later title writes (streamed mips, for example) never reached the host copy. Record where the memory stood at the host copy: the write-watch asking for watched memory, a content hash otherwise. Upload skips the texture only while the memory is unchanged since then. Fixes #758
- PSV0 gets one string per arbitrary semantic element instead of sharing one between elements with the same name. - ISG1 and OSG1 sort elements by row only, so co-packed elements keep their order. - Interpolation modes come from the console container's PSV0 when it has one, falling back to DXC's defaults.
Outside compute a lane mask has no number form, and two patterns made
programs fail with "a lane mask read as data" although no lane mask is
read as a number:
- A join of registers that hold a mask's dword on one edge and data on
another (the compiler reuses them once the mask is dead; in mesh
programs, s_cselect_b64 s[8:9], exec, 0 on one path and
s_buffer_load_dword s9 on the other). The data phi now takes undef on
the mask's edge.
- s_bcnt1_i32_b64 (b32 in wave32) of a mask whose count is dead and
wgit update-ref -d CHERRY_PICK_HEADhose SCC ("some lane is set") picks a branch, as in
s_xor_b64 s[12:13], vcc, exec; s_bcnt1_i32_b64 s12, s[12:13];
s_cbranch_scc1. The lane pass now takes that SCC per lane, as for the
mask operations themselves.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…s with unit tests
…d add root.rs tests
…st.rs with unit tests
…ds.rs with 21 tests
f32_to_half adds 0x1000 before dropping the low 13 mantissa bits, so a value exactly halfway between two halves always rounds up: 1 + 2^-11 packs as 0x3c01 instead of 0x3c00. A rectangle's fourth corner computed on such a value gets a half one ulp off. fuzeofficlal measured it in native draws of the direct path on RTX 5090 and WARP (10 of 16 reference pixels before, 16 of 16 after) and wrote the fix: the retained bit decides halfway cases. Co-Authored-By: fuzeofficlal <fuzeofficlal@users.noreply.github.com> Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> # Conflicts: # crates/victory-gpu/src/descriptor/host.rs
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> # Conflicts: # crates/victory-gpu/src/draw.rs
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> # Conflicts: # crates/victory-gpu/src/host.rs # crates/victory-shader/src/emit/lower.rs
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> # Conflicts: # crates/victory-gpu/src/texture.rs
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> # Conflicts: # crates/victory-shader/src/emit/container.rs # crates/victory-shader/src/emit/mod.rs
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> # Conflicts: # crates/victory-gpu/src/pipeline/host.rs
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> # Conflicts: # crates/victory-gpu/src/root.rs
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> # Conflicts: # crates/victory-hle/src/runtime.rs
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Contributor
Author
|
I'll fix CI failures and address comments from users with write access. I'll skip comments containing "(aside)".
|
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
…up, row-only sort) Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
…nnot flake tests Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Wave 5 of the upstream port: 19 functional-correctness PRs from Marvisak/VIctory (+5977/−352, 28 files), focused on bounds/overflow validation, diagnostics, and correctness fixes across loader, HLE, GPU, and shader crates.
tls.rs/stacks.rsandwindows.rs(#1192, #1201); self-closing XML elements no longer claim the following text inruntime.rs(#1196); reject null out-pointers inQueryApiImpl(#1199); write decoded Opus samples through unaligned output buffers (#1214); grow DirectStorage BCPack intermediates as zlib inflates (#1238).shader_cache.rs(#1200); guard zero/overflowing stride inexpand_rects(#1204); validate null args increate_deserializer(#1206); validate input layouts and aligned vertex offsets via a newInputLayouttype inpipeline/host.rs(#1207); re-upload a host-copied texture once the title writes its memory (#1210); stop counting the pre-copy flush twice in copy timing (#1217); round a half exactly between two values to even (#1220).VICTORY_GPU_TIMINGand slow-list command reporting (#1227).Merge notes: pr-1207's
input_layoutfield replaces HEAD'snames/inputs; pr-1227's lane-mask arm was translated onto our path-sensitive reachability machinery (upstream'sStop::Retry/read_phisis absent here); pr-1233's tests live inmod breadcrumb_testsbeside the existingmod tests; wave-4's zeroedStreaminit,host_blend, andclean_*helpers are kept. Follow-up fixes:rsrc2/address_map/descriptor_wordsfields in new tests, three clippy lints.Verified locally:
cargo fmt,cargo clippyclean;cargo testgreen except tests that require an SM 6.6 GPU (none on this VM — same class as the known environmental failures; they run on the GPU CI runner).Link to Devin session: https://app.devin.ai/sessions/39a24dfe2c184165b42b2108a96286b6
Open in Devin Desktop: https://app.devin.ai/desktop/session/39a24dfe2c184165b42b2108a96286b6?variant=devin
Requested by: @Personed