Repository navigation
Conversation
…page-table loads Coalesce 8-byte (view, start) page-table and (base, phase) view-mark loads via raw_dword2 (mask 3, alignment 8), cache memory_null once in the entry block across title-memory accesses, omit the second dirty mark statically for single-byte writes, hoist the n != bits[0] guard before bitmap word/bit loads, and guard every dirty-mark atomicBinOp OR with a test-before-atomic rawBufferLoad check without WAVE_OPS. Assisted-by: T3 Code (Antigravity, gemini-4-neon)
… buffer_store_short Sub-dword raw buffer stores previously lowered to two separate dx.op.atomicBinOp.i32 calls (AND to clear the target byte or half, then OR to set the new bits). When two lanes or threads store to the same byte or halfword concurrently, their clears and sets can interleave (AND, AND, OR, OR) and produce a bitwise-OR tear such as 0xFF or 0xFFFF. Replace the AND+OR sequence with a lock-free dx.op.atomicCompareExchange.i32 (opcode 79) CAS loop inside begin_guarded(guard): load the initial dword from the raw RWByteAddressBuffer via rawBufferLoad.f32 (no TYPED_UAV_LOADS required), loop with a phi updating only the target byte/half bits until prev == old, then advance to the exit block for mark_view_write and end_guarded. Add a zero-GPU DXIL IR/CFG + dxil.dll validation test in emit::lower covering byte/short, unguarded/guarded, and view_marks on/off, plus hardware/WARP execution tests in emit::stride_tests covering distinct-lane packing and concurrent same-slot byte/halfword races. Assisted-by: T3 Code (Antigravity, gemini-4-neon)
Rebased onto 315cea1's list-owned argument buffer design: - Replace both global NULL-resource UAV barriers in indirect::bound() with targeted UAV barriers: pre-clamp on args (and any distinct count buffer), and post-clamp on list.budget() alongside out's UAV -> INDIRECT_ARGUMENT transition. - Skip clamp dispatch and UAV barriers when records == 0 (draw.rs returns early without clobbering host_pipeline/host_roots; indirect::bound keeps out's COMMON -> INDIRECT_ARGUMENT transition paired with done()). - Add scoped_uav_barriers_and_zero_record_skip covering None/aliased/distinct count buffers, zero-record skip, transition replay, and sequential executions after completion (fixing the simultaneous re-submit warning reported by @r4tedx under VICTORY_D3D12_DEBUG=1). Assisted-by: T3 Code (Antigravity, gemini-4-neon)
|
Important Draft PR not reviewedDraft PRs are not automatically reviewed by default.
To automatically review draft PRs, update your CodeRabbit configuration: reviews:
auto_review:
drafts: true
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
Owner
Author
|
Verification complete (Run 45662428628 green; Marvisak#2167, Marvisak#2208, Marvisak#2168 rebased and upstream CI green). |
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.
Draft fork CI verification on windows-latest MSVC + WARP SM 6.6 for rebased Marvisak#2167 (FIND-12 dirty atomics), Marvisak#2208 (sub-dword CAS loop), and Marvisak#2168 (scoped indirect UAV barriers + zero-record skip).