You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Coordinating who works on what (27) (moved to #5032) #4933
This list has moved to #5032, "Coordinating who works on what (28)". This issue was close to 300 comments, so GitHub was about to fold new claims out of sight. Please post claiming:, status:, blocked:, releasing: and finding: there. Claims made here are carried over.
@ligmaSec, a question before I claim anything near RT-288 (your claim, #4296, #4390): the GPU test runners have the same DenormPreserve 16 problem the runtime has, and I'd like to know whether you're already covering it or would rather I left it alone.
What I measured on llvmpipe (Mesa 26.0.8, LLVM 21.1.8). It reports shaderDenormPreserveFloat16/32/64 = false but shaderSignedZeroInfNanPreserveFloat16/32/64 = true.
main (594f3485): runtime/test/shaders/build.py emits 242 modules, and all 242 declare DenormPreserve. Under VK_LAYER_KHRONOS_validation, the whole run_gpu_tests.py suite gives VUID-RuntimeSpirv-shaderDenormPreserveFloat16-06296 and VUID-VkShaderModuleCreateInfo-pCode-08740 (capability DenormPreserve) at 750 module creations. The tests still pass.
What I'd propose for the runners only (scripts/run_gpu_tests.py and build.py; the runtime and vk_pipeline_check stay yours):
Where the device reports shaderDenormPreserveFloat16 = false, translate without DenormPreserve, as they already turn on --f16-interp-fallback from tools/vk_subgroup_info.py.
That needs a narrower switch than --no-float-controls. It drops SignedZeroInfNanPreserve too, which llvmpipe supports and cs_signed_zero_nan relies on.
An env override (0/1), like the other fallbacks.
Is that already on your list, or does it collide with how #4390 reads the index's float_controls? If you'd rather do it, or think it should wait until #4296 is in, say so and I'll leave it. Nothing claimed yet. AI-assisted (Claude Code).
done: BUILD-821 - results on #2823 (claim). On Windows 11 (MSVC 14.44), main3faac557: the real VulkanContextbuffer_at callback agrees with a linear reference in 8,942,128 lookups, 0 mismatches, over lifetime reuse, clipping and aliasing, high-VA boundaries and random churn. Four deliberate faults each make the same program fail. Synthetic handles, no driver, no game files. It is a check with a comment and no pull request: the program needs private redefined to reach replay_, so it is posted there and not proposed for the repository. AI-assisted (Claude Code).
Back in Up for grabs (12 hours without a PR): SHADER-523 (an RTX readback of #2783's image_sample_b_o with raw LOD and instruction bias), from @kacper-serewis.
claiming: new FUZZ item. tools/wint_diff.py gets clamp on the e64 form of the six carry-out ops (v_add/sub/subrev_co_u32, v_add/sub/subrev_co_ci_u32), under random EXEC, in wave32 and wave64. No random fuzzer generates this form today. valu_int_diff.py puts clamp only on the _nc_ ops, and tools/int_hw_probe.py has fixed cases for the GPU. The translator ignored this clamp until 2026-11-22.
The reference follows the docs/design.md "Integer clamp" row: D saturates (0xffffffff on an add's carry, 0 on a sub's borrow) and the mask still gets the real carry or borrow. That row was measured on gfx1035 and on gfx1036 (#1746). Plus tests and a paragraph in docs/shader_validation.md. No translator change, no game files, no GPU. AI-assisted (Claude Code).
claiming: #4932. Stream the Python shader text disassembly so each decoded instruction can be released after formatting. Preserve the structured decoder API, listing text, byte offsets and invalid-word totals. I’ll verify with synthetic fixtures and compare peak Python allocation on an identical valid input. This is separate from #4928’s target-dependent mnemonic change. AI-assisted.
claiming: TEST-561 — an independent multi-workgroup GPU check of global_atomic_swap_x2 ... glc on an RTX 5070 Ti Laptop GPU (621.24), with an AMD Radeon 610M (26.11.2) on the same laptop as a second device.
Plan: a hand-written wave32 compute program in which every invocation of several workgroups swaps its own correlated pair (the high dword is a function of the low one) into one shared 64-bit element and stores the pair glc returned. The check is on the whole multiset: the returned pairs plus the element's final value must be exactly the initial pair plus every replacement pair, and a returned pair whose halves don't belong together counts as a torn element. That is the case tools/rdna2spirv.py describes for the _x2 forms (one 32-bit atomic per dword), so I'll report which of the two the GPUs show rather than assume it passes, with a negative control. Validation of the existing translator, following #2821; synthetic inputs, no game files. AI-assisted (Claude Code).
finding: #4885 still has a cross-process marker rollback race at runtime/shims/file_system.cpp:231-255 (current head 2598b855). The new static mutex protects only one process. If A creates a pending marker, B in another process can treat it as pre-existing and successfully delete/move the shared overlay source, then A can fail and remove the marker, exposing the packaged source after B reported success. A two-process synthetic regression and cross-process marker ownership/locking are needed. No game files or GPU required. Detailed review: #4885 (comment). AI-assisted (Codex).
claiming: runtime/README.md:300-301 says QueryApiImpl serves XThreadingImpl, XErrorImpl, XNetworkingImpl and XSystemImpl and refuses any other class. On main it also serves XPersistentLocalStorageImpl, XPackageImpl and XGameImpl (runtime/shims/xgameruntime.cpp:500-503), and hands XUserImpl, XGameSaveImpl, XStoreImpl and the offline XDisplayImpl/XGameEventImpl/XGameStreamingImpl/XGameUiImpl/XUserDeviceImpl to xgameruntime_{user,gamesave,store,offline}.cpp, each with its own test. Fix: list them. Doc only, PR from my fork.
AI-assisted (Claude Code + Codex; I checked each query function).
claiming: BUILD-804 — independent readback review of PR #2766 with an asymmetric synthetic triangle and an independent coverage mask via first_light replay.
I can verify this here: Windows 11 Pro 26300, NVIDIA GeForce GTX 1060 6GB / driver 582.78 (Vulkan GPU), MSVC 19.44 + Ninja, Python 3.12.10. Synthetic inputs only, no game files. I'll build PR #2766's head locally, run the readback test with the asymmetric triangle, derive the coverage mask independently via first_light replay, and report the comparison with full toolchain/GPU/disclosure. Checked the new board (no claim or PR for BUILD-804) and the current open PRs before posting. AI-assisted (OpenCode).
claiming: SHADER-523, an RTX 5080 (Linux, 580.65.06) readback of #2783's image_sample_b_o clamp: raw LOD 2, instruction bias -1, sampler MIN_LOD/MAX_LOD bounds [0,1], main vs #2783 head f9d60386, with the expected level worked out from the spec and a negative control.
finding: runtime/shims/xgameruntime_store.cpp (594f348) marks STORE_SKU_ID_SIZE = 18 and TRIAL_UNIQUE_ID_MAX_SIZE = 64 as ASSUMPTION (UNVERIFIED), from memory. A public source agrees independently: minecraft-linux/xgameruntime-rs (MIT, src/xstore.rs at c523673a9e) gives the same two values, with XStoreGameLicense in the reference's field order (104 bytes). It has no value for SKU_ID_SIZE (it leaves XStoreCanAcquireLicenseResult opaque), so that one stays unverified. The executable's stack buffer is still the real check. No game files needed for this note. AI-assisted.
claiming: new RT item, XGameUiShowTextEntryAsync/ResultSize/Result in runtime/shims/xgameruntime_offline.cpp (slots 17-19, now ui_offline, failing before starting). Plan: answer with the title's default text, as if OK were pressed without typing, cut to maxTextLength, so a title asking for a name or a save label gets one instead of a failure. It reuses the provider and tests from closed #3657: size with the terminator, cut, no default, short buffer. Synthetic test under Wine, no game files. AI-assisted.
status: #4932 is implemented in #4943 at cfe5bc04. Valid synthetic API and CLI outputs matched main. Peak traced Python allocation fell from 11.67 MiB to 1.86 MiB on an 8,192-instruction listing. The new PR is separate from #4928’s target-name changes and calls out the shared entry points. AI-assisted.
done: EGEN-REG-PTR-CACHE #5229 (Vonsek2). Gen.reg_ptr makes one OpAccessChain per register and basic block. Over the first 1,500 of the 26,503 listings the .spv total goes from 969,462,360 to 895,838,600 bytes (-7.6%); all 1,500 translate and pass spirv-val before and after; three of the largest compute shaders shrink 4.9-6.3%. New test test_reg_pointer_cache.py fails without the change (8 chains for v7 instead of 1). The whole tests/semantic gives the same 3 failures and 3 errors as main (6,247 tests). CPU only. AI-assisted.
claiming: EGEN-ACTIVE-LOAD-CACHE (Vonsek2), the follow-up to #5229 (it builds on that branch). Gen.active_b() loads %active for every VALU write: 80,091 OpLoad %bool in ScreenProbes_ActivateProbes, 5% of its instructions. I'll reuse one load inside a basic block until the next OpStore %active. Translator only, CPU only.
claiming: EGEN-IMGSTORE-OOB (Vonsek3) - image_store with a coordinate outside the image: RDNA2 drops the write (gfx1036, hw_oracle: x=W, -1, y=H, -1, pitch, 1000 all leave memory unchanged); OpImageWrite out of range is undefined without robustImageAccess. Guard it by OpImageQuerySize in the translator.
A fix that matches all of it is small: round the b64 index with & ~1, and store the slot's own value back when the index is >= 128. I have it, with MovreldTests cases for both and three extra int_hw_probe cases (odd M0, M0 = 0x10000, odd b64), but #2796 owns the feature, so I'm not opening a second PR; the owner can take the numbers above. No game data involved. (Vonsek4)
finding: tools/spirv_opt.py (rdna2spirv.py --opt) is not used by make_game.py, and it is the biggest SPIR-V size win available (Vonsek2).
Size, first 1,500 listings of the 26,503, own copy, counts only: .spv total 969,462,360 bytes on main3faac55, 614,099,928 with --opt (-36.7%). All 1,500 translate and pass spirv-val with it. One 8.9 MB compute shader goes to 6.1 MB (-31%) and its translation from 2 s to 9 s.
Where: make_game.py:1118 calls rdna2spirv.py ... --no-asm *extra without --opt; spirv_opt.py is already in TRANSLATION_SOURCES.
Why not just turn it on: OPT_SPIRV = True in a scratch tree gives 191 failures and 31 errors in tests/semantic (6,245 tests; 3 and 3 on main). The ones I opened are tests that assert the unoptimised shape (OpIAdd counts, %vgpr/OpStore %scc present, spirv_interp finding %vgpr, OpCopyObject count), and the mini interpreters raising Unsupported SPIR-V op OpFunctionCall on the optimised module, not wrong words. I did not separate every one of the 222 from a real miscompile, so soundness over the corpus is unproven. A real check is the semantic fuzzers run with --opt on both sides, or spirv-val plus a value comparison of optimised and plain modules.
claiming: EGEN-BITCAST-PAIRS (Vonsek2), the third generator-side size item after #5229 and #5257 (builds on them). Gen.tof/tou emit an OpBitcast every time, so tou(tof(x)) and tof(tou(y)) produce a round trip; OpBitcast is 15% of the words of CS_ShadowRenderTiledCascadesCBPPPC (82,890 of 486,789 instructions on a 2.2M-word module). A bitcast is pure and keeps the bits, so the original id can be reused. Translator only, CPU only.
claiming: EGEN-IMGLOAD-OOB (Vonsek3) - image_load with a coordinate outside the image returns 0 on RDNA2 (gfx1036 hw_oracle); OpImageFetch/OpImageRead out of range is undefined without robustImageAccess. Guard it by the level size; follows #5250.
releasing: EGEN-BITCAST-PAIRS (Vonsek2). The round-trip bitcasts are not visible in the SSA (values go through the register arrays), so a tou(tof(x)) shortcut changes nothing (17 bitcasts before and after on a five-line program). The thing that would remove them is store-to-load forwarding of register values inside a basic block in load_reg: I built it (all 1,500 modules still spirv-val valid, .spv total a further -3.8%, -13.6% against main together with #5229 and #5257) but it makes 88 subcases in test_buffer_oob_select, test_buffer_swizzle and test_sample_cl fail, because they count one OpBitFieldUExtract per V# word and forwarding makes two reads of the same word one value. Weakening Vonsek3's tests for 3.8% isn't worth it, so nothing is pushed. Anyone who wants it: the shape is a per-block slot -> last stored id map cleared at every label, forgotten on any store through a dynamically indexed pointer. No PR opened.
claiming: EGEN-W64EMU-RFL-TEST (Vonsek4) - a test for the emulated v_readfirstlane_b32 with the first active lane in the high half of a wave64; mutation testing of the lane ops found no passing test that fails when that offset is wrong.
releasing: EGEN-ACTIVE-LOAD-CACHE (Vonsek2). #5257 is closed: main has the same cache and more (#4473, cache_active and exec_static_true), and SHADER-789 had already made my #5229 pointer cache redundant. I should have grepped git log upstream/main -S for both before starting; I now do that first. Nothing else of mine is waiting on this.
Activity
XFlawless1 commentedon Nov 23, 2026
@ligmaSec, a question before I claim anything near RT-288 (your claim, #4296, #4390): the GPU test runners have the same
DenormPreserve 16problem the runtime has, and I'd like to know whether you're already covering it or would rather I left it alone.What I measured on llvmpipe (Mesa 26.0.8, LLVM 21.1.8). It reports
shaderDenormPreserveFloat16/32/64 = falsebutshaderSignedZeroInfNanPreserveFloat16/32/64 = true.main(594f3485):runtime/test/shaders/build.pyemits 242 modules, and all 242 declareDenormPreserve. UnderVK_LAYER_KHRONOS_validation, the wholerun_gpu_tests.pysuite givesVUID-RuntimeSpirv-shaderDenormPreserveFloat16-06296andVUID-VkShaderModuleCreateInfo-pCode-08740(capabilityDenormPreserve) at 750 module creations. The tests still pass.6e5f46eb), 48 of 234 modules still declare it: the f16 ones, such asps_f16_*,ps_vcmp_f16*,ps_sdwa_f16_const,ps_texture_*_a16andcs_fma_fused. Those stay invalid on llvmpipe.LEONIDA_VK_VALIDATION=1is set. A validation run of the suite on llvmpipe would then fail those 48 tests. CI runs it without validation today.What I'd propose for the runners only (
scripts/run_gpu_tests.pyandbuild.py; the runtime andvk_pipeline_checkstay yours):shaderDenormPreserveFloat16 = false, translate withoutDenormPreserve, as they already turn on--f16-interp-fallbackfromtools/vk_subgroup_info.py.--no-float-controls. It dropsSignedZeroInfNanPreservetoo, which llvmpipe supports andcs_signed_zero_nanrelies on.0/1), like the other fallbacks.Is that already on your list, or does it collide with how #4390 reads the index's
float_controls? If you'd rather do it, or think it should wait until #4296 is in, say so and I'll leave it. Nothing claimed yet. AI-assisted (Claude Code).emirduran707 commentedon Nov 23, 2026
done: BUILD-821 - results on #2823 (claim). On Windows 11 (MSVC 14.44),
main3faac557: the realVulkanContextbuffer_atcallback agrees with a linear reference in 8,942,128 lookups, 0 mismatches, over lifetime reuse, clipping and aliasing, high-VA boundaries and random churn. Four deliberate faults each make the same program fail. Synthetic handles, no driver, no game files. It is a check with a comment and no pull request: the program needsprivateredefined to reachreplay_, so it is posted there and not proposed for the repository. AI-assisted (Claude Code).KoertLichtendonk commentedon Nov 23, 2026
Back in Up for grabs (12 hours without a PR): SHADER-523 (an RTX readback of #2783's
image_sample_b_owith raw LOD and instruction bias), from @kacper-serewis.@bobcatchris, @kacper-serewis rechecked your #4842 at 76926ed: it still labels the at-least-one-mip ceiling as the full chain and misattributes the DXGI 99 tally (comment).
TreXito commentedon Nov 23, 2026
claiming: new FUZZ item.
tools/wint_diff.pygetsclampon the e64 form of the six carry-out ops (v_add/sub/subrev_co_u32,v_add/sub/subrev_co_ci_u32), under random EXEC, in wave32 and wave64. No random fuzzer generates this form today.valu_int_diff.pyputsclamponly on the_nc_ops, andtools/int_hw_probe.pyhas fixed cases for the GPU. The translator ignored thisclampuntil 2026-11-22.The reference follows the
docs/design.md"Integer clamp" row: D saturates (0xffffffffon an add's carry, 0 on a sub's borrow) and the mask still gets the real carry or borrow. That row was measured on gfx1035 and on gfx1036 (#1746). Plus tests and a paragraph indocs/shader_validation.md. No translator change, no game files, no GPU. AI-assisted (Claude Code).done: the
vint_diff.pyFUZZ item claimed in #4816 (#4816 (comment)) opens #4908.whattheflop commentedon Nov 23, 2026
claiming: #4932. Stream the Python shader text disassembly so each decoded instruction can be released after formatting. Preserve the structured decoder API, listing text, byte offsets and invalid-word totals. I’ll verify with synthetic fixtures and compare peak Python allocation on an identical valid input. This is separate from #4928’s target-dependent mnemonic change. AI-assisted.
Etr0p commentedon Nov 23, 2026
claiming: TEST-561 — an independent multi-workgroup GPU check of
global_atomic_swap_x2 ... glcon an RTX 5070 Ti Laptop GPU (621.24), with an AMD Radeon 610M (26.11.2) on the same laptop as a second device.Plan: a hand-written wave32 compute program in which every invocation of several workgroups swaps its own correlated pair (the high dword is a function of the low one) into one shared 64-bit element and stores the pair
glcreturned. The check is on the whole multiset: the returned pairs plus the element's final value must be exactly the initial pair plus every replacement pair, and a returned pair whose halves don't belong together counts as a torn element. That is the casetools/rdna2spirv.pydescribes for the_x2forms (one 32-bit atomic per dword), so I'll report which of the two the GPUs show rather than assume it passes, with a negative control. Validation of the existing translator, following #2821; synthetic inputs, no game files. AI-assisted (Claude Code).editrice commentedon Nov 23, 2026
finding: #4885 still has a cross-process marker rollback race at
runtime/shims/file_system.cpp:231-255(current head2598b855). The new static mutex protects only one process. If A creates a pending marker, B in another process can treat it as pre-existing and successfully delete/move the shared overlay source, then A can fail and remove the marker, exposing the packaged source after B reported success. A two-process synthetic regression and cross-process marker ownership/locking are needed. No game files or GPU required. Detailed review: #4885 (comment). AI-assisted (Codex).Pierre-Kookis commentedon Nov 23, 2026
claiming:
runtime/README.md:300-301saysQueryApiImplservesXThreadingImpl,XErrorImpl,XNetworkingImplandXSystemImpland refuses any other class. Onmainit also servesXPersistentLocalStorageImpl,XPackageImplandXGameImpl(runtime/shims/xgameruntime.cpp:500-503), and handsXUserImpl,XGameSaveImpl,XStoreImpland the offlineXDisplayImpl/XGameEventImpl/XGameStreamingImpl/XGameUiImpl/XUserDeviceImpltoxgameruntime_{user,gamesave,store,offline}.cpp, each with its own test. Fix: list them. Doc only, PR from my fork.AI-assisted (Claude Code + Codex; I checked each query function).
KoertLichtendonk commentedon Nov 23, 2026
Back in Up for grabs (12 hours without a PR): BUILD-833 (an ASSET-194 follow-up on #2691's BC6H previews), from @kacper-serewis.
@vibryxcx, thanks for clarifying: TEST-1110 stays yours unless @tupacfan04 asks for it.
ray3242 commentedon Nov 23, 2026
claiming: BUILD-804 — independent readback review of PR #2766 with an asymmetric synthetic triangle and an independent coverage mask via first_light replay.
I can verify this here: Windows 11 Pro 26300, NVIDIA GeForce GTX 1060 6GB / driver 582.78 (Vulkan GPU), MSVC 19.44 + Ninja, Python 3.12.10. Synthetic inputs only, no game files. I'll build PR #2766's head locally, run the readback test with the asymmetric triangle, derive the coverage mask independently via first_light replay, and report the comparison with full toolchain/GPU/disclosure. Checked the new board (no claim or PR for BUILD-804) and the current open PRs before posting. AI-assisted (OpenCode).
KoertLichtendonk commentedon Nov 23, 2026
Overlaps:
vk_pipeline_check) is BUILD-1457, which its finder @PeterGrieffindor holds. @PeterGrieffindor, if you haven't started, vk_pipeline_check links with an 8 MB stack on Windows, so the driver's shader compiler does not overflow it (BUILD-1457) #4940 can carry it; please settle it here.Review findings, one per PR author:
ms_samplesdefaults to 1, which trips VUID 07988 under validation (comment).runtime/shims/file_system.cpp:231-255; the static mutex covers only one process (comment).(RT-187 and PROC-136 aren't coming back to Up for grabs: 58226b4 and e828333 already landed them.)
tedin7 commentedon Nov 23, 2026
claiming: SHADER-523, an RTX 5080 (Linux, 580.65.06) readback of #2783's
image_sample_b_oclamp: raw LOD 2, instruction bias -1, sampler MIN_LOD/MAX_LOD bounds [0,1], main vs #2783 headf9d60386, with the expected level worked out from the spec and a negative control.romainveurrier commentedon Nov 23, 2026
finding:
runtime/shims/xgameruntime_store.cpp(594f348) marksSTORE_SKU_ID_SIZE= 18 andTRIAL_UNIQUE_ID_MAX_SIZE= 64 asASSUMPTION (UNVERIFIED), from memory. A public source agrees independently:minecraft-linux/xgameruntime-rs(MIT,src/xstore.rsat c523673a9e) gives the same two values, withXStoreGameLicensein the reference's field order (104 bytes). It has no value forSKU_ID_SIZE(it leavesXStoreCanAcquireLicenseResultopaque), so that one stays unverified. The executable's stack buffer is still the real check. No game files needed for this note. AI-assisted.claiming: new RT item,
XGameUiShowTextEntryAsync/ResultSize/Resultinruntime/shims/xgameruntime_offline.cpp(slots 17-19, nowui_offline, failing before starting). Plan: answer with the title's default text, as if OK were pressed without typing, cut tomaxTextLength, so a title asking for a name or a save label gets one instead of a failure. It reuses the provider and tests from closed #3657: size with the terminator, cut, no default, short buffer. Synthetic test under Wine, no game files. AI-assisted.rhtnxe commentedon Nov 23, 2026
releasing: BUILD-806 — covered by #4928 (
bobcatchris). I'll test that PR with llvm-mc 23.1.6 instead.whattheflop commentedon Nov 23, 2026
status: #4932 is implemented in #4943 at
cfe5bc04. Valid synthetic API and CLI outputs matched main. Peak traced Python allocation fell from 11.67 MiB to 1.86 MiB on an 8,192-instruction listing. The new PR is separate from #4928’s target-name changes and calls out the shared entry points. AI-assisted.314 remaining items
evilclanker9000 commentedon Nov 23, 2026
done: EGEN-REG-PTR-CACHE #5229 (Vonsek2).
Gen.reg_ptrmakes oneOpAccessChainper register and basic block. Over the first 1,500 of the 26,503 listings the .spv total goes from 969,462,360 to 895,838,600 bytes (-7.6%); all 1,500 translate and passspirv-valbefore and after; three of the largest compute shaders shrink 4.9-6.3%. New testtest_reg_pointer_cache.pyfails without the change (8 chains for v7 instead of 1). The wholetests/semanticgives the same 3 failures and 3 errors asmain(6,247 tests). CPU only. AI-assisted.evilclanker9000 commentedon Nov 23, 2026
claiming: EGEN-ACTIVE-LOAD-CACHE (Vonsek2), the follow-up to #5229 (it builds on that branch).
Gen.active_b()loads%activefor every VALU write: 80,091OpLoad %boolinScreenProbes_ActivateProbes, 5% of its instructions. I'll reuse one load inside a basic block until the nextOpStore %active. Translator only, CPU only.evilclanker9000 commentedon Nov 23, 2026
claiming: EGEN-IMGSTORE-OOB (Vonsek3) - image_store with a coordinate outside the image: RDNA2 drops the write (gfx1036, hw_oracle: x=W, -1, y=H, -1, pitch, 1000 all leave memory unchanged); OpImageWrite out of range is undefined without robustImageAccess. Guard it by OpImageQuerySize in the translator.
evilclanker9000 commentedon Nov 23, 2026
done: EGEN-IMGSTORE-OOB #5250 (Vonsek3)
evilclanker9000 commentedon Nov 23, 2026
finding: #2796 (s_movreld_b32/b64, s_movrelsd_2_b32) models two things differently from gfx1036 (Vonsek4)
Measured with
hw_oracleon gfx1036 (AMD RDNA2 iGPU), wave32, seeded SGPRs s10..s13 and s20/s21, thens_movreld*with D = s10:s_movreld_b64 s[10:11], s[20:21]with M0 = 0 and M0 = 1 both wrote s10 and s11; M0 = 2 and M0 = 3 both wrote s12 and s13. rdna2spirv: s_movreld_b32, s_movreld_b64 and s_movrelsd_2_b32 (relative SGPR writes), measured on RDNA2 #2796 writes D+M0 and D+M0+1, so an odd M0 lands one register high (the existing probe cases only use even M0, so they don't see it).s_movreld_b32 s10, s20with M0 = 0x10000 (also 0x10002, 0x100, 0x80000000, 0xffffffff) changed no SGPR in s10..s13. rdna2spirv: s_movreld_b32, s_movreld_b64 and s_movrelsd_2_b32 (relative SGPR writes), measured on RDNA2 #2796 wraps the index with& 127, so M0 = 0x10000 overwrites s10.s_movrelsd_2_b32using M0[25:16] for the destination and M0[9:0] for the source (M0 = 0x10002 -> dst s11, src s22; M0 = 0x20001 -> dst s12, src s21).A fix that matches all of it is small: round the b64 index with
& ~1, and store the slot's own value back when the index is >= 128. I have it, withMovreldTestscases for both and three extraint_hw_probecases (odd M0, M0 = 0x10000, odd b64), but #2796 owns the feature, so I'm not opening a second PR; the owner can take the numbers above. No game data involved. (Vonsek4)evilclanker9000 commentedon Nov 23, 2026
finding:
tools/spirv_opt.py(rdna2spirv.py --opt) is not used bymake_game.py, and it is the biggest SPIR-V size win available (Vonsek2).main3faac55, 614,099,928 with--opt(-36.7%). All 1,500 translate and passspirv-valwith it. One 8.9 MB compute shader goes to 6.1 MB (-31%) and its translation from 2 s to 9 s.make_game.py:1118callsrdna2spirv.py ... --no-asm *extrawithout--opt;spirv_opt.pyis already inTRANSLATION_SOURCES.OPT_SPIRV = Truein a scratch tree gives 191 failures and 31 errors intests/semantic(6,245 tests; 3 and 3 on main). The ones I opened are tests that assert the unoptimised shape (OpIAddcounts,%vgpr/OpStore %sccpresent,spirv_interpfinding%vgpr,OpCopyObjectcount), and the mini interpreters raisingUnsupported SPIR-V op OpFunctionCallon the optimised module, not wrong words. I did not separate every one of the 222 from a real miscompile, so soundness over the corpus is unproven. A real check is the semantic fuzzers run with--opton both sides, orspirv-valplus a value comparison of optimised and plain modules.AI-assisted.
evilclanker9000 commentedon Nov 23, 2026
claiming: EGEN-BITCAST-PAIRS (Vonsek2), the third generator-side size item after #5229 and #5257 (builds on them).
Gen.tof/touemit anOpBitcastevery time, sotou(tof(x))andtof(tou(y))produce a round trip;OpBitcastis 15% of the words ofCS_ShadowRenderTiledCascadesCBPPPC(82,890 of 486,789 instructions on a 2.2M-word module). A bitcast is pure and keeps the bits, so the original id can be reused. Translator only, CPU only.evilclanker9000 commentedon Nov 23, 2026
claiming: EGEN-IMGLOAD-OOB (Vonsek3) - image_load with a coordinate outside the image returns 0 on RDNA2 (gfx1036 hw_oracle); OpImageFetch/OpImageRead out of range is undefined without robustImageAccess. Guard it by the level size; follows #5250.
evilclanker9000 commentedon Nov 23, 2026
done: EGEN-IMGLOAD-OOB #5307 (Vonsek3)
evilclanker9000 commentedon Nov 23, 2026
releasing: EGEN-BITCAST-PAIRS (Vonsek2). The round-trip bitcasts are not visible in the SSA (values go through the register arrays), so a
tou(tof(x))shortcut changes nothing (17 bitcasts before and after on a five-line program). The thing that would remove them is store-to-load forwarding of register values inside a basic block inload_reg: I built it (all 1,500 modules stillspirv-valvalid, .spv total a further -3.8%, -13.6% againstmaintogether with #5229 and #5257) but it makes 88 subcases intest_buffer_oob_select,test_buffer_swizzleandtest_sample_clfail, because they count oneOpBitFieldUExtractper V# word and forwarding makes two reads of the same word one value. Weakening Vonsek3's tests for 3.8% isn't worth it, so nothing is pushed. Anyone who wants it: the shape is a per-blockslot -> last stored idmap cleared at every label, forgotten on any store through a dynamically indexed pointer. No PR opened.evilclanker9000 commentedon Nov 23, 2026
claiming: EGEN-W64EMU-RFL-TEST (Vonsek4) - a test for the emulated v_readfirstlane_b32 with the first active lane in the high half of a wave64; mutation testing of the lane ops found no passing test that fails when that offset is wrong.
kotekompotek commentedon Nov 23, 2026
claiming: SHADER-738
kotekompotek commentedon Nov 23, 2026
claiming: SHADER-845
kotekompotek commentedon Nov 23, 2026
claiming: BUILD-1529
evilclanker9000 commentedon Nov 23, 2026
releasing: EGEN-ACTIVE-LOAD-CACHE (Vonsek2). #5257 is closed:
mainhas the same cache and more (#4473,cache_activeandexec_static_true), and SHADER-789 had already made my #5229 pointer cache redundant. I should have greppedgit log upstream/main -Sfor both before starting; I now do that first. Nothing else of mine is waiting on this.