Repository navigation
Conversation
|
Recommendation: [WAIT] Reasoning: Carries #220: Impact level: 5/10 |
503d0c7 to
25e3bce
Compare
|
Rebased onto |
Reopened from #5275 (closed in the PR reset), rebased on current main. Brings non-MSAA/non-volume SRV validation to parity with the MSAA/volume checks: Shader4ComponentMapping (bit 12 and the four selectors) on every texture and buffer SRV, negative or NaN ResourceMinLODClamp, typeless resource/view formats outside depth/stencil, finite MipLevels/ArraySize bounds on every dimension, and the TextureCubeArray NumCubes overflow. An invalid view leaves the destination slot zeroed. Adds d3d12_srv_validation_test.
25e3bce to
6fb60a7
Compare
|
Rebased onto |
|
Closing this one, no review yet and CI is red. Will reopen if it is still needed. |
Claimed in the coordination issue as: OLD-9955 (claim)
What and why
This carries forward
old-pr/9955by @justr4mzi (draft #220). The commit is cherry-picked ontomainunchanged, with the author kept.CreateShaderResourceViewonmainwrites a descriptor for some views the D3D12 runtime refuses. The layer now refuses them too, inimage_descriptor(runtime/shims/d3d12_vulkan_device.cpp):FORCE_VALUE_1, for every view (before, only multisample views were checked)ResourceMinLODClampthat is negative or NaNDXGI_FORMAT_UNKNOWNon a typeless textureruntime/test/d3d12_srv_validation_test.cppcompares the layer with the host D3D12 runtime case by case.Tested
Native Windows 11 10.0.26300, MSVC 19.44, RelWithDebInfo,
LEONIDA_REQUIRE_VULKAN=ON, onmain42537e7plus the commit.d3d12_srv_validation_testwith the fix16 valid cases accepted, 90 invalid cases rejected (0 validation errors)d3d12_srv_validation_testwithmain'sd3d12_vulkan_device.cppline 305: expect_null_srv(tex1d.p, &bad)ctest -j 6gameinputandgameinput_scriptdisabled.GPUs tested: NVIDIA GeForce RTX 2050 (Ampere GA107, laptop), driver 621.24, Windows 11
AI-assisted: yes (Claude Code)
Checklist
mainand merges cleanly (a conflicting pull request is labeledneeds rebase).docs/design.md, with how it was confirmed. (No translator rule here.)🤖 Generated with Claude Code