Fixes from other forks and upstream: translator, textures, lifetimes #29
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!29
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-29"
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 13:14 UTC · original
TaynanGT:fix/forks-batch-2→main· +1136 −216 · 23 files · 21 commits · merged 2026-11-26 13:23 UTCFixes from other forks and upstream, plus lifetime and cache fixes of our own. Builds on #27.
Translator
9bb7dbff(port of upstream 0665a0e8, with QB): a wave64ds_bpermute_b32permutes within each 32-lane half. It is no longer refused as "a lane permute across two host waves", so the wave64 programs that used it now translate on 32-lane hosts.8f40c451(lower.rs part of f6a09d3b, with fxceless):v_mad_legacy/v_mac_legacyrun as an FMA with denormals flushed and the zero-factor rule.c125c0c0(Garu667, #1261): console lanes in groups of several host waves take their thread ids from a group counter. In a 2-D group the old rounding wrote 32 of 64 slots on a 4090; this writes all 64.VICTORY_THREAD_TICKETjoins the shader cache key.90143cef(Garu667, #1287): the loose-LDS fallback, on by default as its author left it.VICTORY_WAVE_LDS_LOOSEandVICTORY_SCC_LOCAL_ANYjoin the cache key. Our base has no "wide_last" block, so only the fallback came over;5cf8960cdrops a duplicates_mov_b64literal fold it added.037c5315(rayane-creato1r, upstream #2812): a comparison sampler replaces the filter's reduction instead of OR-ing 0x80 into it.8fe3ccdd(Bartosz, upstream #3158):v_fmac_f32in VOP3 applies abs/neg to its accumulator.17e3e2c8(shh, upstream #3187):sections()keeps scanning past an unmatched saveexec.d4b32ea6,1ca0454a: tests only. The base doesn't have thes_andn2discard pattern behind upstream #2306, and loads and stores of a heap texture share one descriptor here, so the twin-SRV bug seen elsewhere can't happen; both tests pin that.Textures and formats
8d56dd95(RVZO6, upstream #3111): BC7 channel rotation only in modes 4 and 5.724e9527(fxceless, #1210): a view moved to the first level with memory keeps the title'sResourceMinLODClamp.7ae1afce(gomeaw, avatarmanz #150): texture readback destinations stay pending until their flight lands.898c40cb(feanorsun, avatarmanz #198): the idle texture sweep restarts when its cursor passes the last texture.00a21ef4(kripotker, part of avatarmanz #206): under PC memory pressure, idle texture copies go after 5 s.26aeded1: a sparse read that only hits holes keeps the digest of the staged texels.Lifetimes and caches
18bc367d(kripotker, part of avatarmanz #206): the placed-view shape index is keyed by the shape's hash. The padding part of #206 is already in #27.4d6a7449: a slot flip keeps the record its upload was made for; the key is read at selection and checked again at the flip.2a267adb: waits and signals held back keep a reference to their fence until their last use (FenceRef).f31db60c: a translation whose cache write fails still reaches the caller; a failed translation is still an error.Measured
RTX 4090, Ryzen 9 9950X3D, Series S profile, 30 minutes in the world, against main after #27:
No errors and no new kinds of warning (96 warnings against 111). Captures along the route show no black screen or new artefacts; the square blocks in clouds are still there.
Checks
ci-local.ps1: clippy with and without all features clean; 963 tests passed, 0 failed, 47 ignored. The merge with main gives the same tree that was tested.🤖 Generated with Claude Code
@chatgpt-codex-connector[bot] on GitHub · 2026-11-26 13:14 UTC · original · edited 2026-11-26 13:19 UTC
Codex Review Summary: ✅ Completed
This comment shows the latest Codex review activity on this pull request.
5cf89605cf8960ℹ️ 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 13:17 UTC · original · reviewed
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit:
5cf8960c2bℹ️ 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".
@ -2561,0 +2590,4 @@let (e, i32t) = (self.s.entry, self.s.t.i32);let flat = self.s.op(e, "flattenedThreadIdInGroup.i32", Attr::ReadNone, i32t, 96, &[]);let w = self.s.m.i32(wave.trailing_zeros());let index = self.s.m.bin(e, Bin::LShr, flat, w);@chatgpt-codex-connector[bot] on GitHub · 2026-11-26 13:17 UTC · original
For compute shaders that read the group-info SGPR and use console-lane operations in a multi-wave group, this derives the wave index from physical host thread IDs, while
thread_id()derives console thread IDs from the new ticket counter. These mappings can disagree even in a one-dimensional group because tickets are allocated in arrival order. In the 32×2 NVIDIA layout described by the new regression test, the physical flattened IDs can also produce different wave indices within a single host wave, although this input represents a scalar SGPR. Shaders using that index to select per-wave LDS or output regions can consequently address the wrong region. Derive the index from the same console-thread mapping used bythread_id()and the wave-exchange helpers.Useful? React with 👍 / 👎.
@TaynanGT on GitHub · 2026-11-27 01:33 UTC · original
I opened #108 for the group-info finding. On relabelled waves the translator now derives the wave index from the same base as the console thread IDs. The draft extends the 32 × 2 hardware regression to check the group-info word for every thread, and uses a new translator cache version.