startup-runtime: audio stand-ins return success without writing the outputs their callers read #1880
Open
opened 2026-11-24 20:16:15 +00:00 by NiiRoZz
·
10 comments
No Branch/Tag specified
main
codex/indirect-large-backed-views
codex/word3-preflight-check
codex/vertex-table-two-records
codex/live-index-alias
codex/copied-vertex-buffer-srv
codex/windows-stage-test-output
codex/preserve-live-srv-retirement
codex/share-render-target-tracking
codex/sgd5-negative-offset-fixture
coverage-dashboard
codex/mesh-loose-root
codex/mesh86-cache-padding
codex/xmem-scatter-preflight
codex/mesh-depth-ps
codex/indirect-dispatch-refresh
codex/compute-container-index
codex/startup-compute-formatted-load
codex/compute-indirect-producer
codex/compute-atomic-soffset
codex/mesh-dual-handoff
codex/startup-run-sh-watcher-control
codex/queue31-page-alias
codex/indexed-indirect-compute-root
codex/typed-buffer-view-metadata
codex/translated-indexed-address-alias
codex/fixed-mesh-create-result
codex/xmem-section-lease
codex/startup-slot86-mesh-cache
codex/restore-mesh-barrier-iteration
codex/translated-indirect-upload-index
codex/xapu-completion-opt-in
codex/translated-indexed-rect
codex/translated-indexed-indirect
codex/startup-mesh-lds-integration
codex/startup-console-ms24
codex/startup-slot57-mesh-request
codex/indirect-copy-provenance
codex/present-color-producer-trace
codex/compute-dispatch-binding-trace
codex/translated-indirect-table-buffers
codex/indirect-copy-provenance-base
codex/mix-half-literal-source
codex/translated-indirect-draw
codex/xmem-scatter-diagnostics
codex/slot148-recording-upload
codex/slot70-loading-art-verified
codex/command-list-upload-arena
codex/recover-failed-command-list
codex/startup-heap-timing-notes
codex/align-audio-input-timeline
codex/synthetic-depth-export-control
codex/startup-texture1d-on-windows
codex/1629-packed-position-fixture
codex/cpu-srv-refresh
codex/stream-root-srv-draw
codex/audio-mixer-timer
codex/startup-reload-published-shader
codex/priority-integrate-1284
codex/guest-sixteen-page-record
codex/aot-placed-dxr-batch
codex/guest-directory-selection
codex/gamesave-enumerate-read
codex/readme-archive-to-pixels
codex/pe-placed-view-draw
codex/archive-directory-gpu
codex/slot133-dxr-build
codex/materialize-placed-vertex-view
codex/dstorage-directory-offsets
codex/xg-nine-bc-copy
codex/xg-slot10-bc64-arrays
codex/dxr-guest-address-readback
codex/gpu-va-high-bits
codex/clarify-diagnostic-startup-scope
codex/xg-six-levels
codex/typed-derived-blend
codex/english-legal-text-progress
codex/address-bc-4ks
codex/dstorage-bounded-file-read
codex/wide-srv-offsets-menu
codex/startup-memory-srv
codex/bound-view-tail
codex/language-selector-readback
codex/setup-menu-progress
codex/cpu-plane-refresh
codex/startup-ubyte-vertex
codex/presenter-window-selection
codex/startup-uniform-buffer-lane
codex/intro-loop-timing
codex/static-clzero-loops
codex/document-rtx-intro
codex/startup-insertq
codex/nv12-startup-texture
codex/stream-stage-draw
codex/startup-null-uav-format
codex/startup-draw-capture
codex/shorten-windows-checks
codex/dstorage-rfc1950
codex/startup-dump-fence
codex/pr1135-review-base
codex/startup-stream-requests
codex/startup-chroma-view
codex/readme-graphics-pipeline-streams
codex/static-crt-free-tls
codex/arc-140t-rtx-5080-laptop-gpu-reports
codex/main-startup-progress-entry
codex/signed-dxil-catalogue
codex/reloc-free-preferred-base
codex/quad-dpp-bit-mask
codex/raw-srv-bounds
codex/rx9070-31044-hardware-report
codex/gpu-page-source-provenance
codex/runtime-placeholder-interior
codex/gpu-copy-queue-tile-order
codex/pe-pin-external-providers
codex/xmem-placeholder-reservations
codex/xmem-shared-physical-pages
codex/pe-package-startup
codex/xmem-tools-memory-query
codex/cpu-stack-output-import
codex/pe-load-security-cookie
codex/record-three-bvh-retests
codex/cpu-rbp-frame-anchor
codex/xmem-default-startup
codex/record-rtx-3050-ti-9597
codex/docs-readme-start-here
codex/check-compute-mad24-truncation
codex/docs-discord-community
codex/bound-rcx-branch-mutants
codex/rtx5060ti-bvh-62114
codex/837-neutral-readme-disclaimer
codex/record-rtx-3070-ti
codex/title-neutral-public-wording
codex/exe-shadow-frame-submissions
codex/exe-shadow-runtime-chain
codex/readme-polish
codex/gpu-coverage-nov23
codex/spirv-minlod
codex/shadow-shim-device
codex/exe-two-shadow-frames
codex/shim-dispatch-cleanup
codex/fix-spirv-cache-probe
codex/sampler-use
codex/ballot-bit-extract
codex/packed-fma-release
codex/cpu-packed-fma-o2
codex/publish-coverage-dashboard
codex/mesh-cbv-binding-order
codex/spirv-window-fixture
codex/ps-e32-float-uint
codex/ps-cbuffer-reads
codex/fixed-profile-rescan
codex/shim-compute-integration
codex/readme-visible-coverage
codex/readme-research-navigation
codex/integrate-pr-256
codex/indexed-mesh
codex/sampled-coverage
codex/first-ms
codex/dual-ps
codex/ps-attribute
codex/compute-first
codex/ps-export
codex/readme-research-status
codex/ps-layout
codex/blast-window
codex/chart-caption
codex/reviewer-roles
codex/blast-aot
codex/archive-program
codex/crc-stream-program
codex/exe-image-data-chain
codex/local-cpu-fixture-coverage
codex/exe-bound-frame-chain
codex/exe-mapped-comparison
codex/contribution-dependencies
codex/exe-entry-aot
codex/bink-frame-heap-integration
docs/hardware-seven-reports
codex/bink-custom-heap
codex/bink-heap-callers
codex/discussions-entry-points
codex/gpu-community-batch-64
codex/ffx-scratch-writers
codex/generic-project-documentation
codex/ffx-dispatch-rcas
codex/four-windows-gpu-reports
codex/title-neutral-project-wording
codex/community-coverage-provenance
codex/rcas-packed-texels
codex/community-gpu-retests
codex/community-build-and-gpu-reports
codex/ffx-provider-loop
codex/ffx-recurrent-views
codex/ffx-recurrent-resource
codex/amd-wave64-reports
codex/ffx-backend-slots
codex/upscaler-device-init
codex/ffx-context-lifecycle
codex/ffx-version-query
codex/ffx-provider-contract
codex/typed-object-callback
codex/cpu-ordinal-import
codex/chained-cpu-ranges
codex/cpu-import-call
codex/cpu-direct-call
codex/cpu-leaf-aot
codex/community-project-status
codex/script-state-path-replay
codex/script-state-evidence
codex/bc7-resident-tail
codex/bcpack-mip-tail
codex/bc7-texture-draw
codex/asset-ranges
codex/pixel-constants
codex/pixel-aot
codex/pre-exe-workloads
codex/root-signature-device-coverage
engineering/packed-bvh-leaves
engineering/bvh-build-and-update
engineering/intake-root-roundtrip
community/gpu-check-release
community/english-contributor-entry
gpu-check-v0.1.0
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#1880
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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 NiiRoZz on 2026-11-24T20:16:15Z.
Commit or build
Upstream
mainat8c82879f.Summary
With
X2W_AUDIO_PERMISSIVE=1, several exports of the audio stand-ins return success without writing the outputs their callers pass. One of them is confirmed to end a run (the DSP activation); the others have the same shape and have not been checked against their callers. This issue lists them so they can be checked one by one.Reproduction
Expected behavior
An export either writes outputs that are valid for what the caller does next, or returns a failure the caller can handle. The public
XDspAudio.hreference documentsXDspActivate(client, XDspActivationParameters*, XDspStatus** status, XDspStreamHandle* stream),XDspSubmitCommand(stream, XDspCommand*, uint32_t* commandSequence), the status block{lastSubmittedCommandSequence, lastProcessedCommandSequence, firstFailedCommandSequence, HRESULT result}and failure codes such asXDSP_E_NO_DEVICE_RESOURCES.Observed behavior
Confirmed case,
XDspActivate(chad.cpp): returns 0, writes neither the status pointer nor the stream handle. Limited observation from one local startup run, repeated once without and once under the startup debugger: after six activations the executable calledXDspSubmitCommandsix times with a null stream handle (also answered with 0), then read through the null status pointer at offset 0xC, which is the offset ofresultin the documented status block, and stopped with an access violation. The values were read from the stand-in log lines (x2w-audio) and from the debugger's stop report; no package data is involved.Same shape, callers not checked:
XDspActivateXDspSubmitCommandXDspDeactivate,XDspDisconnectXDspConnectWithMaximumStreamLimitXApuConnectoutput(before)XApuDequeueResultRelated
startup_chad_check. As I read its diff, that test requiresXDspActivateandXDspSubmitCommandto return S_OK (it calls activation with plain integers in the two output positions), which would pin the behavior in the first two rows.A local fixture for the XDsp rows exists (activation refused with the documented code and both outputs set to null; null and unknown handles refused; negative control: success without outputs must fail). It is not submitted because it conflicts with the test in #1871; the direction for those two rows is the maintainers' call.
Environment
Windows 11 build 26300, MSVC 19.44 x64. No GPU involved.
Checklist
AI-assisted (Claude Code): the source reading, the fixture and the local observation were produced with AI agents.
Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-24T20:36:05Z.
Please open the narrow failure-only XDsp slice using the source-built fixture you already have. If there is no usable stream provider in permissive mode, validate both output pointers before writing; for valid output locations, clear them and return XDSP_E_NO_DEVICE_RESOURCES. Refuse null and unknown stream handles on submit without returning a sequence; preserve the caller's sequence output on failure. Keep the strict trap coverage and #1871's connect out-handle checks. Update the placeholder-success assertions for the two exports whose behavior changes.
Acceptance is a synthetic caller that gates its first submit on activation success, checks initialized outputs and unchanged failed-submission sequence, and fails when the old successful no-output behavior is restored. Keep the real provider, XApu and audible XAudio2 output on their existing tracks.
Microsoft XDSP error codes.
Imported from R0Y00/Xbox2Windows. Originally posted by ChazY11 on 2026-11-24T20:46:51Z.
Opened #1907 as the narrow failure-only slice you described:
XDspActivatevalidates and clears both outputs then returnsXDSP_E_NO_DEVICE_RESOURCES(0x8AC810A2, from the GDK error list rather than assumed),XDspSubmitCommandrefuses nulland unknown handles without writing the sequence and still preserves it on the known-handle failure, and #1871's connect
out-handle checks stay as they are.
The fixture is built from source in the PR: the synthetic caller gates its first submit on activation success and never
reaches submit, and restoring the old successful-no-output behaviour fails the run.
One detail from the negative controls worth recording here: the explicit
!status_outnull checks are equivalent, notuntested —
x2w_local::accessible()already rejects addresses below 0x10000, sowritable(nullptr, ...)is false. I keptthem for intent and said so in the PR instead of claiming they are pinned.
Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-24T21:14:24Z.
The failure-only XDsp fix #1907 is on main at
87f280f3. The source-built activation caller now receives cleared outputs and XDSP_E_NO_DEVICE_RESOURCES and does not submit a command. The strict trap and connect controls still pass. Keeping this issue open for the remaining out-parameter cases. This test does not establish an audible provider or application audio.Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-24T22:27:41Z.
#1967 is on main at
34472a58. Native Windows Releasestartup_xapu_queuepassed. A fresh or drained XApu queue now reports XAPU_E_PENDING_RESULTS and leaves every byte of the supplied result buffer intact. The remaining output-field checks and application audio work stay open here.Imported from R0Y00/Xbox2Windows. Originally posted by roansystemlabs on 2026-11-25T05:16:49Z.
I'd like to take two of the remaining rows that nobody has checked yet: XDspDeactivate and XDspDisconnect, and the 16-byte second argument of XApuConnect. If someone already has it in progress, I'll step back and review.
I'm leaving the AcpHal slots 0 and 2 out for now, since #1902 is open on
src/startup_stubs/acphal.cpp; I can take them after it lands if they are still open.Scope: one PR per stand-in. For each export, either write outputs that are valid for the documented next call, or return a documented failure with the outputs cleared, following the shape of #1907. No change to the permissive switch itself or to #2107's counters.
Evidence: a source-built caller per export with sentinel-filled outputs and null/unknown handles; a negative control that fails when the export returns success without writing. Windows Release, MSVC. No GPU, no application input.
AI-assisted.
Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-25T07:42:35Z.
The XApu completion fields landed in #2242 (
ef2e0143). Independent Windows Release checks passed for the production FIFO and the source-built native/mapped caller, including full-queue refusal and the existing wrong-order and invalid-handle controls. The result now reports the queued type and slot. Decoded bytes remain zero, and the existing XApuConnect/XDsp observations remain open.Imported from R0Y00/Xbox2Windows. Originally posted by lukaslw-lab on 2026-11-25T08:09:28Z.
#2242 (
ef2e0143) stops the startup run here shortly after the title screen. With #2242 reverted on the same build, the run continues.maine94e14ff(includes #2242)All three builds also carry a local timing-only change in the present path (QueryPerformanceCounter around its parts); it does not touch audio.
xapu.dllframes on the stack. The last audio calls logged before it areXApuEnqueueCommand(type 1) and the firstXApuDequeueResult.Setup: Windows 10 19045, RTX 3080 Ti, Release,
tools/startup/run.ps1 -Render -Translate -FakeUser -GpuMirror -HostCpu -StartupBelow40(which setsX2W_AUDIO_PERMISSIVE=1). Counts only; logs stay local.AI-assisted (Claude Code).
Imported from R0Y00/Xbox2Windows. Originally posted by JB2WIN on 2026-11-25T08:48:31Z.
Same stop on a second host, and the local revert clears it here as well.
main540a9615(includes #2242)xapu.dllframe on the stack-MemoryGiB 20instead of 14ef2e0143(onlyxapu.dllrebuilt)In both stopping runs the title read the first A press about 0.4 s before the stop, and the last audio calls logged were
XApuEnqueueCommand(type 1) and the firstXApuDequeueResult, as in the report above. I have not traced the copy either.Setup: Windows 11 Pro 26200, i5-13600K, RTX 3080 (driver 32.0.16.2124), Release,
tools/startup/run.ps1 -Render -Translate -FakeUser -GpuMirror -HostCpu -ContinueAsserts 1000 -InputScript "4@70" -StoragePath <dir>. Counts only; logs stay local.AI-assisted (Claude Code).
Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-25T09:00:25Z.
The two independent matched reverts are enough to prioritize this regression. #2268 restores zeroed permissive results by default and keeps the typed queue as an explicit experiment. The source-built test catches the original default behavior and still exercises the typed FIFO.
For the exact PR build, please repeat the same startup sequence with
X2W_XAPU_TYPED_COMPLETIONSunset. Record whether it passes the first A press and the first dequeue, the next stopping point, and the Windows build. The consumer-side output needed for typed completions is still open in this thread.Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-25T10:23:59Z.
The XApuConnect shared-buffer change is on
mainin #2288. The source-built Windows check passed for zeroed, writable storage on two separate connections and for invalid calls leaving the outputs alone. The buffer is returned with permissive audio; typed completions are still opt-in.For the two prior reports, the focused A/B is one build with permissive audio and the same first A press, first with
X2W_XAPU_TYPED_COMPLETIONSunset and then with it set to1. Please report the commit, Windows build, whether each run reaches the first dequeue and passes the prior stop, and the next stopping point if any. The fixture establishes the connection buffer contract; this replay is the outstanding evidence for the caller's copy.