cpp-migration: remaining work before the runtime can use the native shader compiler (tracking) #2935
Open
opened 2026-11-26 22:04:59 +00:00 by MasterDomino
·
66 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#2935
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 MasterDomino on 2026-11-26T22:04:59Z.
Target branch
cpp-migration, at999e17cd(updated 2026-11-27; first written ate97c5c7c). This tracks what still separates the native C++ shader compiler from replacingtools/startup/gfx2hlsl.pyin the startup runtime, and so from mergingcpp-migrationintomain.The list started from a source-reading review of
cpp-migrationagainstmain(at7f951fd3, nothing built or run). Each item says whether it was checked on the branch or is still from reading only. Please open a focused issue per item before working on it, and link it here.Status today
On
999e17cdthe runtime can use the native compiler for compute, opt-in only. Default runs still translate throughgfx2hlsl.py.X2W_NATIVE_SHADERS=<DXC directory>(run.ps1 -NativeShaders) translates slot 67 compute requests in the stand-in at their first Dispatch (#2958). It bindsraw_vector_srvandraw_buffer_uavonly. Requests it refuses fall back to thegfx2hlsl.pypath. Checked in a start-up run.compile_dxil --requestsreads the runtime's revision-28 requests and publishes<key>.txtwith<key>.{vs,ps,cs}.cso, which the runtime loads (#2939, #2955).<key>.failon refusal (#2984) and resolves RTV variants (#2989).compile_dxil --watchfollows a live request directory (#2992, #3003).compile_dxil --refusalsgives a read-only first-refusal census (#2984, #3003).compile_dxil --requests):4ff5e36d.req_*.arequests compile at4ff5e36d.--refusalsat4ff5e36dlists 56 distinct first-refusal reasons for compute.Done
compile_dxilreads the runtime's requests and publishes cache entries the runtime loads (#2939, #2955)..failfiles thattriage_run.pyclassifies,--refusals(#2983 → #2984),--watch(#2988 → #2992), and.rtvin both (#3001 → #3003). Still missing: a native equivalent ofshader_cache_rekey.py.compile_lds_request.pyruns again (#2941; #2944 closed).cpp-migrationget CI since #2942. It runsnative_dxil_llvm_ident_controlson this branch, but it still excludes_hardware, where most direct-DXIL execution tests are.quad_perm(#2937);v_readlane/v_writelane(#2950);s_bfm_b64/s_cselect_b64/s_not_b64(#2959);global_load_dword(#2966);image_gather4_c_lz(#2971);v_ashrrev_i64/v_mad_i32_i24(#2994);v_alignbit/v_alignbyte/v_bfm_b32(#2986);v_cvt_pk_u8_f32(#2998).In progress
Graphics through the runtime:
Compute bindings on the native routes:
Wave size of slot 67 requests: #2999 (#3006). Every
.c67request is compiled as wave32 today. In the capture, bit 20 of.sadword 4 splits the requests the way a wave size would.Instruction coverage, open:
v_mad_u64_u32/v_mad_i64_i32: #3000 (#3004);v_add_nc_i32/v_sub_nc_i32and clamped add/sub: #3009.The VOP3 probe on #2985 counted 79 refused names at
05438d65, before this round. Until coverage is close, the runtime needs its per-pipeline fallback togfx2hlsl.py, and #2958 keeps that fallback.Not yet filed
.m57and.ps57requests have no native path. From reading.src/gfx1013_compute_native.cpp), and nothing on the branch produces either. From reading.src/dxil_module.h). WARP reports 4-lane waves, so the native_warpexecution tests skip, and the in-process route refuses on WARP (#2958). The CI-built GPU check requires the Python compute cases to pass on WARP (package-gpu-check.ps1). Checked.shader_cache_rekey.py. It has no native equivalent (see Tooling above).gfx2hlsland run on Linux and macOS, while the native tests need Windows with DXC.AI-assisted. "Checked" means verified on the branch; "from reading" means taken from the source-reading review and not yet verified.
Imported from R0Y00/Xbox2Windows. Originally posted by Leyukaka on 2026-11-26T22:06:31Z.
Filed #2936 for one instruction-coverage item: DPP16
quad_permin the direct compute path (677 first refusals in a local census of 2,689 compute requests). I am taking it.AI-assisted.
Imported from R0Y00/Xbox2Windows. Originally posted by Leyukaka on 2026-11-26T22:25:14Z.
Filed #2940 for the next instruction-coverage item:
v_readlane_b32/v_writelane_b32(SGPR spills) in the direct compute path, includingvcc_loas a lane-read destination. I am taking it.AI-assisted.
Imported from R0Y00/Xbox2Windows. Originally posted by Leyukaka on 2026-11-26T22:59:11Z.
Filed #2951 for the next instruction-coverage item: inline-integer, literal and SGPR-pair shifted values for
v_lshrrev_b64/v_lshlrev_b64in the direct compute path. I am taking it.AI-assisted.
Imported from R0Y00/Xbox2Windows. Originally posted by Leyukaka on 2026-11-26T23:25:54Z.
Filed #2957 for the next instruction-coverage item:
s_bfm_b64,s_cselect_b64ands_not_b64as 64-bit values in the direct compute path. I am taking it.AI-assisted.
Imported from R0Y00/Xbox2Windows. Originally posted by legacy-code-archaeologist on 2026-11-26T23:38:15Z.
Status note for the Helper scripts item:
load_compute_requestoncpp-migrationnow takespipeline_type(tools/startup/gfx2hlsl.py:10991, from #2941, merged asa990f323), so thecompile_lds_request.py:169call matches its signature again. The script does not exist onmain. I have not run itsmain()against a real request.AI-assisted.
Imported from R0Y00/Xbox2Windows. Originally posted by Leyukaka on 2026-11-26T23:52:38Z.
Filed #2963 for the SDWA forms of binary16 add, sub and mul in the direct compute path. It builds on the plain forms in #2945. I am taking it.
AI-assisted.
Imported from R0Y00/Xbox2Windows. Originally posted by Leyukaka on 2026-11-26T23:57:03Z.
Filed #2965 for the next instruction-coverage item: buffer stores through a byte-window descriptor (stride cleared, NUM_RECORDS scaled, OOB_SELECT 3) in the direct compute path. I am taking it.
AI-assisted.
Imported from R0Y00/Xbox2Windows. Originally posted by legacy-code-archaeologist on 2026-11-26T23:59:58Z.
Filed #2962 for the global loads part of the instruction-coverage item:
global_load_dwordin thesaddrform through a root SRV address in the direct compute path, followinggfx2hlsl.pyop_global_load_dword. I am taking it; a PR againstcpp-migrationfollows.AI-assisted.
Imported from R0Y00/Xbox2Windows. Originally posted by legacy-code-archaeologist on 2026-11-27T00:13:04Z.
Filed #2969 for one of the image ops in the instruction-coverage item:
image_gather4_c_lzas DXILtextureGatherCmpin the direct image path. I am taking it.AI-assisted.
Imported from R0Y00/Xbox2Windows. Originally posted by Leyukaka on 2026-11-27T00:51:16Z.
Filed #2974 for the runtime side of the native route: 3D/1D texture UAVs (the runtime half of #2902) and the table-buffer and 2D-texture views a natively translated compute program needs, so a per-frame pipeline that the C++ compiler already compiles can reach a Dispatch. I am taking it.
AI-assisted.
Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-27T01:57:10Z.
Graphics work now has two independently claimable slices. #2978 covers the first ordinary native draw with a fixed target format. #2980 covers offline RTV variant resolution, cache identity and format-specific readback. Both target cpp-migration. Keep the fallback-disabled compute and graphics corpus runs and the original runtime acceptance together for integration after the component work lands.
Imported from R0Y00/Xbox2Windows. Originally posted by stan495 on 2026-11-27T02:44:19Z.
Filed #2983 for the Tooling item (
.faildiagnostic files and read-only--refusalssummary incompile_dxil, plustriage_run.pyclassification). I am taking it.Imported from R0Y00/Xbox2Windows. Originally posted by legacy-code-archaeologist on 2026-11-27T03:16:38Z.
Filed #2985 for three integer-ALU items:
v_alignbit_b32,v_alignbyte_b32andv_bfm_b32in the direct compute path. I found them with a per-opcode probe of the VOP3 names ingfx1013_isa_tables.inl: 79 names are refused on05438d65, and these three have agfx2hlsl.pylowering and no issue or PR. I am taking them.AI-assisted.
Imported from R0Y00/Xbox2Windows. Originally posted by stan495 on 2026-11-27T03:25:37Z.
Filed #2988 for the Tooling
--watchitem (compile_dxil --watchfor live startup graphics and slot-67 compute requests). I am taking it.Imported from R0Y00/Xbox2Windows. Originally posted by legacy-code-archaeologist on 2026-11-27T03:25:49Z.
Filed #2987 for the five sum-of-absolute-differences operations (
v_sad_u8,v_sad_hi_u8,v_sad_u16,v_sad_u32,v_msad_u8) in the direct compute path, from the same VOP3 probe as #2985. I am taking it.AI-assisted.
Imported from R0Y00/Xbox2Windows. Originally posted by legacy-code-archaeologist on 2026-11-27T03:31:55Z.
Filed #2991 for two signed counterparts of existing lowerings,
v_ashrrev_i64(next to the #2952 shifts) andv_mad_i32_i24, in the direct compute path. I am taking it.AI-assisted.
Imported from R0Y00/Xbox2Windows. Originally posted by legacy-code-archaeologist on 2026-11-27T03:39:09Z.
Filed #2995 for the saturating packs
v_cvt_pk_u16_u32andv_cvt_pk_i16_i32in the direct compute path, from the same VOP3 probe. I am taking it.AI-assisted.
Imported from R0Y00/Xbox2Windows. Originally posted by legacy-code-archaeologist on 2026-11-27T03:47:24Z.
Filed #2997 for
v_cvt_pk_u8_f32in the direct compute path, with the round-to-nearest-even and saturation contract thatgfx2hlsl.pymeasured on RDNA 2. I am taking it.AI-assisted.
Imported from R0Y00/Xbox2Windows. Originally posted by Leyukaka on 2026-11-27T03:54:15Z.
Filed #2999 for the wave size of slot 67 compute requests: bit 20 of
.sadword 4 splits the census the way a wave size would, and the C++ compiler compiles every request as wave32 today. I am taking it.AI-assisted.
Imported from R0Y00/Xbox2Windows. Originally posted by stan495 on 2026-11-27T03:59:43Z.
Filed #3001 to wire
.rtvvariant requests (#2989) intocompile_dxil --watchand--refusals. I am taking it.Imported from R0Y00/Xbox2Windows. Originally posted by legacy-code-archaeologist on 2026-11-27T04:12:26Z.
Filed #3000 for
v_mad_u64_u32andv_mad_i64_i32in the direct compute path. I am taking it, and the PR is open.AI-assisted.
Imported from R0Y00/Xbox2Windows. Originally posted by legacy-code-archaeologist on 2026-11-27T04:35:15Z.
Unfused f32 multiply-adds (
v_mad_f32,v_mad_legacy_f32,v_mac_f32,v_mac_legacy_f32) in the direct path: #3005, PR #3007 (controls pass, readback unmeasured on this machine). AI-assisted.Imported from R0Y00/Xbox2Windows. Originally posted by Leyukaka on 2026-11-27T04:40:23Z.
Filed #3008 for DPP16
row_shl,row_shrandrow_rorin the direct compute path (80 requests in a local capture stop first there). I am taking it.AI-assisted.
Imported from R0Y00/Xbox2Windows. Originally posted by MasterDomino on 2026-11-27T04:45:54Z.
Updated the body for
999e17cd.shader_cache_rekey.py, the helper-script fix and CI.AI-assisted.
Imported from R0Y00/Xbox2Windows. Originally posted by legacy-code-archaeologist on 2026-11-27T05:03:51Z.
Filed #3009 for
v_add_nc_i32,v_sub_nc_i32and the clamped (saturating) 32-bit add/sub forms in the direct path, from the same VOP3 probe; PR #3011 (controls pass, readback unmeasured here). AI-assisted.Imported from R0Y00/Xbox2Windows. Originally posted by stan495 on 2026-11-27T05:06:54Z.
Started work on
compile_dxil --rekey(native C++ equivalent oftools/startup/shader_cache_rekey.py) in #3012.Imported from R0Y00/Xbox2Windows. Originally posted by archielcqp-a11y on 2026-11-27T05:22:56Z.
Filed #3015 for
v_perm_b32andv_lerp_u8in the direct compute path. I found them with the same kind of per-opcode VOP3 probe: on999e17cdit refused 68 of 120 names, and these two havegfx2hlsl.pyPRs (#2875, #2873) but nothing for the direct path. I'm taking it, and the PR follows.AI-assisted.
Imported from R0Y00/Xbox2Windows. Originally posted by archielcqp-a11y on 2026-11-27T05:28:39Z.
Filed #3017 for the twelve non-packed 16-bit integer VOP3 ops (
v_add/sub_nc_u16/i16,v_mul_lo_u16, the three 16-bit shifts andv_min/max_u16/i16) in the direct compute path. They keep D[31:16], the rule #669 settled. I'm taking it, and the PR follows.The issue also notes that the direct path's binary16
v_add/sub/subrev/mul_f16(#2964) zero D[31:16] in their non-SDWA form, where gfx10 keeps it. I didn't change that.AI-assisted.
Imported from R0Y00/Xbox2Windows. Originally posted by archielcqp-a11y on 2026-11-27T05:37:30Z.
Filed #3019: the direct path's binary16
v_add/sub/subrev/mul_f16(#2964) zero D[31:16], where LLVM's gfx10 rule and the path's ownv_cvt_f16_f32keep it. The fix and the updatednative_f16_alufixture follow as a PR.AI-assisted.
Imported from R0Y00/Xbox2Windows. Originally posted by Leyukaka on 2026-11-27T05:55:45Z.
Filed #3021 for
v_permlane16_b32andv_permlanex16_b32in the direct compute path (47 requests in a local capture stop first there after #3010). I am taking it.AI-assisted.
Imported from R0Y00/Xbox2Windows. Originally posted by JB2WIN on 2026-11-27T06:16:17Z.
Filed #3023 for passing the captured heap view types of #2972 into the in-runtime native compute route (#2958), the follow-up named on #2908. I'm taking it, and the PR follows.
AI-assisted.
Imported from R0Y00/Xbox2Windows. Originally posted by sydney-0o on 2026-11-27T11:30:48Z.
PR #3049 combines the remaining #2975 and #2993 changes on
mainafter #3039. Both source-built hardware fixtures passed on a GTX 1080 Ti with app-local Agility SDK 1.620.2 (wave32 and SM 6.6). The startup stall previously reported in #2975 still needs a separate measurement.Imported from R0Y00/Xbox2Windows. Originally posted by pigalot on 2026-11-27T11:36:06Z.
Filed #3050 for the 32-bit bit counts and scans in the direct compute path:
s_bcnt0/1_i32_b32,s_ff0/1_i32_b32,s_flbit_i32(_b32),v_ffbl_b32,v_ffbh_u32andv_ffbh_i32. On one local capture, 12 compute requests stop first there. I am taking it, and the PR follows.This reply was AI-assisted.
Imported from R0Y00/Xbox2Windows. Originally posted by SimSalabimse on 2026-11-27T11:47:34Z.
Smoke result for the current
cpp-migrationtip (b405cf71, "native: read formatted loads through byte-address rewritten descriptors (#3034)"), which includes the main mergeb8f49259. No game files were involved.Environment (the Windows test PC): RTX 4070 Ti, driver 621.35, Windows 11 25H2 (build 26200), MSVC 19.44,
cmake --preset dev,X2W_WITH_OPUS=ON.Build: configure and build both exit 0.
Tests: the full suite is 2565 tests (audio-device tests excluded) and takes hours at
-j 1, so I ran the native/compute subset:ctest --preset dev --no-tests=error -j 1 -R "^(native_|startup_gfx2hlsl_compute_|startup_compute|startup_native)" -E "startup_audio_output|startup_audio_pacing|startup_audio_provider"native_cvt_pk_u8_hardware: GPU result differs in the low bit of the output word (0xa5a5a500where0xa5a5a501is expected, repeating every 16 bytes).native_sdwa_f16_irandnative_sdwa_f16_hardware:case.matches(got)fails for the firstaddcase even though the printedgotandwantare equal (0xa55a4200), so the check itself looks suspect rather than the result.f6cdee10(b8f49259^1, before the main merge), so the merge did not cause them.Happy to rerun against a newer tip or on request.
AI-Assisted
Imported from R0Y00/Xbox2Windows. Originally posted by RonLogic on 2026-11-27T13:08:04Z.
I’ll take the direct C++ compute path for
v_dot4_i32_i8andv_dot4_u32_u8. The source-built wave32 requests reachdirect ALU operand modifierson mainfca7c35b; #3031 covers the separategfx2hlsl.pypath. This slice is the two byte-dot opcodes plus clamp, including signed bounds, unsigned carry and inactive-lane preservation. I’m testing the packed DXIL operations on the RTX 4070.Imported from R0Y00/Xbox2Windows. Originally posted by RonLogic on 2026-11-27T13:14:44Z.
The native byte-dot work is ready in #3060. I’ll take the native C++ halfword dots (
v_dot2_i32_i16andv_dot2_u32_u16) as a separate follow-up to the existing HLSL work in #3036. At801f4c3bboth canonical forms are still refused. The native fixture will verify exact cancellation where the intermediate signed sum crosses INT32_MAX, unsigned totals with two carries, and the wrapping and clamped cases.Imported from R0Y00/Xbox2Windows. Originally posted by RonLogic on 2026-11-27T13:33:11Z.
Filed #3066 for native
image_gather4_lon a fixed 2D view. The synthetic pixel and compute baseline compiles the existing_lzform and refuses explicit LOD. I’ll take the direct frontend slice, using the nonzero-base SRV and distinct-tap readback from #3065 to check mip addressing.Imported from R0Y00/Xbox2Windows. Originally posted by legacy-code-archaeologist on 2026-11-27T13:35:32Z.
Filed #3062 and opened PR #3067 (\main) for \s_lshl_b64, \s_lshr_b64\ and \s_ashr_i64\ in the direct C++ compute path (including the _i64\ symbolic-transfer pair-clear fix and \SCC\ liveness).
AI-assisted.
Imported from R0Y00/Xbox2Windows. Originally posted by legacy-code-archaeologist on 2026-11-27T14:07:23Z.
Filed #3070 and opened PR #3071 (\main) for \s_cmov_b32, \s_cmov_b64\ and \s_cmovk_i32\ in the direct C++ compute path (\D = SCC ? S0 : D, \SCC\ unchanged,
eads_scc\ and \ ransfer()\ updated).
AI-assisted.
Imported from R0Y00/Xbox2Windows. Originally posted by legacy-code-archaeologist on 2026-11-27T14:13:01Z.
Filed #3072 and opened PR #3073 (\main) for the six 64-bit-source scalar bit counts and bit scans (\s_bcnt0_i32_b64, \s_bcnt1_i32_b64, \s_ff0_i32_b64, \s_ff1_i32_b64, \s_flbit_i32_b64, \s_flbit_i32_i64) in the direct C++ compute path, including the _i32_b64\ \ ransfer()\ pair-preservation fix.
AI-assisted.
Imported from R0Y00/Xbox2Windows. Originally posted by JB2WIN on 2026-11-27T14:21:04Z.
Samplers item: opened #3076 (sampler descriptors read from the directly indexed sampler heap; translator first, runtime binding as a follow-up). I am taking it.
AI-assisted.
Imported from R0Y00/Xbox2Windows. Originally posted by legacy-code-archaeologist on 2026-11-27T14:35:38Z.
Claimed #3078 and opened #3081 (
s_cmp_eq_u64,s_cmp_lg_u64,s_bitcmp0_b64,s_bitcmp1_b64) onmain. AI-assisted.Imported from R0Y00/Xbox2Windows. Originally posted by legacy-code-archaeologist on 2026-11-27T14:51:30Z.
Claimed #3086 and opened #3089 (
s_bfe_u64,s_bfe_i64,s_brev_b64) onmain. AI-assisted.Imported from R0Y00/Xbox2Windows. Originally posted by RonLogic on 2026-11-27T18:20:16Z.
Filed #3069 and opened #3144 for the six native packed 16-bit min/max opcodes. Debug and Release passed all 24 selected tests on the rebased head, including the new packed integer regressions. I’ll take #3145 for packed binary16 ADD/MUL/FMA in direct DXIL. The six baseline probes confirm that all three forms still refuse in both Pixel and Compute.
Imported from R0Y00/Xbox2Windows. Originally posted by Leyukaka on 2026-11-27T18:31:40Z.
Filed #3150 for descriptor spills through
v_writelane_b32/v_readlane_b32in the direct compute path, following #2940. I am taking it. AI-assisted.Imported from R0Y00/Xbox2Windows. Originally posted by RonLogic on 2026-11-27T19:03:31Z.
I’ll take #3156 for typed 2D image ADD, unsigned MAX and compare-and-swap in direct Compute DXIL. Synthetic containers for all three are refused at the image instruction on
88cddb09. This is separate from the sampler changes and the existing Python/AOT image atomics.Imported from R0Y00/Xbox2Windows. Originally posted by legacy-code-archaeologist on 2026-11-27T19:09:34Z.
Filed #3148 and opened PR #3159 (
main) loweringv_cvt_f16_u16,v_cvt_f16_i16,v_cvt_u16_f16, andv_cvt_i16_f16in the direct C++ compute path (withnative_compute_ir_dumpIR evaluation andcompile_dxilcontrols;hardwareskipped77on Quadro M1000M).AI-assisted.
Imported from R0Y00/Xbox2Windows. Originally posted by RonLogic on 2026-11-27T19:19:29Z.
I’ll take #3163 for
global_load_dwordx2/x3/x4through a proven root address in direct Compute. All three hit the scalar-only decoder refusal at+0x38on88cddb09. This is separate from the MUBUF offset work in #3143 and the Python Pixel-AOT GLOBAL variants.Imported from R0Y00/Xbox2Windows. Originally posted by legacy-code-archaeologist on 2026-11-27T20:48:56Z.
Filed #3186 and opened a PR (
main) loweringv_fma_f16,v_fmac_f16,v_fmamk_f16, andv_fmaak_f16in the direct C++ path with single-rounded integer FMA (native_fma_f16_ir+native_fma_f16_controls;hardwareskipped77).AI-assisted.
Imported from R0Y00/Xbox2Windows. Originally posted by legacy-code-archaeologist on 2026-11-28T00:05:11Z.
Filed #3226 and opened https://github.com/R0Y00/Xbox2Windows/pull/3230 targeting
mainto accept inline binary16 float (240..248, with[31:16] = 0per gfx1013) and inline integer (128..208) constants inDirectCompute::packed_f16_alu()andDirectCompute::packed_minmax()(native_packed_f16_inline_ir,controls,pixel_warp, andpixel_hardwarepassed on Intel HD Graphics 530;compute_hardwareskipped77).AI-assisted.
Imported from R0Y00/Xbox2Windows. Originally posted by legacy-code-archaeologist on 2026-11-28T01:19:42Z.
Opened PR https://github.com/R0Y00/Xbox2Windows/pull/3239 to lower VOP3P
v_dot2_f32_f16(0x13) in the direct Compute and Pixel DXIL path (Fixes #3238).AI-assisted.
Imported from R0Y00/Xbox2Windows. Originally posted by legacy-code-archaeologist on 2026-11-28T01:39:06Z.
Opened PR https://github.com/R0Y00/Xbox2Windows/pull/3244 to accept
GLCandDLCcache-policy flags on read-only image operations inDirectCompute::image_io()(Fixes #3242, Refs #3224).AI-assisted.
Imported from R0Y00/Xbox2Windows. Originally posted by legacy-code-archaeologist on 2026-11-28T01:46:36Z.
Opened PR https://github.com/R0Y00/Xbox2Windows/pull/3250 to lower
v_madmk_f32(VOP2 0x20) andv_madak_f32(VOP2 0x21) in direct Compute and Pixel DXIL (Fixes #3249, Refs #3005).AI-assisted.
Imported from R0Y00/Xbox2Windows. Originally posted by legacy-code-archaeologist on 2026-11-28T01:59:47Z.
Opened PR https://github.com/R0Y00/Xbox2Windows/pull/3254 to lower
v_rcp_iflag_f32(VOP1 0x2b,VOP3 0x1ab, SDWA, DPP16) identically tov_rcp_f32in direct Compute and Pixel DXIL (Fixes #3252).AI-assisted.
Imported from R0Y00/Xbox2Windows. Originally posted by legacy-code-archaeologist on 2026-11-28T02:19:30Z.
Opened PR #3257 (Fixes #3256) to lower plain VOP2
v_dot2c_f32_f16(0x02) in the direct Compute and Pixel DXIL paths on top of merged PR #3239 (v_dot2_f32_f16), with binary32 subnormal preservation, full0x8000ffumode tracking, and IR/DXIL/WARP/hardware-pixel verification (_compute_hardwareskipped77on Intel HD 530).AI-assisted.
Imported from R0Y00/Xbox2Windows. Originally posted by legacy-code-archaeologist on 2026-11-28T02:28:40Z.
Opened PR #3259 (Fixes #3258, Refs #3224) to lower plain VOP2
v_pk_fmac_f16(0x3c) in direct Compute and Pixel DXIL viafused_half_rne, with17cases and8refusals verified indevandrelease(/O2) IR/controls/WARP/hardware-pixel (_compute_hardwareskipped77on Intel HD 530).AI-assisted.
Imported from R0Y00/Xbox2Windows. Originally posted by legacy-code-archaeologist on 2026-11-28T02:37:16Z.
Opened a PR to support VOP3P
neg_lo,neg_hi, andclampmodifiers onv_pk_min_f16andv_pk_max_f16(Fixes #3261, Refs #3224): controls and WARP/Quadro M1000M pixel tests pass indevandrelease(/O2) (native_packed_minmax_compute_hardwareskipped77on Intel HD 530).AI-assisted.
Imported from R0Y00/Xbox2Windows. Originally posted by legacy-code-archaeologist on 2026-11-28T02:49:02Z.
Opened a PR to lower VOP3
v_min3_f16,v_max3_f16, andv_med3_f16in direct Compute and Pixel DXIL (Fixes #3264):devandrelease(/O2) IR/controls (24cases,7refusals) and lossless WARP/Quadro M1000M pixel draws (12draws /24cases) pass, and71/71native_.*_(controls|ir)pass (_compute_hardwareskipped77on Intel HD 530).AI-assisted.
Imported from R0Y00/Xbox2Windows. Originally posted by legacy-code-archaeologist on 2026-11-28T03:08:16Z.
Opened a PR to lower VOP1 (
0x5f) and VOP3 (0x1df)v_fract_f16in direct Compute and Pixel DXIL (Fixes #3267):devandrelease(/O2) IR/controls (29cases,10refusals) and lossless WARP/Quadro M1000M pixel draws (14draws /28cases) pass, and71/71native_.*_(controls|ir)pass (_compute_hardwareskipped77on Intel HD 530).AI-assisted.
Imported from R0Y00/Xbox2Windows. Originally posted by legacy-code-archaeologist on 2026-11-28T05:28:57Z.
Opened PR for #3287 (
shader: support VOP3P clamp on v_pk_add_f16, v_pk_mul_f16, and v_pk_fma_f16) admitting VOP3PCLAMPonv_pk_add_f16,v_pk_mul_f16, andv_pk_fma_f16in direct Compute and Pixel DXIL (22cases,9refusals;11/12dev & release tests passed across IR/controls/WARP/Quadro M1000M pixel,native_packed_f16_clamp_compute_hardwareskipped77on Intel HD 530).AI-assisted.
Imported from R0Y00/Xbox2Windows. Originally posted by legacy-code-archaeologist on 2026-11-28T05:43:46Z.
Opened PR for #3291 lowering VOP1/VOP3
v_cvt_norm_i16_f16andv_cvt_norm_u16_f16in direct Compute and Pixel DXIL using exact 32-bit integer RNE arithmetic (30cases,11refusals;devandreleaseIR/DXIL/WARP/Quadro M1000M pixel tests pass;native_cvt_norm_f16_compute_hardwareskipped77on Intel HD 530).AI-assisted.
Imported from R0Y00/Xbox2Windows. Originally posted by legacy-code-archaeologist on 2026-11-28T05:50:37Z.
Opened PR for #3294 lowering VOP3
v_cvt_pknorm_i16_f32(0x368) andv_cvt_pknorm_u16_f32(0x369) in direct Compute and Pixel DXIL via exact pure-32-bit integer RNE arithmetic (26cases,8refusals;devandreleaseIR/DXIL/WARP/Quadro M1000M pixel tests pass;native_cvt_pknorm_f32_compute_hardwareskipped77on Intel HD 530).AI-assisted.
Imported from R0Y00/Xbox2Windows. Originally posted by legacy-code-archaeologist on 2026-11-28T06:05:53Z.
Opened PR #3297 (Fixes #3296, Refs #2935) lowering the remaining 12 SOP1 EXEC-mask instructions (
s_xor_saveexec_b32,s_andn2_saveexec_b32,s_orn2_saveexec_b32,s_nand_saveexec_b32,s_nor_saveexec_b32,s_xnor_saveexec_b32,s_andn1_saveexec_b32,s_orn1_saveexec_b32,s_andn1_wrexec_b32,s_andn1_saveexec_b64,s_orn1_saveexec_b64,s_andn1_wrexec_b64) in the direct Compute DXIL path.AI-assisted.
Imported from R0Y00/Xbox2Windows. Originally posted by legacy-code-archaeologist on 2026-11-28T06:21:16Z.
Opened PR #3300 (Fixes #3298, Refs #2935) lowering
v_sin_f16(0x60/0x1e0) andv_cos_f16(0x61/0x1e1) including SDWA and VOP3abs/negmodifiers in the direct Compute DXIL path.AI-assisted.
Imported from R0Y00/Xbox2Windows. Originally posted by Leyukaka on 2026-11-29T21:51:46Z.
Taking this: let the runtime's native compute route use a valid cached frontend result (
.csir) before it translates live. Onmainff9dcef0the route callstranslate_computeat first Dispatch (src/startup_stubs/d3d12_compute_dispatch.inl:509) unlessX2W_NATIVE_COMPUTE_PACKholds the key (:499-507); the.csirfiles thatcompile_dxilwrites throughprepare_direct_compute(src/direct_compute_cache.cpp:368) are never read there, so an offline batch over saved requests does not shorten a later run without a pack.--jobs(#3472).Imported from R0Y00/Xbox2Windows. Originally posted by mumba17 on 2026-11-30T14:34:23Z.
Withdrawn: there is no gap here. I measured it before anyone acted on it.
My numbers came from a request cache built by runs that used the shared preset's
-Translate. Inrun.ps1, that selects the Python watcher instead of native shaders, and that path never writes.ps57in. Of the 1,971 graphics requests in that cache, 1,915 are raw slot 57 pairs, so 1,053 of them stopped atraw graphics requires its captured pixel entryonce the catalog was indexed.In a native run (
run_preset.py --set translate=false) onmain077bff3a(RTX 3090, 600 s, fresh cache):.ps57inwritten--index-graphics-interfacesThe stream pairs use the standard ADDR = 2 layout, so
direct_compute_cache.cppderives the record itself. For anyone reading a refusal census: count only caches from native runs, or the pixel-entry class is inflated.(This comment first claimed, then asked about, a runtime
.psinproducer. Neither is needed.)