shader: lower image_store on SQ_RSRC_IMG_2D_ARRAY in gfx2hlsl #2734
Closed
opened 2026-11-26 05:07:57 +00:00 by triggered02
·
8 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#2734
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 triggered02 on 2026-11-26T05:07:57Z.
op_image_storeintools/startup/gfx2hlsl.pyonly lowersdim:SQ_RSRC_IMG_2D; the 2D array form is refused even though other image operations in the same translator already handle it. From a diagnostic translate log (counts only), this is the refusal for 20 compute programs:Where it is refused
op_image_store(~line 6257 atfd033046):The neighbours already do the array case:
image_sample_c*accepts('SQ_RSRC_IMG_2D', 'SQ_RSRC_IMG_2D_ARRAY')witharray = dim == 'SQ_RSRC_IMG_2D_ARRAY', three address registers andtex2da;image_store/image_loadmip forms accept both dims as well (line ~6104). Only the plain store is 2D-only.What the fix should do
dim:SQ_RSRC_IMG_2D_ARRAYinop_image_store, with three address registers (x, y, layer) instead of two.tex2daand store throughuint3(x, y, layer):image[uint3(x, y, slice)] = value;dmask:0xfonly, four data VGPRs (two for thed16compute form), integer coordinates, the per-lane exec guard, the compute fixed-table path and the pixel descriptor path.SQ_RSRC_IMG_1D/3D/CUBEstay refused with the same message.Synthetic repro and acceptance
tests/startup_compute_image_store_check.pyalready encodes a 2Dimage_storeand evaluates the emitted HLSL; add the 2D-array case (three address registers, a non-zero slice in the middle of the range, a non-zero slice at the end) and pin the emitted statement shape plus the value-evaluation result. Proposed selection:NOT established
image_storewith a partialdmaskand theimage_loadarray forms.Refs #1545 (compute image_store/atomics tracking).
Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-26T05:21:28Z.
The current startup path needs an array UAV manifest as well as a translator change. ComputePipeline.manifest and load_compute_translation currently use the tex2d float form, and the pixel UAV path also has a 2D-only binding. The array SRV support is a useful reference for naming the shape.
A first PR can take the full-mask FP32 compute case and keep the existing packed-half and pixel array paths refused until separately verified. Emit RWTexture2DArray with an integer x/y/layer index, preserve the per-lane EXEC guard, and bind a compatible array UAV through the existing fixed-table path. A source-built texture should give each slice a distinct sentinel. Use a view with nonzero FirstArraySlice, write the middle and last selected slices, and read back every slice after the fence. Pin the wrong-layer and dropped-EXEC controls and confirm a plain 2D view refuses the array binding before dispatch. Reuse tests/startup_compute_image_store_check.py for the encoded instruction and retain its existing 2D regression. The 20 reported programs are candidates for later runtime verification. Array UAV descriptor
Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-26T07:54:29Z.
The full-mask compute FP32 array translator and manifest portion is on main via #2744 (
624f5927). Its source-built DXC dispatch matched all 5,376 words for each array case on WARP and RTX 4060 Laptop, and omission and wrong-layer controls differed at 64 and 128 words. The startup runtime still needs to consume tex2da and resolve a real tracked UAV view. Please reuse this shader and the existing slot-67 compute fixture for the nonzero FirstArraySlice, wrong-layer, dropped-EXEC and 2D-view refusal checks above. #2742 remains open for that integration. Pixel and packed D16 arrays keep their current refusals.Imported from R0Y00/Xbox2Windows. Originally posted by xiaoqi72665 on 2026-11-26T08:00:36Z.
I'd like to take the remaining startup runtime binding for the full-mask FP32 compute array store, following the merged translator-only #2744. This is the follow-up to my collaboration comment.
I have a local, reviewed candidate based directly on main at
624f5927(d378c2d): production tex2da UAV binding, nonzero FirstArraySlice, complete fenced readback of all six physical slices, full/partial EXEC, wrong-layer and dropped-EXEC controls, and pre-dispatch refusal of an incompatible 2D view. WARP and RX 7900 XT passed all four positive cases per adapter and the negative controls; 30/30 related CTests passed on an identical source tree, and 4/4 core tests passed after rebuilding the exact candidate. Pixel and packed D16 array stores remain refused. The local D3D12 debug layer is unavailable; the unchanged encoded shader fixture passed LLVM 15 in the upstream #2744 CI, not locally.I'll keep this as a narrowly scoped runtime-only follow-up and preserve the merged translator contribution. AI-assisted; source-built fixtures only. Please let me know if there is any overlapping work or a preferred adjustment to the scope.
Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-26T08:22:00Z.
The fixed-table FP32 compute path is now on main with #2744 (translator) and #2777 (runtime binding,
96a7b4fb). The source-built dispatch uses FirstArraySlice=1, checks all six physical slices after the fence, and covers partial EXEC. WARP and RX 7900 XT matched all positive cases ond378c2d. The wrong-layer and dropped-EXEC controls differed by 128 and 32 words, and an incompatible 2D view was refused before dispatch.The packed D16 compute and pixel descriptor paths from the original scope still need separate proofs. The D16 case needs nonzero half values, relative layer and masked-lane controls through the tracked array UAV. The pixel case needs its own production descriptor binding and fenced readback. Please check #2755 for shared pixel work before claiming that slice. The issue stays open for these remaining forms.
Imported from R0Y00/Xbox2Windows. Originally posted by xiaoqi72665 on 2026-11-26T08:28:19Z.
Thanks for the review and merge of #2777 (
96a7b4fb), and thanks @tedin7 for the independent WARP verification. This completes my fixed-table FP32 compute runtime-binding slice. I understand that the packed D16 compute and pixel descriptor paths remain open for separate proofs. I'll check existing claims and related PRs before taking any follow-up work.Imported from R0Y00/Xbox2Windows. Originally posted by xiaoqi72665 on 2026-11-26T08:46:10Z.
Following #2777, I would like to take only the remaining full-mask packed D16 compute 2D-array image_store proof. I plan to reuse the existing two-VGPR f16tof32 lowering and the tracked tex2da fixed-table binding, without changing the manifest or pixel path. The production slot-67/slot-14 fixture will use RGBA16_FLOAT, six physical slices, FirstArraySlice=1, relative layers 1/3, full/partial EXEC, wrong-layer/half-order/register-order/omitted-store controls, and refusal of a plain 2D UAV. I will verify LLVM 15 encodings and WARP/RX 7900 XT on Windows. #2755 is separate pixel D16 work; I will preserve its changes and coordinate any overlap in op_image_store. Refs #2742. AI-assisted; source-built fixtures only.
Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-26T09:30:25Z.
#2787 landed as
564f9bad. Fixed-table packed D16 compute now shares the existing tex2da runtime binding. On exact candidate06574c9d, all 12 selected CTests passed per Windows Debug/Release configuration. WARP and RTX 4060 Laptop verified 6,144 raw halfwords for each positive case with FirstArraySlice=1 and both full and partial EXEC. The wrong layer, dropped EXEC, packed-half order, and incompatible 2D view controls still distinguish failures.That completes the packed D16 compute slice of #2742. The pixel array descriptor and store path remains open. Please coordinate with #2755 before extending its scope.
Imported from R0Y00/Xbox2Windows. Originally posted by R0D4X on 2026-11-26T12:25:43Z.
I'd like to take the remaining open slice of #2742: the full-mask FP32 pixel-stage image_store on SQ_RSRC_IMG_2D_ARRAY (translator + startup runtime pixel array UAV descriptor binding and fenced readback).
Plan:
ead_pixel_uav_line, and pixel_uav_view to accept ex2da manifest lines and validate explicit D3D12_UAV_DIMENSION_TEXTURE2DARRAY views (bounds-checked FirstArraySlice/ArraySize, mip 0, plane 0, float-typed UAV store support, and SRV/RT conflict checks), refusing plain 2D views for ex2da and keeping ex2d behavior unchanged.
elease, debug layer on and off) on WARP and RTX 5080, plus Python/neighbor/lint checks. Since #2755 was withdrawn, there is no overlapping PR on the pixel path.
AI-assisted; source-built fixtures only.