Repository navigation
Conversation
|
Independent build + test: PASS (one design note) AI-assisted (Claude Code). Windows 11 x64, MSVC 19.44.35220, Ninja RelWithDebInfo. GPU (not used): NVIDIA GeForce RTX 3080 driver 621.24 / 32.0.16.2124. Head
Design note: a fractional or invalid value now reads as 0, the same as a missing field. For |
|
Tested
So the new test depends on the change. The agent also built the test under ASan/UBSan and reports it clean; I did not repeat the sanitizer build. 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. |
The shader index reader silently truncated fractional metadata:
local_size: [64.5, 1, 1]became[64, 1, 1],lds_bytes: 1024.75became1024, and fractional signature locations and sampler words became integers. The sharedShaderLibrary::u32helper now returns its existing invalid-field fallback, zero, for non-integral values. It checks the range before casting, then checks that conversion preserved the value. This does not reject the whole index or change the handling of valid whole numbers.Claim: #8344 (comment) (new RT item, no assigned numbered ID). AI-assisted (Codex).
Validation at 6253d2b, based on main 6dda063:
cmake -S runtime -B runtime/build-metadata-integers -G Ninja -DCMAKE_BUILD_TYPE=RelWithDebInfocmake --build runtime/build-metadata-integers --target shader_library_test mods_testctest --test-dir runtime/build-metadata-integers -R "^(shader_library|mods)$" --output-on-failure: 2/2 pass.git merge-tree --write-treechecks are clean with main a90a79b, shader_library: reject negative and overflowing f16_halves keys #7364 (302c5f2), make_game, shader_library: unpack, translate, and load pipeline-library compute programs (D3D-703) #7527 (37c4c12), make_game, runtime: translate and load game_scarlett_master.exe embedded shaders #7746 (bc5fc47), runtime: sha256_hex hashes in place, unrolled, with the x86 SHA extensions (4.6-7.0x, 1 allocation) #8358 (8bfd48f), runtime: remove TLS-0 static init guards and thread_local in d3d12_vulkan_device, d3d12_com, queue_holds and shader_library #8364 (9fe1e2e), runtime: parse JSON numbers independently of locale #8254 (0178ca6), runtime: reject malformed raw UTF-8 in JSON strings #8348 (812c01f), shader_library: keep JSON numbers that underflow #7738 (93a80f7) and Runtime: reject malformed JSON number syntax before strtod #7962 (8e93ec5). The combined tree with shader_library: reject negative and overflowing f16_halves keys #7364 also builds and passes shader_library_test, exercising its string-key and these numeric-value regressions together.python -m compileall -q make_game.py tools tests,python -I make_game.py --help, changed-file/reportscripts/check_no_game_data.pyandgit diff --check: pass.python -I scripts/run_semantic_tests.py tests/semantic: 447 files / 5,956 tests in 306 seconds, with the same two known main failures: test_image_atomics_guard (47 failing subcases) and test_image_store_d16 (one stale cube-store expectation), covered by tests/semantic: three image test files red on main (stale after #4473 and #6805; LLVM_MC on Windows) #7284. No Python or translator source changed.No PR dependencies. #7364 owns f16_halves string-key parsing; this change only handles numeric values. The pending JSON grammar, underflow, locale and UTF-8 work is separate. Linux/macOS, full runtime/GPU tests and game execution were not run. No translator rule changed.
Checklist