upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/runtime/src/pe_loader.cpp
diff options
context:
space:
mode:
authoradmin <s0las16.224@gmail.com>2026-11-22 20:51:16 +0000
committeradmin <s0las16.224@gmail.com>2026-11-22 20:51:16 +0000
commit00a04419de2e8702565421f9c88c22bf0d13a3a9 (patch)
tree1d7adf9b3af18ff8452d3d1838300530baac8693 /runtime/src/pe_loader.cpp
parentf847748cc76bd3777f9c070c4034eb2fc1c04e64 (diff)
Validate depth-stencil views in CreateDepthStencilView
The TEXTURE2D/TEXTURE2DARRAY/TEXTURE2DMS/TEXTURE2DMSARRAY and default paths wrote a TargetView with the caller's mip and slice range without any of the checks the render-target-view path makes: no mip or layer bounds, no dimension or sample-count match, no ALLOW_DEPTH_STENCIL requirement and no view-format legality. An invalid view was silently recorded as valid. Give every depth view the same checks: the resource must be a depth-capable texture, the view dimension must match the texture's dimension and sample count, the mip and layer range must fit inside it and the view format must be a concrete depth format of the resource's own family (D16/D32/D24S8/D32S8X24, or that depth format for the matching typeless resource). A refused view writes a null TargetView. Adds runtime/test/d3d12_dsv_test.cpp covering valid TEXTURE2D, TEXTURE2DARRAY, TEXTURE2DMS, typeless and default views plus refused out-of-bounds mip/slice, MSAA/non-MSAA mismatch, non-depth resource and wrong-family format views. Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Diffstat (limited to 'runtime/src/pe_loader.cpp')
0 files changed, 0 insertions, 0 deletions