mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-27 00:45:53 +01:00
Labels
No labels
bug
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
starred/leonida#1227
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/ubiquitarianism/leonida/pull/1195
Author: @TimIdle
Created: 11/24/2026
Status: ❌ Closed
Base:
main← Head:oldpr-9955-srv-validation📝 Commits (1)
6fb60a7d3d12: validate CreateShaderResourceView descriptors📊 Changes
3 files changed (+508 additions, -12 deletions)
View changed files
📝
runtime/CMakeLists.txt(+8 -0)📝
runtime/shims/d3d12_vulkan_device.cpp(+41 -12)➕
runtime/test/d3d12_srv_validation_test.cpp(+459 -0)📄 Description
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
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.