Repository navigation
tools/tests: import_inventory, hello_pixels, test suite additions - #5732
NolanCotter wants to merge 3 commits into
Conversation
|
Windows check of Windows 11, Python 3.14 (
Defect:
So a draw that gets 99.99% of the pixels wrong but the seven probe points and the alpha right reports success. Since Not tested: the AI-assisted. Synthetic only; no game data. |
There was a problem hiding this comment.
Reviewed head 3527f7a (base 561b65a). git diff --check clean.
python -I -m pytest tests/test_hello_pixels.py tests/test_import_inventory.py -q-> 38 passed, 45 subtests.pyteston the four touched existing suites -> 131 passed, 5 skipped, 283 subtests.- Semantic files run directly: 13 + 4 + 5 + 8 = 30 tests, all OK.
- Docs tests -> 20 passed, 22 subtests.
tools/import_inventory.pyon a synthetic list -> 7 imports, 2 unimplemented, exit 0.tools/hello_pixels.py --run --check-> ok at 64x64 and 256x256 on RTX 5070 Ti with the new every-pixel oracle; .raw/.ppm/.png written.- No game data:
scripts/check_no_game_data.pyexit 0 on the tools, tests and docs; code reads only CLI paths,runtime/shims/*.cpp, its work dir and vk_harness.
Verdict: merge. Stacked on #5731: import_inventory mirrors dll_key/owns_dll routing, so its output describes post-5731 behaviour. Large scope (3,172 lines / 14 files) and it duplicates #2490's tools half.
|
@milas6669 right — that was a real gap, thanks for the precise repro. Fixed in
@Kam471 thanks for the clean review — the |
|
@Kam471 thanks for re-running on the new head — good to see the every-pixel oracle verified end-to-end on the 5070 Ti at both sizes. On the stacking note: agreed — |
|
Retested AI-assisted. |
|
@thatirishguyyy thanks — 655,360 pixels through the every-pixel oracle on two different AMD adapters is a strong check, and the WSL2 pass covering the Windows-skip suites closes the last coverage gap. This head looks done from my side. |
|
@NolanCotter I found one more edge case in I have a two-file patch ready to cherry-pick. It rejects non-finite channels and adds a regression covering all four channels with NaN and both signs of infinity. Before the fix, all four NaN cases escaped the check. With the patch, all 11 AI-assisted. |
|
@thatirishguyyy nice catch — cherry-picked aec9a0e with your authorship; head is now 0306b59 (3527f7a + the non-finite guard). All 11 test_hello_pixels checks pass, including your new 12-case nonfinite regression. |
|
Tested 0306b59 (trial-merged onto main 561b65a) on NVIDIA GeForce RTX 5090 (610.88, subgroup 32..32) and AMD Radeon iGPU (RDNA2, AMD 32.0.21036.18, subgroup 32..64), Windows 11 Pro 26200: pass.
No game files. AI-assisted. |
|
@nicknickalive thanks — pass on both an RTX 5090 and an RDNA2 iGPU at the trial-merge confirms the non-finite guard holds across the NVIDIA/AMD split too. |
|
Tested cb420fc on AMD gfx1036 (26.11.2) and RTX 4070 Ti SUPER (621.14), Windows 11: pass.
Setup: Windows 11. GPUs are an AMD Ryzen 7 9800X3D iGPU (RDNA2 gfx1036, driver 26.11.2, subgroup 32..64) and an RTX 4070 Ti SUPER (NVIDIA 621.14, subgroup 32). Each PR was tested in its own worktree with:
Baseline is main
The NVIDIA failure is |
|
@vanoizer thanks for the dual-GPU sweep — clean across AMD iGPU/NVIDIA native/emulated with only the known |
tools/import_inventory.py cross-references a PE's import table with the shim registry and the measured console export lists — what binds where, per DLL. tools/hello_pixels.py drives the package-free draw probe (synthetic quad through vk_harness, SPIR-V assembled or reused from a prebuilt pair when spirv-as is absent). tests/: unit coverage for make_game's shader-state handling, run_gpu_tests' helpers, the viewer's HTTP surface (GET/HEAD parity, traversal, streaming) and the wave64 halves operand model, plus hello_pixels and import_inventory's own suites. tests/semantic/: hand-written fixtures pinning s_cmpk_*, s_wqm_b32, v_not/ashrrev/min/max ALU ops and f16/f32 transcendentals. Split from ItsNotRexed#2490 (second of three). AI-assisted. Tested: all six test files pass under python -I (9+28+47+25+41+23 checks); the wave64 file carries the maintainer's exec-def correction. Generated with [Devin](https://devin.ai) Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
check_image() only compared seven probe pixels against the closed form and never used clear_tol, so an image right at the probes but wrong elsewhere passed --check. Now it compares every pixel against expected_pixel() at the same 0.04 tolerance, drops the unused clear_tol, and the docstring/doc/help no longer claim a corner clear-value check that a fullscreen quad cannot show. Regression test: a colour-only error away from the old probe points fails. All 10 test_hello_pixels checks pass. Generated with [Devin](https://devin.ai) Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
|
Rebased onto Verified: |
0306b59 to
ad5e4a7
Compare
|
Windows + GPU check (tools/tests PR - no runtime C++ change). Hardware: NVIDIA GeForce RTX 5080 + RTX 3070 Ti (driver 621.01) and AMD Radeon 610M iGPU (Ryzen 9 9950X3D, driver 32.0.13018.6). OS: Windows 11. Toolchain: MSVC (VS BuildTools 18) + Ninja, single-config RelWithDebInfo; llvm-mc 21.1.8; SPIRV-Tools (spirv-as/spirv-val). Configured with -DLEONIDA_LLVM_MC and -DLEONIDA_SPIRV_AS/VAL. Tested head ad5e4a7 (base 5e54bda). Build: clean. The PR adds only tools/tests/docs; runtime C++ is unchanged from the base. New Python suites (the PR's added/changed test files): test_import_inventory, test_hello_pixels, test_make_game_shader_state, test_run_gpu_tests_helpers, test_viewer_serve, test_wave64_halves_operands - 175 tests OK, 5 skipped (the end-to-end GPU-draw cases). New semantic fixtures (test_scalar_cmpk_wqm, test_valu_f16_trans, test_valu_f32_unary, test_alu_int_misc): 30 OK. hello_pixels.py --run --check (the PR's new package-free pixel tool), 512x512, against the built vk_harness.exe:
Full runtime suite, ctest -C RelWithDebInfo -j 6, excluding the 4 windowed present tests: RTX 5080 266 run, 2 failed - d3d12_vulkan_device, d3d12_indirect_dispatch_count. These two are pre-existing main-red on my hardware (reproduced identically on current main dde82f2 during the #5731 check); this PR changes no runtime C++, so they are not attributable to it. Net: the PR's tools and tests are green on Windows across both GPUs (import_inventory, the hello_pixels pixel-oracle pass on NVIDIA + AMD, and the new semantic fixtures all pass); the only full-suite failures are the known main-red GPU tests, unchanged by this tools/tests-only PR. Synthetic fixtures only, no game files. AI-assisted (opencode); runs on my machine. |
|
Thanks — the cross-vendor |
|
Tested ad5e4a7 on RX 5700 XT (RDNA1, gfx1010, RADV NAVI10), Mesa 26.3.1, Linux 6.18: pass
LLVM AI-assisted (Claude Code). |
|
Tested
No game files. AI-assisted (Claude Code). |
Split from #2490 (second of three), rebased onto current main after the revert.
Summary
tools/import_inventory.py: cross-references a PE's import table with the shim registry and the measured console export lists.tools/hello_pixels.py: the package-free draw probe — a synthetic quad throughvk_harness, SPIR-V assembled or reused from a prebuilt pair whenspirv-asis absent (magic validated).tests/: unit coverage formake_game's shader-state handling,run_gpu_testshelpers, the viewer's HTTP surface (GET/HEAD parity, traversal, streaming), the wave64 halves operand model, plus suites for both new tools.tests/semantic/: hand-written fixtures fors_cmpk_*,s_wqm_b32,v_not/ashrrev/min/maxALU ops and f16/f32 transcendentals.docs/hello_pixels.mddocuments the probe.tests/test_wave64_halves_operands.pyandtests/test_viewer_serve.pycarry the pre-revert tree's versions, so upstream's post-merge corrections (thev_cmpxexec-def fix, the HEAD-request checks) are kept.Test plan
python -I(9+28+47+25+41+23 checks) on LinuxAI-assisted.
Generated with Devin