Repository navigation
Conversation
GDemay
marked this pull request as ready for review
November 28, 2026 20:44
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
#620 supports static table record-count-only shaders. Mixed loads that read addresses and counts, and some direct heap loads with computed indices, still refused descriptor dword 2. Carry the original buffer record count in the view metadata table for both ordinary and quick synchronization. Bound direct heap and table lookups separately so a shader cannot read another list's extra table slots. Null or cleared records publish zero.
Verification
The original GPU fixture reaches translated resource-table and heap instructions through ordinary and quick publication, including nonzero table offsets, computed heap indices, raw, structured, typed and placed views, UAV records, nulls, replacements and out-of-range slots. On upstream
27380446e227799438b2c41693426ebb5c5e4420the translator refused the fixture at offset 92. On Apple M5 with CrossOver Wine 11.0 and D3DMetal 4.0 beta 3, the patch ran 22 dispatches and checked 154 exact output dwords. The full-width record-count unit test passed. Independent review checked the metadata bounds, cache invalidation, synchronized initialization and GPU buffer lifetime.VICTORY_REQUIRE_META_GPU=1 WINEDLLOVERRIDES='d3d12,d3d12core,dxgi=b' \ tools/macos/test-wine.sh --release --locked -p victory-gpu --lib \ gpu_reads_record_counts_from_tables_and_heaps_after_both_sync_modes -- --nocapture --test-threads=1The original test shader uses no game assets. Coverage of the complete water simulation remains unmeasured.