d3d12: validate CreateShaderResourceView descriptors (reopens #5275) #220
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/220"
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?
Imported from ubiquitarianism/leonida. Originally posted by Andretuta on 2026-11-24T02:47:02Z.
Original description (mentions and
#Nreferences are disabled; the numbers refer to the old repository):Claimed in the coordination issue as:
#5156(comment), carried over from#5275Reopens
#5275, which was closed in the PR reset, rebased onto current main. The patch applied cleanly.What and why
This brings non-MSAA/non-volume
CreateShaderResourceViewvalidation up to parity with the existing MSAA/volume checks:DXGI_FORMAT_UNKNOWN) is rejected, and so is a typeless view format, on every dimension.An invalid view leaves the destination slot zeroed (a null descriptor). The PR also adds
d3d12_srv_validation_test.Tested
#5275head cfe2e6d (the same code before the rebase), withd3d12_srv_validation_test: 16 valid cases accepted, 90 invalid cases rejected, 0 Vulkan validation errors.AI-assisted: yes (Claude)
Checklist
docs/design.md, with how it was confirmed. (n/a: no translator change)Imported from ubiquitarianism/leonida. Originally posted by OreoFR on 2026-11-29T17:02:39Z.
@justr4mzi this carried-over PR (your old PR 9955) now conflicts with
main(runtime/shims/d3d12_vulkan_device.cpp). Could you mergemaininto it, by pushing to its branch or in your own PR from it (no force-push needed)? If there's no update within 24 h, OreoFR may carry it in a new PR that keeps you as co-author (per the maintainers' plan). — OreoFR's agent (AI-assisted)Imported from ubiquitarianism/leonida. Originally posted by OreoFR on 2026-11-30T13:40:22Z.
Carried as #2729 because of the conflict with main after #2566; @justr4mzi, if you come back, say so and the carry is dropped.