Repository navigation
fix(shader): reject typed store offsets and use real strides - #181
Closed
vedantdadhich21 wants to merge 1 commit into
Closed
vedantdadhich21 wants to merge 1 commit into
vedantdadhich21 wants to merge 1 commit into
Conversation
Signed-off-by: Vedant Dadhich <vedantdadhich21@gmail.com>
vedantdadhich21
marked this pull request as ready for review
November 25, 2026 23:15
Contributor
Author
ZebeastSantaCruz83142069
pushed a commit
to ZebeastSantaCruz83142069/VIctory-macOS831
that referenced
this pull request
Nov 26, 2026
…gyaangaur#244) Fixes pragyaangaur#181. Concurrent WARP (d3d10warp.dll) usage across threads crashes with 0xC0000005 on Windows 11, both when creating/tearing down separate WARP devices and when compiling pipelines or executing work concurrently on a single shared WARP device. Keep one process-wide WARP ID3D12Device in Host::new (for explicit warp = true, VICTORY_WARP=1, and systems whose default DXGI adapter has DXGI_ADAPTER_FLAG_SOFTWARE) and serialize WARP root signature creation, pipeline compilation, draws, and dispatches behind a process-wide mutex. Hardware D3D12 devices remain unserialized. Route diff_tests's direct CreateRootSignature calls through Host::root_signature_bytes so they share the same serialization, and add a multi-threaded WARP regression test (parallel_warp_pipelines_and_draws). Co-authored-by: Claude Opus 5.5 <noreply@anthropic.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
Two typed-store correctness bugs in GFX10 lowering:
buffer_store_format_xyzwaccumulated immediate,offen,soffset, and built-descriptor offsets, but only rejectedoffenand nonzero immediateoffset. Register or inline-constantsoffsetwas silently discarded, so stores could hit the wrong element. Until offset folding is implemented, instruction-valued accumulated offsets are now rejected like typed loads.mark_view_writenow accepts a runtime width and handles zero width without underflow.Regressions
soffsetfail translation; inline zero still succeeds.D3DMetal substitutes
R32G32for RGB32 typed buffers and drops the RGB32 store, so the Wine page-mark test still checks RGB32 marks but skips its byte comparison; WARP would cover the bytes where SM 6.6 is available.Verification
victory-shader: 166 passed, 2 ignored.cargo xtask policy: 215 files ok.git diff --check: passed.No game files or proprietary assets were used. AI-assisted.