Repository navigation
Conversation
Keep the main and other valid shader indexes available when an optional BVH or FidelityFX index fails to load. Log the affected index and the loader error. AI-assisted with Codex.
devnull34
left a comment
There was a problem hiding this comment.
Verified via Tier 2 Free Cloud (Groq gpt-oss-120b): Populating structured warnings when auxiliary indexes (fspx/index.json or bvh/index.json) are corrupted allows the runtime to provide actionable diagnostics to stderr without failing main shader library initialization.
|
Tested
|
|
Independent build + test: PASS AI-assisted (Claude Code). Windows 11 x64, MSVC 19.44.35220, Ninja RelWithDebInfo. GPU (not used by this test): NVIDIA GeForce RTX 3080 driver 621.24 / 32.0.16.2124. Head
FYI: #8254 and #8256 also change |
|
Tested
So the new test depends on the change. The proof here is compile-level: the new test calls an overload that does not exist without the change. The PR's 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. |
Claimed in the coordination issue as: comment in #8186
Depends on: #7527, #7746 (overlapping edits to the optional index loader; this change can land independently)
What and why
While loading shaders, the Vulkan D3D12 runtime could silently skip an unreadable or malformed optional
bvh/index.jsonorfspx/index.json. The log now identifies the skipped index and why it could not be loaded. An absent optional index remains quiet. The main index and any other usable optional index still load.Tested
shader_libraryon Windows with MSVC 19.51 and Windows SDK 10.0.26100 (RelWithDebInfo). The regression test failed as expected when the warning was suppressed and passed with the fix. The synthetic cases cover malformed BVH and FidelityFX indexes, preservation of valid indexes, and an absent optional index.gta6rt_d3d12_com. Passedd3d12_presentandxbox_presenton an NVIDIA GeForce RTX 4070 SUPER with driver 591.59.git diff --checkandscripts/check_no_game_data.pypassed for the changed files.AI-assisted: yes (Codex).
Checklist