cpp-migration: lower image_gather4_c_lz in the direct C++ image path #2969
Labels
No labels
accessibility
awaiting author
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
priority: P0
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/R0Y00--Xbox2Windows#2969
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?
@legacy-code-archaeologist on GitHub · 2026-11-27 00:10 UTC · original
Target branch
cpp-migration. Part of #2935 (instruction coverage: the image ops). I am taking this; please say if you already have it locally and I will drop it.Gap: the direct C++ image path (
image_ioinsrc/gfx1013_direct_compute.inl) lowersimage_gather4andimage_gather4_lz(DXILtextureGather) and the comparison samplesimage_sample_c/_c_lz(sampleCmp*). It refuses the comparison gather. A source-built compute container with the comparison sampler ofnative_direct_container_check.py(comparison_program) andimage_gather4_c_lz(op 79) fails with:The same program with
image_sample_c_lz(op 47) compiles. This was run withcompile_dxil ... gfx1013-container-cs, built fromcpp-migratione3670100.gfx2hlsl.pylowers this form (op_image_gather4_c_lz).Plan: follow the
gfx2hlsl.pycontract.image_gather4_c_lzon 2D and 2D-array images withdmask0x1 (red). gather4_c compares the resource's red component.textureGatherCmp(opcode 74) with channel 0 and the reference as the compare value.image_gather4_lzalready uses (DXIL gather has no LOD operand).image_gather4_cwith implicit LOD,_c_l,_c_band offsets.dxc -dumpbin:textureGatherCmp) and refusals by message, plus a pipeline created on WARP likenative_comparison_pso_warp.AI-assisted.
@legacy-code-archaeologist on GitHub · 2026-11-27 03:12 UTC · original
Done by #2971 (merged into
cpp-migration).AI-assisted.