Repository navigation
startup: name the causes of a refused placed build and accept PERFORM_UPDATE with a source structure - #1799
Closed
tedin7 wants to merge 1 commit into
Closed
startup: name the causes of a refused placed build and accept PERFORM_UPDATE with a source structure#1799tedin7 wants to merge 1 commit into
tedin7 wants to merge 1 commit into
Conversation
…_UPDATE with a source structure
tedin7
force-pushed
the
x2w-frontier-placed-update
branch
from
November 24, 2026 19:06
c453064 to
0e1e570
Compare
Collaborator
Author
|
Closing this draft for now to help keep the open PR queue manageable; the branch stays preserved on the fork so it can be reopened once the queue clears. |
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.
Related to #870 and #1758 (no
Fixes).resolve_placed_buildcollapsed six different refusals into one opaqueE_INVALIDARGand refused every update build. This names the causes and acceptsPERFORM_UPDATEwith a source structure.d3d12_memory_srv.inlandplaced_buffer_rangeare untouched.Changes
src/startup_stubs/placed_build.h: a standard-C++-only part withPlacedBuildCause(ok,unaligned,not_placed,wrong_state,range,update_without_source,source_without_update,source_unaligned,source_not_placed,source_wrong_state,source_range,source_dest_partial_overlap),cause_name,ranges_overlapandcheck_update_shape. The Windows declarations stay below, under_WIN32.resolve_placed_buildreturns the sameE_INVALIDARGand still publishes nothing on a refusal, and now logsx2w-dxr placed build refused: <cause> (<dest|scratch|source> at title 0x...)once per cause.PERFORM_UPDATE, the source goes through the same placement lookup as the destination, unchanged (a live placed buffer in the acceleration-structure state, 256-byte aligned). The scratch is sized byUpdateScratchDataSizeInBytes. The update may run in place (source == destination) or write another structure; a source that partly overlaps the destination is refused. Nothing is published unless all three addresses resolve.tests/placed_build_causes_check.cpp(registered asplaced_build_causes): the device-free rules, including both aliasing outcomes and the boundaries.tests/dxr_placed_build.h(used bydxr_placed_build_{hardware,warp}): six refused updates (no source, source without the flag, unaligned, unmapped, wrong state, partial overlap), an in-place update and an out-of-place one with its interior offset kept.docs/experiments.md.Verified (Linux)
g++ -std=c++17 -O2 -Wall -Wextra -fsanitize=address,undefinedontests/placed_build_causes_check.cpp: no warnings, passes.placed_build.h, each failing the check, original restored: in-place update refused, partial overlap accepted, overlap boundary off by one, source alignment unchecked, update flag without source accepted.-fsyntax-onlyond3d12_xs_device.cpp(only the MSVC-only__try/__exceptoflocal_log.h, as onmain) and ontests/cpu/placed_dxr_provider.cpp, which includes the fixture header.git diff --check origin/main...HEAD,tests/docs_links_check.py,tests/bidi_controls_check.py: pass.git merge-tree: no conflicts withmain, startup: prove slot 133 placements without walking the allocation #1766, startup: pass OMSetStencilRef (slot 24) to the desktop list #1787, startup: name the command list slots the noop log can state #1788, build: write the variants of each x87 fixture in one Python process #1789, startup: clear tables on root change and log dropped root constants #1744, startup: record SetGraphicsRoot32BitConstant (slot 38) #1726. startup-d3d12: run compute pipelines that are already desktop DXIL #1441 already conflicts withmainon its own.Not verified
dxr_placed_build_*) need Windows and were not run here; they should be run in CI or on Windows Server 2025. The device cases of the fixture are untested.tests/cpu/placed_dxr_provider.cppis unchanged, because recording an update needs a changed trace helper.ALLOW_UPDATE, which an update needs.AI-assisted; commands listed were executed locally.