Prevent scalar buffer-load components wrapping to the view's start #4046
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/4046"
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?
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by masteraapjes on 2026-11-30T15:07:28Z.
What it changes
A heap-picked
s_buffer_load_dwordx2at0xffff_fffccan wrap a later component to the view’s first dword; WIDE x8/x16 chunks can wrap similarly. Select zero when a later component/chunk address is unsigned-less-than the original address. Preserve first-component behavior, scalar/WIDE grouping, descriptor routing and #3894 alignment. Classify the synthetic test-only environment flag in the cache-key audit.Rebuilt independently on upstream main
5fabb46eaf6ed8771321787f8871051abde69b9bto resolve the conflict after upstream history changed. Obsolete shared CI commits have been removed from the PR diff. Current upstream changes are retained.How it was tested
Windows, pinned Rust 1.98.1. Tested head:
7fa2c645ca1730b8041b480b05553bf4ac2a6da9.cargo test --locked -p victory-shader --lib emit::size_tests::picked_scalar_component_boundary_shaders_validate_without_device -- --exact --nocapture: 1 passed, covering eight authored shader programs.cargo test --locked -p victory-gpu --lib shader_cache::tests::every_switch_of_the_translator_is_in_the_key -- --exact --nocapture: 1 passed.cargo clippy --locked --jobs 2 -p victory-shader --all-targets -- -D warningscargo clippy --locked --jobs 2 -p victory-shader --all-targets --all-features -- -D warningscargo run --locked --package xtask -- policy: 464 files passed.git diff --checkpassed.Current upstream CI blocker, independently reproduced on unmodified main
5fabb46e: bothcargo clippy --workspace --all-targets --locked -- -D warningsandcargo clippy --workspace --all-targets --all-features --locked -- -D warningsexit 101 with five errors inhost/font.rs:213/260,host/menu.rs:667andhost/panel.rs:602/668. Existing #4679 addresses these. No unrelated fixes or lint suppressions are carried here. This is not a claim that the latest CIcheckjob passed.CPU-only DXIL translation/validation and cache-key auditing were rerun. No fresh GPU dispatch, wave64 or gameplay result is claimed. This is a heap-selected scalar/raw-chunk fix, not a general VMEM bounds rewrite. The full workspace test suite was not rerun for this conflict-resolution update. No game data is included.
Checked for overlap
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by VibeCodeGuy on 2026-11-30T22:39:04Z.
Offline corpus check (every shader container in a v1.0.2.1 dump: 25,699 unique programs),
maine1251c31againstmain+ this PR at42233939.The 50 changed programs
01250e3bd6a6fb99PsFSwatchPresetCxform0c995954a3497528PsFSwatchPreset1ab9a55b284ff72cPsPS_PreviewSwatchPreset952fd529dd779b27Csbvh_skinning:CSUnpackIB_CCW1a77e876755eff12Csbvh_skinning:CSUnpackIB4fb416369fc50b6eCsmeshlet_culling:CS_BatchCullBatchCSMeshlets104640cfaf62c06cCsmeshlet_culling:CS_BatchCullBatchCSMeshlets_Prev3b471c122be79b3eCsmeshlet_culling:CS_BatchCullMeshlets764ca63daec9c616Csmeshlet_culling:CS_BatchCullMeshlets_ParaboloidShadowse8dae012dd07a9baCsmeshlet_culling:CS_BatchCullMeshlets_ParaboloidShadows_Prevfc5e66f8f873d3bbCsmeshlet_culling:CS_BatchCullMeshlets_Prevc00c13b91c2a72c5Csmeshlet_culling:CS_BatchCullPreSkinnedMeshlets_ParaboloidShadows_Prev87bf9e3f2bf2f052Csmeshlet_culling:CS_BatchCullPreSkinnedMeshlets_ParaboloidShadows0452fc2d2e2fc4c3Csmeshlet_culling:CS_BatchCullPreSkinnedMeshlets_Prev9f017d9011377efaCsmeshlet_culling:CS_BatchCullPreSkinnedMeshletsc7a507806ab10911Csped_skinning_cs:CS_GenWorldAabbs1459863b79e1c6c1Csped_standard_face_mask:CS_RaytracingResolve41819a1d0f885f45Csped_standard_face_mask:CS_RaytracingResolvea73284b60aa303edCsped_standard_head:CS_RaytracingResolvea1266cc7391ae0d6Csped_standard_head:CS_RaytracingResolve4e69dc8770bf27fcCsped_standard_lod_head:CS_RaytracingResolve203f78efece5bbdfCsped_standard_lod_head:CS_RaytracingResolvef018c205b5199d39Csped_standard_lod_skin:CS_RaytracingResolve52ab310c43b9f99cCsped_standard_lod_skin:CS_RaytracingResolve0ae69044bfd15035Csped_standard_skin:CS_RaytracingResolve3fa1fda35402c93fCsped_standard_skin:CS_RaytracingResolvebe85f65a58656cecCsped_standard_skin_tattoo_bake:CS_RaytracingResolve36bcbae3c6ee20b3Csped_standard_skin_tattoo_bake:CS_RaytracingResolve58b1400a40af4738Cssmh_gen_104:CS_InterpolateStrands07fdf30955c4abbcCssmh_gen_136:CS_InterpolateStrandsc4f1becd11afec3eCssmh_gen_168:CS_InterpolateStrands142831c820dca7a3Cssmh_gen_200:CS_InterpolateStrandsb63e7606ee1302faCssmh_gen_232:CS_InterpolateStrands8c970301dd4eee4fCssmh_gen_264:CS_InterpolateStrandse4688ae9d52294f8Cssmh_gen_296:CS_InterpolateStrandse7c9e7210ffff1fcCssmh_gen_328:CS_InterpolateStrands029dfbaa64951060Cssmh_gen_360:CS_InterpolateStrands35813c04e939bc21Cssmh_gen_392:CS_InterpolateStrandsbd0dfdfb50657f60Cssmh_gen_40:CS_InterpolateStrands9ac37ee176bd2353Cssmh_gen_424:CS_InterpolateStrands234d47be72397f85Cssmh_gen_456:CS_InterpolateStrands9267f0cfc6452000Cssmh_gen_488:CS_InterpolateStrandsebce8db62fe43ed9Cssmh_gen_72:CS_InterpolateStrandse6b1160ee45c1666Cssmh_gen_8:CS_InterpolateStrands526c84818961beb6Cssr_tracing:CS_RaytraceVBuffer_Voxels697f2629f7dc5be0Cssr_tracing:CS_RaytraceVBuffer_Voxels_RayBinningffa3a7645374474bCsvfx_proj_decal_trail:CS_SpawnLiquidTrail_SampleDecalRaycastTriangleTest98fef92f7a6d825eCsvfx_proj_decal_trail:CS_SpawnLiquidTrail_SampleDecalRaycastTriangleTest_Nodesaeac9d880daff3baCsvfx_proj_decal_trail:CS_UpdateProjDecalTrailAttachmenta09f0c1fae2b5ca3Csvfx_proj_decal_trail:CS_UpdateProjDecalTrailAttachment_NodesHow:
victory translate <dump> --validate --listbuilt for each side (release, cross-built with cargo-xwin, run under Wine),VICTORY_HOST_WAVE=32, plus the four shader-cache-key settingsplaystarts with (VICTORY_EARLY_DEPTH=1,VICTORY_NAN_SCRUB=1,VICTORY_BVH_MISS=1,VICTORY_SAMPLED_MARKS=1). Validator:dxil.dllfrom DXC v1.9.2609. "Changed" compares translate'semittedhash of each module and its bindings. There was no GPU on this side, so no host pipelines were made and nothing was run on a card. Onmainthe same run has 72 failures: 71 mesh programs over the 32 KiB output limit (the known shortcut inmesh_prologue) andCS_TraceShadowRays_FullAdaptive(#2993).Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by trustno1-coder on 2026-12-01T18:46:49Z.
Closing this as part of moving main to the texture and video-memory rework (v2026.12.01.01-test). A lot of the code changed, and this pull request no longer applies cleanly to it; it would need to be rewritten against the new main rather than rebased. Thank you for the work. If the change is still needed, please open a new pull request based on the current main.
Pull request closed