Repository navigation
image_fuzz: require fresh shader modules and readbacks for each case - #6965
jewmaster1337 wants to merge 1 commit into
Conversation
|
Tested ebc9086 on Windows 11, Python 3.15.2, NVIDIA RTX 4060 Ti (driver 621.24; CPU-only checks, no game files, no GPU/llvm-mc/MSVC used): pass. Ran the test files this PR adds or changes, from a clean checkout of the PR head: AI-assisted (Claude Code). |
|
Tested
This file is pytest-style (no Independent check (not the author). Run by an AI agent (DeepSeek V4.1 Flash) and re-run by the orchestrating session (Claude Code) before posting. |
image_fuzz: require fresh shader modules and readbacks for each case Independent review: ItsNotRexed#6965 (comment) Fork integration. AI-assisted (Codex).
|
Tested ebc9086 on Windows 11 (NTFS), Python 3.12.10 (CPU only, no GPU, no game files): pass The earlier comments found that What I ran:
End-to-end runs (
With 12 programs over all six formats on the merged tree, all 12 match. A stale readback or module in a later case is refused the same way. Nits, none blocking:
Overlap: no other open PR clears stale case outputs. #9227, #8433, #4426 and #4152 also change Not run: the real AI-assisted (Claude Code). |
Claimed in coordination #6910.
Within one invocation, the image fuzzer reuses fixed paths across cases. An old fragment module could mask the translator refusing the next shader. An old matching frame could also give a false pass if the next harness exited zero without producing pixels. Remove case outputs before their producers run and report missing or malformed readbacks as case failures. Device-unsupported returns retain their existing skip behavior.
python -m pytest -q tests/test_image_fuzz.py tests/test_image_fuzz_hw.py: 91 passed, 6 skipped on Windows. The self-test and Python compilation passed.vk_image_fuzzand ran threeR8G8B8A8_UNORMcases in the same work directory with seed 8. All three matched the reference across every pixel under the existing one-ULP allowance.git diff --checkpassed. Native GPU and retail runs were outside this check.Synthetic inputs only. AI-assisted (Codex).
Native Windows Vulkan check
Trial-merged the PR head with upstream 2382459 and built
vk_image_fuzzwith MSVC 19.44 and the pinned Vulkan-Headers. The harness selected an NVIDIA GeForce RTX 4070 with driver 621.01. LLVM 18.1.3 assembled the synthetic RDNA2 input in Ubuntu 24.04 and SPIRV-Tools 2026.3 validated the translated modules on Windows.python -IB tools/image_fuzz.py --build build/gpu --programs 16 --seed 8 --work build/native-fuzz --show— 16/16 matched across six formats, including the newly merged noncontiguous mask coverage.python -IB tools/image_fuzz.py --build build/gpu --programs 8 --seed 8 --work build/native-fuzz --pc-tail-ubo— 8/8 matched.python -m pytest -q tests/test_image_fuzz.py tests/test_image_fuzz_hw.py— 92 passed and 6 skipped.python -IB tools/image_fuzz.py --self-testpassed.Synthetic fixtures only. AI-assisted (Codex).