Repository navigation
feat(rdna2spirv): implement image_store_pck - #3359
klarnet2009 wants to merge 2 commits into
Conversation
|
Code read (no test run: this machine is in a no-background-work window). The doc row is the part I would keep honest:
|
|
Tested c55c670 merged onto AI-assisted (Claude Code); runs on my machine. |
|
AI-assisted synthetic CPU review at A minimal case uses The packed early return at |
kacper-serewis
left a comment
There was a problem hiding this comment.
AI-assisted independent CPU review at c55c670 confirms the packed-only validation failure reported by @whattheflop. All six positive fixtures fail spirv-val Vulkan 1.2 on undefined constants in OpConstantComposite. The packed early return skips format-mask registration while assemble still emits the tables (tools/rdna2spirv.py around 9804 and 11352). Ordinary-store and mixed-store controls validate.
The runtime integration also needs correction: the packed path always selects %stv1, but ordinary UNORM and SINT UAVs populate as_float/as_sint, leaving the unsigned slot as fallback_info (runtime/shims/d3d12_vulkan_device.cpp:926; runtime/src/vulkan_bindless.h:912). A valid mixed module can therefore address the fallback image.
Raw packed semantics need more than a uint component view. For a four-byte RGBA texel, writing the synthetic word 0x44332211 as component R and zero for G/B/A cannot preserve the packed bytes through an R8G8B8A8_UINT view. Please establish the appropriate raw view/unpacking contract and verify legal packed-width/dmask combinations against primary ISA or hardware evidence; the existing sparse-mask shape test does not establish those semantics.
All 26 focused CPU tests passed, and full semantic discovery ran 7,325 tests with one expected failure. These passes do not cover the validation and descriptor defects above. No GPU or game data used.
|
Tested c55c670: its tests pass ( Measured on the hardware:
Compared with #3359: the translation writes component c = VGPR data (dmask bit c) or 0 into a Not done: a GPU fixture of #3359 on both cards. |
|
Thank you @whattheflop, @Vonsek, and @dcastell1 for the bug report, Updated in
Verified (
|
|
@kacper-serewis Thanks for the review! Just a quick ping: commit |
36db52e to
a6e12e0
Compare
|
Tested a6e12e0 merged onto main aa2988c on an RTX 5090 (driver 616.92), Windows 11, Vulkan SDK 1.4.363. The GPU test programs were built from the same tree:
AI-assisted (Claude Code). |
|
Tested
No GPU, no game data. AI-assisted. |
a6e12e0 to
5bb3f24
Compare
|
Tested current head As a negative control, immediate parent |
|
Tested
The PR has no GPU fixture for |
|
Tested
AI-assisted (Gemini 4 Neon). |
|
Independent Windows Radeon check at
|
What and why
Implements
image_store_pck(MIMG pre-packed storage image write) intools/rdna2spirv.py:%stv1_<di>(%uint) storage image view without format conversion orfmt_int_flagsbranching.1D,2D,2D_ARRAY, and3Ddimensions,dmaskcomponent packing,a16packed 16-bit coordinates,glc(Coherent), and active-lane predication; rejectsd16, insufficient coordinates, and unsupported dims withUnsupported.image_store_pckindocs/design.md(CPU/structural-checked, not yet hardware-measured on RDNA2) and adds structural +spirv_asm.assemble()tests intests/semantic/test_image_store_pck.py(3 tests).Claim: #3232 (comment)
Tested
spirv_asm)py -3.12 -I -m compileall -q tools/rdna2spirv.py tests/semantic/test_image_store_pck.py: passed (exit 0)py -3.12 -I tests/semantic/test_image_store_pck.py -v: Ran 3 tests in 0.100s, OKpy -3.12 -I tests/test_isa_coverage.py -v: Ran 18 tests in 9.441s, OK (skipped=3 forLEONIDA_RDNA2_ISA_XML)py -3.12 -I tests/test_ctest_registration.py -v: Ran 4 tests in 0.051s, OKtools/rdna2spirv.pytoHEADand confirmedtest_image_store_pck.pyfailed (5Unsupportederrors), then restored and re-ran 3/3 passing.Checklist
python -Icompatible)