Shader: prove the packed screen-position input for a fullscreen composite #1622
Open
opened 2026-11-24 15:26:00 +00:00 by R0Y00
·
12 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#1622
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 R0Y00 on 2026-11-24T15:26:00Z.
Part of #870. The final composite splits a live-in vector register into low/high 16-bit coordinates. In the current diagnostic translation that register starts at zero, so the sample coordinate stays fixed across the screen. The original input metadata for this pipeline has not yet been identified.
Claim. Open for a shader/graphics ABI contributor. Coordinate in #874 and reply here before starting. Local main development retains the executable rerun.
Deliverable. Establish how the runtime associates pixel input-enable/address masks with the exact PSO and passes them to the translator. Reuse the existing source-built gradient experiment (13×7, FXC/DXC, hardware/WARP, two register layouts). The fixture is available on
mainat141617bbvia PR #1634, tested at198e4e16. The open contribution is to prove the input-mask source for the exact PSO and connect it to translation. Document the mapping evidence and the behaviour for missing or contradictory metadata. Avoid a shader-key special case or a fixed register number.Acceptance. Add a reproducible CTest and run
ctest --preset dev --no-tests=error -R '^startup_packed_screen_position_(hardware|warp)$' -V. Check each pixel against its own coordinates, include a wrong-register control and conflicting masks. Record the fixture revision and results. The graded fixture and provenance of the two masks are separate deliverables. No dependency on the 1D SRV PR.Imported from R0Y00/Xbox2Windows. Originally posted by RenzoWit35 on 2026-11-24T15:39:42Z.
I don't have title inputs, so I can't prove the mask source for the exact pipeline myself. I can take the title-neutral half if that is useful: a scanner under
tools/startup/that derives each pixel shader's live-in register contract from its code (registers read before written, interpolation pairs, 16-bit splits), then tests every candidate word pair in the shader header and pipeline description against that contract across a whole request directory or capture, and ranks locations by how many pipelines they are consistent with. It would come with a Python CTest on synthetic blobs with decoy words and a wrong-location control. It takes the register layout from the address mask and reports enable/address differences instead of assuming they are equal. Running it on real captures stays with you or anyone who has them. If someone with inputs wants the whole issue, they should take it instead.Imported from R0Y00/Xbox2Windows. Originally posted by MasterDomino on 2026-11-24T15:41:55Z.
I can cover the input side that needs local records, alongside @RenzoWit35's title-neutral scanner. I have one local input with the pixel-stage records (12,101 PS records, the same population as #711), RX 9070 XT + WARP, and I can run the scanner on those records and report aggregates only (no names, hashes or disassembly).
Concretely, record-side only:
SPI_PS_INPUT_ENA/SPI_PS_INPUT_ADDR) or their equivalent live in the shader record (the FSSM image around the code, the XDAT entries, PSV0/ISG1), and report how consistently a candidate location matches each shader's live-in register contract;I won't touch the executable rerun or the runtime/translator wiring, which stay with main development. @R0Y00, is this split useful, or would you rather keep the record analysis local too? I'll wait for your answer before starting.
AI-assisted.
Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-24T15:55:36Z.
Yes, please proceed with that split. @RenzoWit35, take the scanner with source-built or synthetic positive, decoy, and wrong-location controls. Report enable/address disagreements and keep candidate-mask agreement distinct from proof of packed VGPR ordering. @MasterDomino, take the local record cross-check and share aggregate matches, contradictions, and missing-data counts only. Please keep the underlying inputs and per-record details local. #1634 is already preparing the gradient fixture, so coordinate against that fixture and leave runtime wiring to main development.
Imported from R0Y00/Xbox2Windows. Originally posted by MasterDomino on 2026-11-24T15:59:27Z.
Thanks, starting the local record cross-check now.
I'll keep the inputs and per-record details local and post only aggregate counts: matches, contradictions (including enable/address disagreements) and missing data. Candidate-mask agreement will be reported as agreement, not as proof of packed VGPR ordering. I'll check against the #1634 gradient fixture's register layouts, and once @RenzoWit35's scanner lands I'll run it over the same records and post its ranking as counts too. I'm leaving runtime and translator wiring to main development.
AI-assisted.
Imported from R0Y00/Xbox2Windows. Originally posted by MasterDomino on 2026-11-24T16:09:48Z.
Record-side cross-check, first pass. Source: one local input (12,101 PS records, the same population as #711), LLVM 15.0.7 disassembly. All counts are aggregates. The inputs, scripts and per-record details stay local.
Method
v_interp_p1/p2I/J operands, other reads, and 16-bit splits (v_and 0xffff,v_lshrrev 16,v_bfe ..,16,16, SDWAWORD_0/WORD_1, 16-bit converts). Read-modify-write accumulators and registers above v31 are dropped as scan artefacts.Result
One location stands out: a fixed word in the native-image header at byte 584. It sits in a register-like block next to a word that behaves like
CB_SHADER_MASK(byte 592).PSV0 cross-check (independent of the code)
Missing data and limits
0x2), so these records store one mask. The data is consistent with ENA = ADDR, which is what the translator accepts today. The runtime may still derive ADDR differently, and this doesn't show how.When @RenzoWit35's scanner lands, I'll run it over the same records and post its ranking as counts. I can also add a CFG-aware pass for the 319 if that helps.
AI-assisted.
Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-24T16:19:38Z.
Thanks for separating candidate agreement, the shuffled controls and the unresolved branches. With no POS_FIXED_PT bit in this population, the most useful next evidence is an exact PSO association and source-built decoy controls for distinct enable and address masks. Keep the 319 CFG-ambiguous records as unresolved for now. Please compare the scanner ranking when it is ready and continue to use #1634 for the packed-register readback.
Imported from R0Y00/Xbox2Windows. Originally posted by MasterDomino on 2026-11-24T16:30:30Z.
Follow-up on the exact PSO association, from my local warm-cache runs on
mainatcb94b8ca(RX 9070 XT, first-run UI). I compared the 14 pipelines the runtime requested against the shader archive. Counts only; the requests stay local.HASHpart); 2 not in the archive0x8002. That is the #1634 "one earlier pair" layout. This is inferred from register use, not read from metadata.That makes the remaining association a runtime-capture question for main development: record the raw-stream pipeline description next to
.a/.b/.root, then test it for an ENA/ADDR pair. Once that capture exists, I can run the comparison locally and post counts, along with @RenzoWit35's scanner ranking. The 319 CFG-ambiguous records stay unresolved as you asked, and the packed-register readback stays with #1634.AI-assisted.
Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-24T16:41:27Z.
Thanks for checking the exact requested pipelines. The archive scan narrows where to look, while the packed mask is still inferred from the register use. The next useful result is a source-built stream with distinct enable/address masks and a decoy, then an association check on the separately captured stream description. Please keep the raw descriptions local and share the match, mismatch, and missing-data counts once the capture exists.
Imported from R0Y00/Xbox2Windows. Originally posted by KelboLive on 2026-11-24T17:54:02Z.
WIP: claiming this. Draft PR #1725 is up with the controls test added. Working on branch.
Environment: x64 Windows, VS Desktop C++ (MSVC), Windows SDK, DXC, CMake/Ninja, Python 3.
Imported from R0Y00/Xbox2Windows. Originally posted by ChazY11 on 2026-11-24T19:50:29Z.
State of the acceptance command on
mainNot claiming this issue — recording what the acceptance criterion does on today's tree, because it changes what a new
contributor would be starting.
At
afddddbd(Windows 11 build 26300.9974, Intel Arc 140T 32.0.101.8132 and the in-box WARP):tests/startup_packed_position_check.pyonmainalready carries the controls the acceptance paragraph names:So "include a wrong-register control and conflicting masks" is in place and green on both backends.
What that implies
Either the deliverable landed and the issue can be closed, or the remaining gap is narrower than the issue text suggests —
specifically the provenance of the two masks (where the runtime stores them), which the description lists as a separate
deliverable from the graded fixture. Worth saying which, so the next person claiming this does not rebuild the fixture that
is already here.
Related: #1725 adds a
startup_packed_screen_position_controlsCTest for the same file, and that test currently fails onevery platform — it starts the script with no arguments while
main(dxc, renderer, adapter, fxc=None)requires three. I leftthe details there rather than repeating them here.
Imported from R0Y00/Xbox2Windows. Originally posted by roansystemlabs on 2026-11-25T21:57:09Z.
I'd like to take the source-built part of this issue, since #1725 was closed without merging. If someone already has it in progress, I'll step back and review.
Scope:
Evidence: WARP and an RTX 3070 with the debug layer on,
ctest --preset dev --no-tests=error -R '^startup_packed_screen_position_(hardware|warp)$' -Vplus the new association checks. Negative controls: the decoy's mask, a wrong register and conflicting masks must each fail.Runtime wiring and the executable rerun stay with main development. Results stay counts and source-built checks only.
AI-assisted.
Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-25T22:03:41Z.
Please take the source-built association check. Reuse the existing gradient readback and prove that the selected stream PSO supplies its own ENA and ADDR masks when a decoy PSO with different masks is present. A missing or conflicting mask should give the named refusal and no translated draw. This can be reviewed using the two source-built PSOs and both backends. The local executable capture and runtime provenance for that specific composite stay with #870.