Merge avatarmanz/VIctory-7900XTX up to c9c932cb #37
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/TaynanGT--Vice-Tay!37
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-37"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@TaynanGT on GitHub · 2026-11-26 17:13 UTC · original
TaynanGT:merge/avatarmanz-c9c932cb→main· +13532 −1149 · 90 files · 179 commits · merged 2026-11-26 17:20 UTCBrings avatarmanz/VIctory-7900XTX up to
c9c932cbinto Vice-Tay. The last shared point was0a435665, the base cool_fox started from.What comes in
On by default:
TRANSLATOR_VERSIONinstead of the translator's source.VICTORY_AMBIENT_SETTLE, default250,3), so rooms are no longer too bright or too dark for a few seconds after you walk in.VICTORY_PLANES=0turns it off).play.ps1fixes: exit with an error when an executable is missing, and say which inherited settings were dropped.Off by default, behind switches:
VICTORY_PORT_CONSTANTS,VICTORY_PORT_DESCRIPTORS,VICTORY_PORT_CBV,VICTORY_PORT_GUARD,VICTORY_PORT_JOURNAL).VICTORY_OUTPUT,VICTORY_RENDER_SCALE).VICTORY_FRAME_INTERVAL_MS).VICTORY_TEXTURE_STORE).VICTORY_UP_QUEUE) and joined barriers (VICTORY_JOIN_BARRIERS).Merge decisions
README.mdstays ours.scripts/play.ps1takes feanorsun's fixes and keeps our full-screen default.ambient.rs: the probe statistics read the title's leftover light before the magenta filter from #27 drops it.descriptor.rs: the ownerless-view cap from #27 stays, andVIEW_TAGis exported to the crate for port 5.shader_cache.rs: the version-keyed store with stale-entry refresh is combined with #29's rule that a translation reaches the caller even when the cache write fails.descriptor/host.rs,draw.rs: a slot flip keeps the record key read at selection (#29), and the texture-wait notes stay.lower.rs: thread tickets (#29) and the partial-group mask both stay. LDS regions that read and write are taken when the loose-LDS fallback is on; with it off, only regions that just raise flags are taken.TRANSLATOR_VERSIONis 2, so cache entries made by avatarmanz's own builds under version 1 are not served for our translator.watch.rs:open()gets the remap guards by shared reference (clippy).descriptor/host.rs: gomeaw'sb68e65e0(a structured view with no raw twin, starting off 16 bytes, gets a copy of its own bytes) stays behindVICTORY_STRUCTURED_RAW=1, off by default. An RTX 4090 takes no heap with raw twins, so the rule caught every such view: 265 to 1,968 views a frame went throughshadow::exact, which made 16 to 313 new buffers a frame while holding its lock. A PIX capture showed the list threads waiting on that lock about 40% of the time, and the merge ran at 6.2 fps instead of 21. With the rule off it behaves like main does today.Checks
ci-local.ps1on2b51c6cf: clippy with and without all features, workspace tests.watch::port7_tests::no_write_is_lost_with_port_7failed once in a full run and passed 10 of 10 on its own. It is a timing-sensitive stress test.Measured
RTX 4090, Ryzen 9 9950X3D, Series S profile, 30 minutes in the world, against main after #29:
Memory use is up by about 7 GB. That still needs a closer look; the 64 KiB placement of pooled textures (
c278f0d5,VICTORY_POOL_SMALL=1restores 4 KiB) accounts for part of it. The picture matches main, square blocks in clouds included.🤖 Generated with Claude Code
pLastBreadcrumbValue is the count of completed breadcrumbs, so history[done] is the first op that had not completed. The old "stopped at command {done} of {count} (op X)" read like one-based numbering and was mistaken for the last completed command (issue #22). Say the count, the last completed op and the zero-based index of the first uncompleted one explicitly, and skip the detail when the reported count is out of range. Refs #22DXIL wants one interpolation mode per signature row; the console packs a nointerpolation float beside an int or a system value (the front face) in one row, and our signatures declared the float linear: 48 pixel and mesh programs were rejected by the validator ("interpolation mode that differs from another element packed into the same row"). Float elements nothing decides (unread inputs, outputs) now take the mode the row's other elements agree on: same_mode_per_row from VIctory 13091f6e, ported by hand (the whole commit conflicts in 18 places with what local/next already took of it). All 48 now validate. Co-Authored-By: Claude Opus 5.5 <[email protected]>image_get_lod of a 2D array passed the slice as CalculateLOD's third coordinate, which DXIL wants undefined: three pixel programs (PS_DeferredTextured_AlphaClip, PS_MirrorReflectionDeferredTextured_ AlphaClip, PS_VfxVBuffer_AlphaClip) were refused by the validator ("out of bound coord must be undef"). The level does not depend on the slice, so the result is unchanged where a driver took the module. Co-Authored-By: Claude Opus 5.5 <[email protected]>Run port1-1: the title maps the five pieces of its 185 MB heap in another order than their addresses, so the heap was views of one section in a scattered order ("not one stretch of a section: Scattered") and nothing was placed. With VICTORY_PORT_CONSTANTS=1 xmem now gives the page numbers mapped into a 32-bit graphics reservation the slices at their offset in it, when the reservation is all one section and both slices are fresh (never mapped or written: no commit bit), which the title cannot observe. Co-Authored-By: Claude Opus 5.5 <[email protected]>CS_TraceShadowRays_FullAdaptive reuses SGPRs between saved lane masks and constant-buffer fields: a join of a mask and a number (lowered as the number it is) is cut with s_and_b32 / s_or_b32, which structurisation takes for lane masks, and the result is compared per lane as a number. Its ballot holds lanes outside EXEC, so the program was refused ("a lane mask holding lanes elsewhere read as data"). Such a read now takes the number the bit operations compute from their operands (constants, root constants, values lowered as numbers, such operations again; console lanes only, where the joined mask is the console's number). Only on a second try, as first halves of interpolations: with it on for every program, 69 compute programs that already translated came out changed (CS_RaytracingResolve, ...); now none does. `victory translate` makes the same second tries as runs (emit_with_retries). FullAdaptive now translates and validates. The test runs the joined register through both paths on the hardware device (WARP takes no declared wave size); it found that a join read only through such operations must be marked read, or its mask's edge brought 0. Co-Authored-By: Claude Opus 5.5 <[email protected]>722c0e1c) 067f80e3a4Heaps are made without sharing across adapters, so the resources placed in them cannot ask for it: the buffers renderer port 1 places in the heap opened from the title's graphics memory (and every other heap opened from memory) were refused ("parameter incorrect", 1,326 to 3,576 a capture). With `--timing detailed`, a list that runs no shader but ours (the host's state preludes, copies of what the CPU sent up, the card copies' passes) has its commands summed under "... (lists of ours)". Co-Authored-By: Claude Opus 5.5 <[email protected]>0dec5dcc) fd623b3a25a9400a6d) f6d8b424a7a9400a6d) into Vice-Tay main 203ffc5d03c9c932cb): renderer port 7 fd10b28ba05cf8960c) into the avatarmanz merge 15035ba4be@chatgpt-codex-connector[bot] on GitHub · 2026-11-26 17:13 UTC · original · edited 2026-11-26 17:20 UTC
Codex Review Summary: ✅ Completed
This comment shows the latest Codex review activity on this pull request.
2b51c6c2b51c6cℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.
@chatgpt-codex-connector[bot] on GitHub · 2026-11-26 17:20 UTC · original · reviewed
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit:
2b51c6cfc6ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
@ -1006,0 +1059,4 @@// SAFETY: an open list; both locations name live resources.unsafe { list.list.CopyTextureRegion(&to, 0, 0, 0, &from, None) };}copy.prefilled.store(levels, Relaxed);@chatgpt-codex-connector[bot] on GitHub · 2026-11-26 17:20 UTC · original
With
VICTORY_TEXTURE_STOREenabled and a cache hit, recording the first upload immediately setsprefilled, whilerecord_uploadpermanently consumescopy.prefill. If that command list is reset without being submitted—a case explicitly supported bylist::reset—the GPU copies are discarded but neither field is restored. Subsequent uploads therefore never copy the cached larger mip levels, whilemake_twinnedusesprefilledto expose them throughshow_prefilled, causing shaders to sample uninitialized texture contents. Keep the prefill data retryable until submission and publish the completed-level state through the submission-time work rather than during recording.Useful? React with 👍 / 👎.
@ -351,0 +442,4 @@crate::port_descriptors::asked(&taken);}for page in crate::port_descriptors::to_check(frame) {parts.push((page.max(start as usize), (page + crate::watch::PAGE).min(end as usize), true));@chatgpt-codex-connector[bot] on GitHub · 2026-11-26 17:20 UTC · original
With
VICTORY_PORT_DESCRIPTORS=1, a marked slot can also lie on a page selected by the fallback in the same round. Both ranges are appended topartswithout removing their overlap, then dispatched throughland::each_view, which defaults to six threads for record scans. Separate jobs can consequently callCopied::changes_in_placeorCopied::changeson the same non-atomic backing bytes, whileCopied::seencan read those bytes concurrently. This violates those methods' explicit exclusive-slot safety requirement and can race or tear the descriptor records used to classify changed slots. Split or merge the ranges into disjoint slot ownership before dispatching the jobs.Useful? React with 👍 / 👎.
@ -3123,0 +3576,4 @@return Ok(None);}let c = self.cur;let slot = self.heap_index(site, 0, false)?;@chatgpt-codex-connector[bot] on GitHub · 2026-11-26 17:20 UTC · original
When a dynamically indexed buffer descriptor belongs to a table containing a CBV,
State::tablessnapshots that table into dynamic slots andState::bindsubstitutes the dynamic table offset in the shader's user data. This lookup therefore indexesVIEW_ADDRESSESusing the dynamic slot, but the address table is populated only byHostHeap::note_bufferfor title slots; neithermake_atnormake_listed, which create the snapshot, writes the corresponding address. The new translation consequently returns a zero pointer instead of the buffer's title address for this supported table configuration. Populate the address metadata when creating or copying dynamic descriptors as well.Useful? React with 👍 / 👎.
github-bot referenced this pull request2026-11-26 18:37:33 +00:00
@ -351,0 +442,4 @@crate::port_descriptors::asked(&taken);}for page in crate::port_descriptors::to_check(frame) {parts.push((page.max(start as usize), (page + crate::watch::PAGE).min(end as usize), true));@TaynanGT on GitHub · 2026-11-27 01:33 UTC · original
Confirmed on
cc9ed86. Marked runs and fallback pages still reach the parallel scanner without a disjoint assignment. I opened #106 with a regression case that checks exclusive slots while preserving fallback coverage.@ -1006,0 +1059,4 @@// SAFETY: an open list; both locations name live resources.unsafe { list.list.CopyTextureRegion(&to, 0, 0, 0, &from, None) };}copy.prefilled.store(levels, Relaxed);@TaynanGT on GitHub · 2026-11-27 01:33 UTC · original
Confirmed on
cc9ed86. The cache hit is consumed and the mip count is published while recording, so a reset can discard only the copies. I opened #105 with a synthetic reset/retry check.@ -3123,0 +3576,4 @@return Ok(None);}let c = self.cur;let slot = self.heap_index(site, 0, false)?;@TaynanGT on GitHub · 2026-11-27 01:33 UTC · original
Confirmed on
cc9ed86. Shader user data receives the dynamic table offset, but the snapshot paths update only the stride. I opened #107 with a synthetic snapshot and slot-reuse test plan.@ -351,0 +442,4 @@crate::port_descriptors::asked(&taken);}for page in crate::port_descriptors::to_check(frame) {parts.push((page.max(start as usize), (page + crate::watch::PAGE).min(end as usize), true));@TaynanGT on GitHub · 2026-11-27 01:39 UTC · original
Draft #112 keeps the marked runs intact and limits each fallback scan to complete unmarked slots. This gives each slot one owner and keeps a marked read independent of a failure elsewhere on its fallback page. Both regression tests passed in the default and diagnostics configurations. Windows CI