Repository navigation
Conversation
|
AI-assisted. The new 3D mip fixture passes on the RTX 4090 and AMD Radeon iGPU on Windows 11 at df3423c. The checker matches all 64 words in each of the three images. All 79 tests in tests/test_shader_checks.py pass. The existing cs_imgstore case now allocates and maps nine upload buffers that it never submits. I measured the following Vulkan calls on the RTX 4090 with the same cs_imgstore.spv on both revisions:
To reproduce, build vk_store_test on both revisions. Generate the fixture with The nine buffers are the three mip uploads for each of the three images. Only words mode records the upload commands. Move the staging-buffer creation and fill loop inside a words_mode check so other modes avoid all nine allocations and mappings. |
|
Tested df3423c (merged on
|
|
Checked that the fixture detects a lost depth coordinate on CachyOS, RTX 3080 Ti, NVIDIA 620.73.04. At For a negative control I kept the exact same translated SPIR-V and changed only the test harness’s integer volume fill: I omitted the AI-assisted. Synthetic fixture. |
|
Tested df3423c on AMD Radeon RX 9070 (RDNA4), AMD driver 26.11.2, Windows 11 Pro 26300, with
Correction to my notes on #5295, #5299, #5225 and #4280: the four AI-assisted (Claude Code). |
Kam471
left a comment
There was a problem hiding this comment.
Head df3423c2e on 3faac55. Windows 11, MSVC 19.44.35228, Vulkan 1.4.363, RTX 5070 Ti.
- Built
vk_store_test vk_compute_test vk_harnessinbuild-review-5292. $env:LLVM_MC='wsl -d Ubuntu -e /usr/lib/llvm-21/bin/llvm-mc'; $env:LEONIDA_VK_DEVICE='RTX 5070 Ti'; python -I scripts/run_gpu_tests.py --build C:\Users\kam\AppData\Local\Temp\opencode\build-review-5292 --filter cs_imgload_mip_3d-> 1/1 PASS, "all 64 words of the uint image, the sint image and the volume exact".- Neighbours, to check the new binding-6 descriptor:
cs_imgatomic+cs_imgatomic3d2/2,cs_resinfo1/1,cs_imgstore1/1, all PASS. - Intel(R) UHD Graphics 630 / Mesa 25.2.8 claim is unverified here: only an RTX 5070 Ti is available.
git diff --check origin/main...HEADclean.
Doc nit: the "Typed image loads" row still ends "The translated d16 loads on 1D, 2D-array and 3D images still lack GPU checks". If that sentence includes image_load_mip, it is now stale for 3D; please narrow it or say it means non-mip loads. Approve.
The
3D explicit-mip loadsrow of the translator contract table had no GPU check: the translated form ofimage_load_mipon a 3D image was only checked on the CPU, plus native gfx1036 measurements at mip zero.This adds
runtime/test/shaders/cs_imgload_mip_3d.asm, a hand-written compute fixture in the shape of the othervk_store_testimage fixtures, and the 3D sampled images it needs at binding 6: a 4x4x4 image with three levels, bound once per numeric class (rgba8 unorm, r32 uint, r32 sint) and filled so every fetched word names the level and the texel it came from. The fixture loads at mip 0, 1 and 2 through all three T# FORMAT classes and through the d16 forms, and stores each result into its own texel of the 2D sint image, wherecheck.pycompares all 64 words of the three images.It passes on Intel(R) UHD Graphics 630 (CFL GT2), Mesa 25.2.8, and the row records that check. AI-assisted.