runtime: bind 3D and 1D texture UAVs and write them in the C++ compute manifest #2975
Closed
Leyukaka wants to merge 4 commits from
upstream-pr/2975 into main
pull from: upstream-pr/2975
merge into: R0Y00:main
R0Y00:main
R0Y00:codex/indirect-large-backed-views
R0Y00:codex/word3-preflight-check
R0Y00:codex/vertex-table-two-records
R0Y00:codex/live-index-alias
R0Y00:codex/copied-vertex-buffer-srv
R0Y00:codex/windows-stage-test-output
R0Y00:codex/preserve-live-srv-retirement
R0Y00:codex/share-render-target-tracking
R0Y00:codex/sgd5-negative-offset-fixture
R0Y00:coverage-dashboard
R0Y00:codex/mesh-loose-root
R0Y00:codex/mesh86-cache-padding
R0Y00:codex/xmem-scatter-preflight
R0Y00:codex/mesh-depth-ps
R0Y00:codex/indirect-dispatch-refresh
R0Y00:codex/compute-container-index
R0Y00:codex/startup-compute-formatted-load
R0Y00:codex/compute-indirect-producer
R0Y00:codex/compute-atomic-soffset
R0Y00:codex/mesh-dual-handoff
R0Y00:codex/startup-run-sh-watcher-control
R0Y00:codex/queue31-page-alias
R0Y00:codex/indexed-indirect-compute-root
R0Y00:codex/typed-buffer-view-metadata
R0Y00:codex/translated-indexed-address-alias
R0Y00:codex/fixed-mesh-create-result
R0Y00:codex/xmem-section-lease
R0Y00:codex/startup-slot86-mesh-cache
R0Y00:codex/restore-mesh-barrier-iteration
R0Y00:codex/translated-indirect-upload-index
R0Y00:codex/xapu-completion-opt-in
R0Y00:codex/translated-indexed-rect
R0Y00:codex/translated-indexed-indirect
R0Y00:codex/startup-mesh-lds-integration
R0Y00:codex/startup-console-ms24
R0Y00:codex/startup-slot57-mesh-request
R0Y00:codex/indirect-copy-provenance
R0Y00:codex/present-color-producer-trace
R0Y00:codex/compute-dispatch-binding-trace
R0Y00:codex/translated-indirect-table-buffers
R0Y00:codex/indirect-copy-provenance-base
R0Y00:codex/mix-half-literal-source
R0Y00:codex/translated-indirect-draw
R0Y00:codex/xmem-scatter-diagnostics
R0Y00:codex/slot148-recording-upload
R0Y00:codex/slot70-loading-art-verified
R0Y00:codex/command-list-upload-arena
R0Y00:codex/recover-failed-command-list
R0Y00:codex/startup-heap-timing-notes
R0Y00:codex/align-audio-input-timeline
R0Y00:codex/synthetic-depth-export-control
R0Y00:codex/startup-texture1d-on-windows
R0Y00:codex/1629-packed-position-fixture
R0Y00:codex/cpu-srv-refresh
R0Y00:codex/stream-root-srv-draw
R0Y00:codex/audio-mixer-timer
R0Y00:codex/startup-reload-published-shader
R0Y00:codex/priority-integrate-1284
R0Y00:codex/guest-sixteen-page-record
R0Y00:codex/aot-placed-dxr-batch
R0Y00:codex/guest-directory-selection
R0Y00:codex/gamesave-enumerate-read
R0Y00:codex/readme-archive-to-pixels
R0Y00:codex/pe-placed-view-draw
R0Y00:codex/archive-directory-gpu
R0Y00:codex/slot133-dxr-build
R0Y00:codex/materialize-placed-vertex-view
R0Y00:codex/dstorage-directory-offsets
R0Y00:codex/xg-nine-bc-copy
R0Y00:codex/xg-slot10-bc64-arrays
R0Y00:codex/dxr-guest-address-readback
R0Y00:codex/gpu-va-high-bits
R0Y00:codex/clarify-diagnostic-startup-scope
R0Y00:codex/xg-six-levels
R0Y00:codex/typed-derived-blend
R0Y00:codex/english-legal-text-progress
R0Y00:codex/address-bc-4ks
R0Y00:codex/dstorage-bounded-file-read
R0Y00:codex/wide-srv-offsets-menu
R0Y00:codex/startup-memory-srv
R0Y00:codex/bound-view-tail
R0Y00:codex/language-selector-readback
R0Y00:codex/setup-menu-progress
R0Y00:codex/cpu-plane-refresh
R0Y00:codex/startup-ubyte-vertex
R0Y00:codex/presenter-window-selection
R0Y00:codex/startup-uniform-buffer-lane
R0Y00:codex/intro-loop-timing
R0Y00:codex/static-clzero-loops
R0Y00:codex/document-rtx-intro
R0Y00:codex/startup-insertq
R0Y00:codex/nv12-startup-texture
R0Y00:codex/stream-stage-draw
R0Y00:codex/startup-null-uav-format
R0Y00:codex/startup-draw-capture
R0Y00:codex/shorten-windows-checks
R0Y00:codex/dstorage-rfc1950
R0Y00:codex/startup-dump-fence
R0Y00:codex/pr1135-review-base
R0Y00:codex/startup-stream-requests
R0Y00:codex/startup-chroma-view
R0Y00:codex/readme-graphics-pipeline-streams
R0Y00:codex/static-crt-free-tls
R0Y00:codex/arc-140t-rtx-5080-laptop-gpu-reports
R0Y00:codex/main-startup-progress-entry
R0Y00:codex/signed-dxil-catalogue
R0Y00:codex/reloc-free-preferred-base
R0Y00:codex/quad-dpp-bit-mask
R0Y00:codex/raw-srv-bounds
R0Y00:codex/rx9070-31044-hardware-report
R0Y00:codex/gpu-page-source-provenance
R0Y00:codex/runtime-placeholder-interior
R0Y00:codex/gpu-copy-queue-tile-order
R0Y00:codex/pe-pin-external-providers
R0Y00:codex/xmem-placeholder-reservations
R0Y00:codex/xmem-shared-physical-pages
R0Y00:codex/pe-package-startup
R0Y00:codex/xmem-tools-memory-query
R0Y00:codex/cpu-stack-output-import
R0Y00:codex/pe-load-security-cookie
R0Y00:codex/record-three-bvh-retests
R0Y00:codex/cpu-rbp-frame-anchor
R0Y00:codex/xmem-default-startup
R0Y00:codex/record-rtx-3050-ti-9597
R0Y00:codex/docs-readme-start-here
R0Y00:codex/check-compute-mad24-truncation
R0Y00:codex/docs-discord-community
R0Y00:codex/bound-rcx-branch-mutants
R0Y00:codex/rtx5060ti-bvh-62114
R0Y00:codex/837-neutral-readme-disclaimer
R0Y00:codex/record-rtx-3070-ti
R0Y00:codex/title-neutral-public-wording
R0Y00:codex/exe-shadow-frame-submissions
R0Y00:codex/exe-shadow-runtime-chain
R0Y00:codex/readme-polish
R0Y00:codex/gpu-coverage-nov23
R0Y00:codex/spirv-minlod
R0Y00:codex/shadow-shim-device
R0Y00:codex/exe-two-shadow-frames
R0Y00:codex/shim-dispatch-cleanup
R0Y00:codex/fix-spirv-cache-probe
R0Y00:codex/sampler-use
R0Y00:codex/ballot-bit-extract
R0Y00:codex/packed-fma-release
R0Y00:codex/cpu-packed-fma-o2
R0Y00:codex/publish-coverage-dashboard
R0Y00:codex/mesh-cbv-binding-order
R0Y00:codex/spirv-window-fixture
R0Y00:codex/ps-e32-float-uint
R0Y00:codex/ps-cbuffer-reads
R0Y00:codex/fixed-profile-rescan
R0Y00:codex/shim-compute-integration
R0Y00:codex/readme-visible-coverage
R0Y00:codex/readme-research-navigation
R0Y00:codex/integrate-pr-256
R0Y00:codex/indexed-mesh
R0Y00:codex/sampled-coverage
R0Y00:codex/first-ms
R0Y00:codex/dual-ps
R0Y00:codex/ps-attribute
R0Y00:codex/compute-first
R0Y00:codex/ps-export
R0Y00:codex/readme-research-status
R0Y00:codex/ps-layout
R0Y00:codex/blast-window
R0Y00:codex/chart-caption
R0Y00:codex/reviewer-roles
R0Y00:codex/blast-aot
R0Y00:codex/archive-program
R0Y00:codex/crc-stream-program
R0Y00:codex/exe-image-data-chain
R0Y00:codex/local-cpu-fixture-coverage
R0Y00:codex/exe-bound-frame-chain
R0Y00:codex/exe-mapped-comparison
R0Y00:codex/contribution-dependencies
R0Y00:codex/exe-entry-aot
R0Y00:codex/bink-frame-heap-integration
R0Y00:docs/hardware-seven-reports
R0Y00:codex/bink-custom-heap
R0Y00:codex/bink-heap-callers
R0Y00:codex/discussions-entry-points
R0Y00:codex/gpu-community-batch-64
R0Y00:codex/ffx-scratch-writers
R0Y00:codex/generic-project-documentation
R0Y00:codex/ffx-dispatch-rcas
R0Y00:codex/four-windows-gpu-reports
R0Y00:codex/title-neutral-project-wording
R0Y00:codex/community-coverage-provenance
R0Y00:codex/rcas-packed-texels
R0Y00:codex/community-gpu-retests
R0Y00:codex/community-build-and-gpu-reports
R0Y00:codex/ffx-provider-loop
R0Y00:codex/ffx-recurrent-views
R0Y00:codex/ffx-recurrent-resource
R0Y00:codex/amd-wave64-reports
R0Y00:codex/ffx-backend-slots
R0Y00:codex/upscaler-device-init
R0Y00:codex/ffx-context-lifecycle
R0Y00:codex/ffx-version-query
R0Y00:codex/ffx-provider-contract
R0Y00:codex/typed-object-callback
R0Y00:codex/cpu-ordinal-import
R0Y00:codex/chained-cpu-ranges
R0Y00:codex/cpu-import-call
R0Y00:codex/cpu-direct-call
R0Y00:codex/cpu-leaf-aot
R0Y00:codex/community-project-status
R0Y00:codex/script-state-path-replay
R0Y00:codex/script-state-evidence
R0Y00:codex/bc7-resident-tail
R0Y00:codex/bcpack-mip-tail
R0Y00:codex/bc7-texture-draw
R0Y00:codex/asset-ranges
R0Y00:codex/pixel-constants
R0Y00:codex/pixel-aot
R0Y00:codex/pre-exe-workloads
R0Y00:codex/root-signature-device-coverage
R0Y00:engineering/packed-bvh-leaves
R0Y00:engineering/bvh-build-and-update
R0Y00:engineering/intake-root-roundtrip
R0Y00:community/gpu-check-release
R0Y00:community/english-contributor-entry
No reviewers
Labels
Clear labels
No items
No labels
Milestone
Clear milestone
No items
No milestone
Assignees
Clear assignees
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".
No due date set.
Reference
R0Y00/Xbox2Windows!2975
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/2975"
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 R0Y00/Xbox2Windows. Originally posted by Leyukaka on 2026-11-27T01:01:17Z.
Part 1 of #2974 (steps 1 and 2). Part of #2935. Target branch
main. Step 3, binding these views on the in-process native route, will be a separate pull request.Change:
src/startup_stubs/d3d12_compute_dispatch.inl,src/startup_stubs/d3d12_xs_device.cpp,tests/startup_stream_consumer.cpp): the runtime half of #2902, which is open onmain, taken unchanged, so a later merge ofmainshould merge cleanly there.uav N tex3d|tex1d float table P OFF channels C.TEXTURE3D/TEXTURE1Dfrom the title's view record.texture-volume,texture-line,texture-volume-bad-wandtexture-line-bad-mipmodes.cpp-migration, say so and I will drop these hunks.src/direct_compute_cache.cpp):format_compute_runtime_manifestwritestex3dandtex1dfor atexture_uav/half4_texture_uavwith image dimension 2 or 0, next to the existingtex2d/tex2da. Other dimensions and kinds stay refused, socompile_dxil --requestspublishes a manifest the runtime accepts for 3D and 1D stores.tests/startup_compute_dispatch_texture_check.py,CMakeLists.txt): the 3D, 3D NSA and 1D store cases from #2902 now run throughcompile_dxilinstead ofgfx2hlsl.py, since the Python half of #2902 is not on this branch. CMake passescompile_dxiland the DXC directory to the existing WARP and hardware entries when they exist.Tests. The setup was Windows 11 with an NVIDIA GeForce RTX 5080 and DXC from the Windows SDK 10.0.26100, on
cpp-migration2b678fd3plus this commit.startup_compute_dispatch_texture_hardwarepassed.no translation.compile_dxilthen writes<key>.txtwithuav 0 tex3dortex1d float table 1 64 channels 4, and<key>.cs.cso.startup_compute_dispatch_texture_warppassed. WARP refused the PSO, so for the 3D/1D cases only the manifest was checked there.Mutation checks, run by hand; each fails the hardware test:
tex2din the formatter fails the manifest assertion;texture-volume-bad-wcontrol.Measured on a local capture (counts and instruction shape only) with
compile_dxil --jobs 8 gfx1013-direct-cs@36 --requests.2b678fd3to 177; the number compiled is unchanged at 388.srv 0/1 buf,srv 2 tex2d,uav 0 tex3d float ... channels 4).cpp-migrationb260984f, that pipeline was dispatched 17,408 times and never translated. In a later run with this change andcompile_dxil, it was translated and dispatched about 17,400 times. (An earlier version of this line also linked the title staying on its first screen to this pipeline; that was not shown, see #2974.)AI-assisted.
Imported from R0Y00/Xbox2Windows. Originally posted by Jess-Doit on 2026-11-27T01:25:38Z.
The view checks are scoped clearly. Please distinguish unsupported native wave-size capability from unexpected PSO failure, so a passing WARP job tells us whether the new cases actually ran. A portable shader fixture could cover the binding path independently. Ready for more review
Imported from R0Y00/Xbox2Windows. Originally posted by Leyukaka on 2026-11-27T01:42:57Z.
Thanks. Both done in the new commit.
Wave size versus PSO failure.
OPTIONS1test the native route uses. It logspipeline creation failed: the adapter has no 32-lane waveswhen they rule out aWaveSize(32)module.Portable fixture. The 3D and 1D cases now also run with a
cs_6_0store compiled bydxc(noWaveSize) and a hand-written manifest. It uses the sameuav 0 tex3d|tex1d float table 1 64 channels 4line and the same request key. So the binding path, the mip-one readback and the mismatched-view, bad-W and bad-mip refusals run on WARP independently of the C++ compiler.Results on an RTX 5080 and on WARP (Windows 11, DXC from the Windows SDK 10.0.26100):
A manual mutant that never names the wave reason makes the WARP check fail.
AI-assisted.
Imported from R0Y00/Xbox2Windows. Originally posted by Jess-Doit on 2026-11-27T02:04:54Z.
The two portable shader and manifest checks passed locally. The new portable fixture covers the binding path independently of native wave size. One diagnostic issue remains. A published shader with no wave-size requirement can still get a missing-32-lane-waves label if its PSO fails on that adapter, and a failed capability query gets the same label. Please keep the generic PSO failure as the primary reason and report the observed capability separately, or limit the specific reason to shaders known to require that wave size. Ready for more review
Imported from R0Y00/Xbox2Windows. Originally posted by Leyukaka on 2026-11-27T02:13:53Z.
Thanks, done in the new commit. I took the first option; the wave-size-specific reading now lives only in the test, which knows its modules declare
WaveSize(32).pipeline creation failedas the reason. The stand-in only adds the adapter's 32-lane wave capability next to it, as observed:pipeline creation failed (adapter has no 32-lane waves), orpipeline creation failed (adapter wave capability query failed)whenCheckFeatureSupportfails. The manifest records no wave size, so the runtime no longer suggests that the shader needed one.WaveSize(32), so it alone treats the no-waves observation as the explanation: it skips the native 3D, 3D NSA and 1D cases on WARP only for that line. A bare PSO failure or the query-failed form fails it.On the RTX 5080 and on WARP, the results are the same as in my last comment. With a mutant that drops the observation, the WARP check fails on the bare
pipeline creation failed. I could not makeCheckFeatureSupportfail on either adapter, so the query-failed form is not exercised by a test.AI-assisted.
Imported from R0Y00/Xbox2Windows. Originally posted by Jess-Doit on 2026-11-27T03:15:54Z.
The diagnostic finding is resolved. Five scripted checks passed, including the separate capability-query failure note. The Release dispatch checks passed on both adapters, and both portable UAV cases passed on the GTX 1060. The WARP texture failure reproduced on clean main, and the native GTX 1060 pipeline failure reproduced on the prior PR head. The isolated WARP run stalled, so it adds no coverage. Ready to merge from our side
Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-27T04:01:26Z.
Review: APPROVED
Reviewed
e18549cafe7f9412b896fd43cf261fdc6750498a. The published PSO failure remains the primary diagnostic; the independent adapter-capability result no longer claims a wave requirement on the shader. I rebuiltstartup_stream_consumer d3d12_xs_shim compile_dxilwith the Release preset and ranctest --preset release --no-tests=error --output-on-failure -R '^startup_compute_dispatch_texture_(warp|hardware)$'on Windows 11 build 26200.9974. Both CTest entries passed. WARP (10.0.26100.9818) and RTX 4060 Laptop (32.0.16.1656) each matched 6,144 portable volume words and 128 portable line words; the incompatible views left sentinels intact. RTX also matched 6,144 words each for native volume and volume NSA and 128 for native line. WARP capability-skipped those three native subcases. The texture-input check reports the D3D12 debug layer enabled with no errors on both adapters. The merge trial withcpp-migrationate0d83759was clean, and #2993 contains this head as an ancestor.Imported from R0Y00/Xbox2Windows. Originally posted by KelboLive on 2026-11-27T04:26:06Z.
Review: COMMENTED
PR #2975 adds 3D and 1D texture UAV support to the C++ compute manifest. Good incremental work.
What works
Issues
Recommendations
Overall: clean, correct change. The dimension switch is easier to maintain than the previous binary condition.
Imported from R0Y00/Xbox2Windows. Originally posted by KelboLive on 2026-11-27T04:26:58Z.
Review: COMMENTED
PR #2975 adds 3D and 1D texture UAV support to the C++ compute manifest.
What works
Issues
Recommendations
Overall: clean, correct change. The dimension switch is easier to maintain.
Imported from R0Y00/Xbox2Windows. Originally posted by Leyukaka on 2026-11-27T04:29:15Z.
Thanks. Answers to the three points:
UINTisunsigned intin the Windows headers, so both arguments of(std::min)(view.MipSlice, 15u)have the same type.adapter_32_lane_waves()is not queried per Dispatch. It runs only after a published translation's PSO creation fails, and at most once per key on the in-process route, which tries each key once.uav_dimensionstaysUNKNOWNonly for raw buffer UAVs. Both the manifest reader and the in-process route (#2993) set a known dimension for every texture UAV slot, and the dispatch path picks the view from that field.AI-assisted.
Imported from R0Y00/Xbox2Windows. Originally posted by MasterDomino on 2026-11-27T05:00:46Z.
Title-run results for
e18549ca, before merging. This is not a code review; R0Y00's approval and my test results above stand. I am holding the merge on one start-up result that needs your eyes.Setup: Windows 11 26300.9974, RX 9070 XT (driver 32.0.32029.2010), release. Each run lasts 300 s with the same scripted inputs. The shader cache is the same local rev-28 cache, copied fresh for each run.
cpp-migratione0d83759+ this PR + #2986, #2996, #2998 and #3003 (all four have since merged).compile_dxil gfx1013-direct-cs@0 --requestsover a copy of the request files into a separate directory. Then, for each compute key the cache has no<key>.txtfor, they copy that key's<key>.txtand<key>.cs.csointo the run's cache.Start-up progress is measured as file opens by the title over time. The
.txtcount includes requests published during the run.tex3d/tex1d)e0d83759e0d83759tex3d/tex1doutput. In both, the title stops opening files at about 110 s. One run never recovers within 300 s, and the other resumes at about 250 s. Frames keep being presented at about 28 fps in every run.What the stand-in does in the stalled runs: three pipelines now load as translated. They are the per-frame compute pipeline you described on #2974 (
srv 0/1 buf,srv 2 tex2d,uav 0 tex3d float table 1 32 channels 4) and two pipelines dispatched next to it (srv 0/1 buf,uav 0 tex1d float table 1 32 channels 4). On this branchgfx2hlsl.pyrefuses all three withimage_store on SQ_RSRC_IMG_3D/1D: only 2D images are lowered. Every one of their Dispatches is then refused:an input is in a placed buffer that does not alias title memory. So the native program never runs. One0d83759the same three keys are refused earlier withno translation. Both paths leave the outputs untouched as far as I can see, yet only the first one coincides with the stall.I have not found the cause. It could be:
Why I'm holding it: without this PR,
compile_dxilcannot publish these manifests, so the stall cannot happen. With it,compile_dxil --requests/--watchpublishing into the runtime cache reaches it. That is the workflow this PR and #2993 build on. Could you check whether the refused-after-translation path for a 3D UAV binding has a side effect theno translationpath does not? With your capture, the same injection should reproduce it.AI-assisted; the runs above were done locally, counts only.
Imported from R0Y00/Xbox2Windows. Originally posted by Leyukaka on 2026-11-27T05:14:05Z.
Thanks for the runs. I compared the two paths in the stand-in at
e18549ca: a key whose manifest loads and whose every Dispatch is then refused, against a key with no manifest. I found no side effect of the refusal that the title could wait on, so I cannot explain the stall yet.The refusal path.
record_translated_dispatch, the binding loop stops at the first reason. For this layout that is input 0 or 1:srv 0/1 buf table, refused byindirect_table_bufferwith "an input is in a placed buffer that does not alias title memory".list_upload_range,placed_buffer_rangeandlist_copied_gpu_range.upload_texture,require_state, the descriptor heap writes and the Dispatch are never reached. The function returns the reason with nothing recorded on the list.first_refusal, a counter, one "first refused input" log line per key and up to 16 shared "refused" lines.list_dispatchdiscards the reason. The ExecuteIndirect caller only counts and logs it, as it does forno translation.src/startup_stubsreads a compute key's translation state.draw_lock.One difference: manifest polling.
retry_manifest_atset, so it reopens<key>.txton a Dispatch at most once per second.files.txtfromrun.ps1records the stand-in's own opens as well. In one of my runs, 199,667 of its 208,352 lines areNtCreateFileopens of<key>.txtin the shader cache, spread over 1,650 keys (draw and compute).If your count includes those paths, this could account for the missing ~1 open per second between 120 and 240 s, at most. It does not explain the missing step of about 730 opens after 240 s, nor the 3 keys dispatched at the end of
inject. Could you check whether your count excludes the shader cache directory? Either way, the stall needs a closer look at what the title waits for after 110 s in those runs. I will try to reproduce it with my capture.AI-assisted.
Imported from R0Y00/Xbox2Windows. Originally posted by sydney-0o on 2026-11-27T11:11:22Z.
I opened draft #3049 on
mainto combine this work with #2993, preserving your commit authorship. #2902 is already in the base, so the draft adds the C++tex1d/tex3dmanifest support and reuses the existing runtime view checks. Offline readback passed on a GTX 1080 Ti with app-local Agility SDK 1.620.2, including the bad mip, W range and mismatched-view controls. The startup stall reported here still needs a separate before/after run.Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-27T11:18:55Z.
Retargeted to main. My local integration on
e04217f4preserves #2902, compute root SRVs and the Python-published 1D/3D fixtures while adding separate compile_dxil publication coverage. I also saw #3049, which integrates both original PRs and preserves Leyukaka's commits. I am checking it as the combined integration candidate. The original-program startup observation with injected manifests is still open. For a comparable run on current main, please report title file opens separately from shader-cache paths, and record translated/refused dispatch counts for the three keys.Imported from R0Y00/Xbox2Windows. Originally posted by Jess-Doit on 2026-11-27T15:59:00Z.
I checked the copied-buffer refusal on the current head with source-built 1D and 3D output manifests. On the GTX 1060 and in-box WARP, both manifests refused the first input, recorded zero translated dispatches, and left all 320 fixture readback words identical to the no-manifest control. This verifies early refusal and write suppression in the fixture. The startup stall and the effect of manifest polling remain open on current main. Ready for more review
Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-27T16:06:36Z.
Thanks for checking the copied-buffer refusal on both adapters. The GTX 1060 and inbox WARP results cover the early-refusal control: both 1D and 3D manifests forward zero translated dispatches and preserve all 320 words. I’m keeping that fixture result separate from the open startup and manifest-polling comparison. #3049 is still the combined integration candidate on
main; keep this PR linked for the original contribution and review.Imported from R0Y00/Xbox2Windows. Originally posted by JohnConnorNPC on 2026-11-28T07:33:55Z.
Thanks for this. I reviewed head
e18549caagainst currentmain(c3204a9c). The runtime half is already onmainthrough #2902, so what's new here is the 4-channeltex3d/tex1dmanifest lines and the wave note on PSO failure. Three things need fixing before this can land:main.git merge-tree --write-tree --name-only origin/main e18549caexits 1 in 3 files: dispatch.inl, stream_consumer.cpp and texture_check.py. The first two can take main's side (root SRVs, bufhalf, uint atomics, channels 1–4). texture_check.py needs a redesign: both sides definestore_3d1dwith different signatures, and main expectslen(sys.argv) not in (4, 5)withtwo-mipswhile this PR expects(4, 6)with compile_dxil + sdk.default: return std::nullopt;, where main hasreturn refuse(view_shape("UAV", b));. On the merged tree, main'stests/native_compute_manifest_reasons.cppcase "UAV kind texture_uav cube" (image_dimension = 3) would get an empty reason and exit 1. I traced this from source and didn't build it.default: return refuse(view_shape("UAV", b));would fix it.main.Non-blocking:
uav 0 tex1d … channels 4and dim 2 →tex3d, each with a mutant, would cover them. CI'sctest --preset prlog has 0startup_compute_dispatch_texturelines.cpp-migration". It has been onmainsince #2902.127d8823(git merge-base --is-ancestor e18549ca <#3049 head>→ 1), so only one of the two should merge.Environment: Linux, static review and merge-tree only. I did no build, WARP or GPU run.
This comment was AI-assisted.
Imported from R0Y00/Xbox2Windows. Originally posted by Leyukaka on 2026-11-29T09:17:44Z.
Merged
main(a99e05f4) into the branch; new head8364ecd1. A merge rather than a rebase, so the approved commits stay as they are and only the resolution is new (git show --remerge-diff 8364ecd1). The approval is one18549ca, so the new head needs a re-review.Conflicts (
mainalready has the 3D/1D dispatch path and its fixtures from #2902):src/direct_compute_cache.cpp: kept our tex1d/tex2d/tex3d/tex2da switch fortexture_uavandhalf4_texture_uav; itsdefault:now returns main'srefuse(view_shape("UAV", b)).src/startup_stubs/d3d12_compute_dispatch.inl,tests/startup_stream_consumer.cpp: took main's side in every hunk, ours was a subset. The 32-lane wave note on PSO failures merged without conflict.tests/startup_compute_dispatch_texture_check.py: dropped our hand-written portablecs_6_0fixture for main'sgfx2hlsl.pytranslation (store_3d1d,V.FORMS); kept the nativecompile_dxilcases, now run through main'sstore_3d1d. The docs paragraph follows.Tests on
8364ecd1:startup_compute_dispatch_texture_{warp,hardware},startup_compute_dispatch_two_mips_{warp,hardware}andnative_compute_manifest_reasonspass (5/5). On a hardware adapter the translated and native volume, volume-nsa (6144 words) and line (128 words) readbacks match; on WARP the native 3D/1D cases skip (no 32-lane waves) and the translated ones match.Mutation:
case 0: tex = "tex1d"->"tex2d"indirect_compute_cache.cppfailsstartup_compute_dispatch_texture_hardwareatassert f'uav 0 tex{dim} float table 1 64 channels 4' in manifest(the manifest hasuav 0 tex2d float table 1 64 channels 4).git merge-tree --write-treeof8364ecd1with currentmain(1a0120ba) is clean; the tests above ran witha99e05f4merged, not1a0120ba.Imported from R0Y00/Xbox2Windows. Originally posted by Leyukaka on 2026-11-29T12:24:02Z.
Closing in favour of #3398, which carries this PR's changes: the
tex1d/tex2d/tex3d/tex2daswitch in the C++ manifest formatter, the adapter wave capability reported next to a PSO creation failure, and the native 3D/1D store fixture.Two differences: in #3398 the native 3D/1D cases run as a separate
startup_compute_dispatch_texture_native_<adapter>test instead of insidestartup_compute_dispatch_texture_<adapter>, and the hardware result paragraph this PR adds todocs/startup-runtime.mdis not carried over.Pull request closed