Repository navigation
Conversation
The direct translator declares a cube sample or gather as a TextureCubeArray (DXIL resource kind 9), which
format_compute_runtime_manifest refused ("SRV kind cube_sample_srv cube"). A cube_sample_srv of one cube
is now published as `srv N texcubearr table R B` (`texcube` keeps its draw meaning). The compute reader
takes the name; the stand-in Dispatch binds the title's described TEXTURECUBE view of a six-slice texture
as a one-cube TEXTURECUBEARRAY (same mips and format, First2DArrayFace 0, NumCubes 1), or refuses with a
name: no recorded view description, view is not cube (a TEXTURE2DARRAY or TEXTURECUBEARRAY view), or view
does not fit its texture. Cube arrays, image_load on a cube, cube comparison and descriptor arrays stay
refused at publication; gfx2hlsl.py and the in-process route are unchanged. No native output revision bump
(the line was never published before). The reader catch-all refusal now reads
"... 1D/2D/2D-array/3D/cube texture". Gather on a cube is published the same way but not run by the fixture.
Tests: native_compute_manifest_reasons (published line plus three refusals), and the new
startup_compute_dispatch_cube_{controls,warp,hardware}: a synthetic 24-lane cube-sampling program is
published with compile_dxil --requests and dispatched through startup_stream_consumer (dispatch-cube*)
against a CPU reference from the D3D face mapping (6 faces x 2x2 texels); controls are a TEXTURE2DARRAY
view, no description, a twelve-slice texture, and the manifest line rewritten to tex2da, tex2d or texcube.
WARP cannot create the translator's [WaveSize(32)] shader, so on WARP the test swaps in an HLSL equivalent
and covers the manifest, reader and view only; hardware runs the translated DXIL.
Experiment (not kept): with the TEXTURECUBEARRAY rewrite removed (the title's TEXTURECUBE desc bound as is
against the kind 9 declaration), the positive case on WARP and on the hardware adapter with the D3D12 debug
layer enabled produced no debug-layer message of any severity, all 320 words equal to the reference, no
refusal and no crash. The rewrite is therefore not observable there; it follows the declared DXIL kind.
Impact (local 2,689-request cohort, same build, writer swapped back): 382 -> 413 manifests, each of
the 31 new ones with a texcubearr line, the other 382 byte-identical. 181/181 of the startup_compute,
native_compile_dxil, direct_compute and compute_manifest tests pass (RTX 3080 and WARP); with the src
changes reverted the four new tests fail.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Independent verification at I also ran the original native blob on app-local WARP, which passed the separate forced-wave32 probe. In a scratch runner I left the published With one fixture-only change, prepend cmake --build --preset <dev-or-release> --target compile_dxil startup_stream_consumer d3d12_xs_shim offscreen_check native_compute_manifest_reasons
ctest --preset <dev-or-release> --no-tests=error -j 1 -V -R '^(startup_compute_dispatch_cube_.*|native_compute_manifest_reasons(_requests)?)$'I used Codex for the scratch runner and ran the verification locally. |
12568d8 to
58694f5
Compare
Refs #3224. Follows #3306 (1D, 2D-array and 3D texture SRVs).
The direct translator declares a cube sample or gather as a TextureCubeArray (DXIL resource kind 9, layer = face >> 3). The published compute manifest had no line for it, so these programs got no
<key>.txt.cube_sample_srvwith one descriptor and the cube dimension publishessrv N texcubearr table R B.texcubekeeps its draw meaning (TextureCube).texcubearrneeds a recorded TEXTURECUBE view that fits its texture (six slices). The view is rebuilt as a one-cube TEXTURECUBEARRAY with the same mips and format. Named refusals: no recorded view description, view not cube, view does not fit.Impact, local 2,689-request cohort, measured on the #3306 head with only the writer swapped back: 382 -> 413 manifests (+31), every new one has a
texcubearrline, the other 382 are byte-identical.Tests:
native_compute_manifest_reasons: the published line, and the cube kinds that stay refused.startup_compute_dispatch_cube_{controls,warp,hardware}: 2x2 R32_FLOAT cube, 24 distinct texels, lanes over all six faces at texel centres, readback checked against the D3D face mapping (not the translator's own table). Debug layer on, no message. Controls: TEXTURE2DARRAY view, no view description, 12-slice cube view, manifest rewritten totex2da,tex2dortexcube; each refuses by name and leaves the output untouched.[WaveSize(32)]pipelines, so the WARP run uses an equivalent HLSL program; the hardware run uses the translated DXIL.src/changes reverted,native_compute_manifest_reasonsand the three cube tests fail.startup_compute|native_compile_dxil|direct_compute|compute_manifestpass on the rebased branch.Limits:
Ran on RTX 3080 (32.0.16.2124) and WARP, DXC 1.8.2502.11, Windows 26200.
AI-assisted.
🤖 Generated with Claude Code