diff options
| author | thibaut <thibaut-leaux-angeli@live.fr> | 2026-11-23 22:29:53 +0100 |
|---|---|---|
| committer | thibaut <thibaut-leaux-angeli@live.fr> | 2026-11-23 22:29:53 +0100 |
| commit | 3644c72a57bda2bc06d473285a7708670653b465 (patch) | |
| tree | 0842218a3f75724193e85a95a27dabbcae598b1d /runtime/src/tls_host.cpp | |
| parent | 1d4d2952e8d0d66152282e272d719e6d56ac6049 (diff) | |
d3d12: slot-133 texture layouts are validated; an import reaching the arena's VA window takes the fallback
From review (@FRaccie):
- The texture fallback called create_committed, which takes the state without checking it (textures start
undefined and take their first command's layout), so the barrier-layout state and its COMMON retry did
nothing. It now goes through create_committed_validated, as CreateCommittedResource does: RENDER_TARGET on a
texture without ALLOW_RENDER_TARGET is refused and the COMMON retry answers; a description the checks refuse
outright is refused.
- An imported buffer's VA is its host address, in the same BufferVaIndex as default-heap buffers, whose VAs are
offsets in [0, arena size). A host address inside that window (low addresses, as under Wine) would shadow arena
buffers in the nearest-start lookup, so such a range is not imported and the fallback answers.
d3d12_existing_heap_test checks the two texture cases.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'runtime/src/tls_host.cpp')
0 files changed, 0 insertions, 0 deletions