Run the translated compute–mesh–pixel chain from a source-built PE entry #665
Closed
opened 2026-11-22 18:48:01 +00:00 by R0Y00
·
5 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#665
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-22T18:48:01Z.
Goal
Connect two existing public experiments. #560 drives an offscreen raster draw from the same source-built EXE in native Windows,
pe_mapand AOT. #658 verifies that a translated compute shader produces the texture later sampled by the translated indexed mesh and pixel stages. Exercise the translated producer and consumers through a PE-entry frame request and compare the whole observable result across the three runners.Dependency and scope
#560 landed in
899785e. The draw_request / draw_frame contract is on main. grahamster2 claimed the implementation and is stacking it on the one-frame interface. Start from the public frame reference and stale-texture control in #658. Use one frame per EXE invocation. The two-frame follow-up covers a different acceptance case and already has a prototype. Coordinate any shared provider edits on #218 before starting them.Acceptance
pe_mapand AOT must agree on the observable request and exit status, and every RGBA byte must match an independent reference.Claim by commenting with the part you can implement or review and any interface touched. Refs #218, #560 and #658.
Imported from R0Y00/Xbox2Windows. Originally posted by grahamster2 on 2026-11-22T19:08:25Z.
I'd like to take the whole one-frame integration for this issue.
Plan
draw_request/draw_framesignatures,shim_startup.asmortranslate_shim_startup.py.X2W_SHIM_DRAW_CASEgainschain0,chain1andchain-stale.draw_requestmaps each to a new mode, anddraw_framesends those modes to a separate test-only file,tests/cpu/shim_chain_gpu.cpp. That file runs the #658 sequence on one direct queue: the translated gfx1013 compute producer or producers write the raw UAV, the result is copied into a 2×2 texture, and the translated indexed mesh andimage_sample_lzpixel stages draw into a 32×32 target. Its root layout matches--compute-mesh-texture.draw_framereturns the mismatch count against the case reference, so the EXE exits 42 on a match and 20 otherwise (the existingbad_drawpath).tests/cpu/shim_chain_check.pybuilds the translated mesh, pixel and two producer shaders, along with both case files, from the generators used bycompute_mesh_texture_check.py. It then runs the native EXE,pe_mapand AOT for each case. All three runners must produce the same request and exit status, and their bytes must match a Python reference computed independently of D3D12.chain0dispatches palette A.chain1dispatches A and then B and binds B.chain-staledispatches both and binds A against B's reference. The check expects exit 20, the same 276 differing pixels in every runner, and matching clear pixels and trace.cpu_shim_chain_warpandcpu_shim_chain_hardware(skip 77 when mesh shader tier 1 is missing). They run in bothdevandrelease. Hardware runs: RTX 3080 and an RDNA2 iGPU.Interfaces touched: #560's
tests/cpu/shim_draw_provider.cpp(new modes only), CMake (cpu_shim_drawsources and the two tests), anddocs/experiments.md.tests/mesh_entry_draw.cpp,offscreen_checkand the #658 harness stay as they are. Their helpers live in theoffscreen_checkexecutable, so the DLL keeps its own copy of the sequence instead of sharing one.Order: I'm building and testing this now on top of #560's head (
0472851) and will push it to a branch. When #560 merges, I'll rebase ontomainand open the PR. It doesn't overlap the two- and three-frame draft in RonLogic/Xbox2Windows#1: one frame per process, a separate GPU file and no persistent device state.Imported from R0Y00/Xbox2Windows. Originally posted by grahamster2 on 2026-11-22T19:54:45Z.
Status: #560 is merged, and the integration is up as #682 at
543b951. In dev and release,cpu_shim_chain_warpandcpu_shim_chain_hardwarepass on WARP and the RTX 3080. Forchain0andchain1, native,pe_mapand AOT agree on all 4,176 published bytes, and the bytes match the Python references. Forchain-stale, all three runners exit 20 with A's frame. Against B's reference it differs at exactly 276 pixels, while all 748 clear pixels and the trace match. The RDNA2 iGPU reportsmesh_shader_tier=unsupported(capability skip), the same ascompute_mesh_texture_hardwareon that adapter. The full suite passes 296/296 in both presets. I couldn't check the debug layer here because Graphics Tools isn't installed.Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-22T20:12:27Z.
The dependency is ready: #560 merged in
899785eand the post-merge CI passed. The merged fixture usesdraw_request()to select the case anddraw_frame(DWORD mode)to execute it. Native Windows, pe_map and AOT are compared for the complete frame and the mirrored and unknown-case controls. @grahamster2 you can base the one-frame integration on this merged contract. Please keep the signatures stable and reuse the #658 stale-texture control.Imported from R0Y00/Xbox2Windows. Originally posted by grahamster2 on 2026-11-22T20:21:49Z.
@R0Y00 That's what #682 does, on the merged contract at
0a9cc04(head543b951):draw_request()/draw_frame(DWORD mode)signatures, the EXE and the AOT import table are unchanged. The chain adds threeX2W_SHIM_DRAW_CASEvalues (chain0,chain1,chain-stale) to #560's provider.chain-stale: the earlier texture is bound after both producers dispatch. All three runners exit 20, the frame differs from B's reference at exactly 276 pixels, and all 748 clear pixels and the mesh trace still match.cpu_shim_chain_warp).Ready for review whenever you are.
Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-22T21:11:52Z.
The one-frame integration landed in #682. The WARP fixture ran and passed in both Development and /O2 CI. The native, pe_map and AOT runs compare the full frame and trace, and the stale texture exposes exactly 276 changed covered pixels. Thanks for keeping the draw provider ABI unchanged.