d3d12_vulkan_device_test: resource flags 0x200 and 0x400 go by the host's tight-alignment support (TEST-DEVICE-FLAGS-TIGHT-ALIGNMENT) #1222

Closed
MalexAson wants to merge 1 commit from upstream-pr/1222 into main
MalexAson commented 2026-11-24 20:31:00 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by MalexAson on 2026-11-24T20:31:00Z.


Claimed in the coordination issue as: TEST-DEVICE-FLAGS-TIGHT-ALIGNMENT

What and why

d3d12_vulkan_device fails on my PC at argument_mismatches <= 0 after these three lines of compare_invalid_arguments, and everything else in the test matches the host:

invalid arguments committed: resource flag 0x200 on a buffer: ours 0x80070057, host 0x00000000
invalid arguments committed: resource flag 0x400 on a buffer: ours 0x00000000, host 0x80070057
invalid arguments committed: resource flag 0x400 on a texture: ours 0x00000000, host 0x80070057

I first reported this as an Intel host quirk (https://github.com/ubiquitarianism/leonida/issues/14#issuecomment-7142087413). That was wrong for this PC: the Intel Iris Xe, the RTX 4060 Laptop and WARP all answer the same, so it is the D3D12 runtime, D3D12Core.dll 10.0.26100.5074 (Windows 11 24H2, build 26100.6584).

What the flags are, from Microsoft's public headers and specification:

  • 0x400 is D3D12_RESOURCE_FLAG_USE_TIGHT_ALIGNMENT. It first appears in DirectX-Headers v1.618.1 together with D3D12_FEATURE_D3D12_TIGHT_ALIGNMENT (54, one D3D12_TIGHT_ALIGNMENT_TIER); the Windows SDK 10.0.26100 header has neither. DirectX-Specs (d3d/D3D12TightPlacedResourceAlignment.md) lists E_INVALIDARG for the flag when the feature is reported as D3D12_TIGHT_ALIGNMENT_TIER_NOT_SUPPORTED.
  • 0x200 is D3D12_RESOURCE_FLAG_VIDEO_PROCESS_3DLUT_ONLY, named in DirectX-Headers from v1.620.1 on.

What hosts answer. The newer runtimes are the D3D12Core.dll of Microsoft's Agility SDK (NuGet Microsoft.Direct3D.D3D12 1.618.5 and 1.620.2), loaded by a probe and by a local build of this test that opts into them:

Host runtime Adapter Feature 54 0x400, buffer and texture 0x200, buffer
10.0.26100.5074 (in the box) Iris Xe, RTX 4060, WARP E_INVALIDARG refused accepted
1.618.5 and 1.620.2 RTX 4060 Laptop (NVIDIA 621.40) TIER_1 accepted refused
1.618.5 and 1.620.2 Iris Xe (Intel 32.0.101.7092), WARP NOT_SUPPORTED refused refused
The layer E_INVALIDARG accepted refused
  • All of these runtimes have ID3D12Device11 to ID3D12Device14. So ID3D12Device11 on the host, the condition commit 31d279823 gave the two 0x400 cases, does not tell whether the host accepts the flag: the runtime has to know the flag and the driver has to report TIER_1.
  • With the debug layer on, 10.0.26100.5074 says D3D12_RESOURCE_DESC::Flags has unrecognized bits. The value is 0x400, and the unrecognized bits are 0x400.
  • The newer runtimes refuse 0x200 on a buffer because Flags can only have D3D12_RESOURCE_FLAG_VIDEO_PROCESS_3DLUT_ONLY set when D3D12_RESOURCE_DESC::Dimension is D3D12_RESOURCE_DIMENSION_TEXTURE3D (their debug layer), and accept it on a 3D texture. 10.0.26100.5074 accepts it on a buffer and on 2D and 3D textures. The 0x200 case had no condition at all.

The layer's answers to the three cases are those of a newer runtime on a driver with tight alignment, and this pull request does not change the layer.

The change, in runtime/test/d3d12_vulkan_device_test.cpp only:

  • host_tight_alignment: the host answers feature 54 with a tier above NOT_SUPPORTED. The two 0x400 cases are compared on such a host, instead of on one with ID3D12Device11. Windows 10 and Windows 11 23H2, which the old condition was written for, refuse the flag, so they cannot report TIER_1 and stay not comparable.
  • host_knows_tight_alignment: the host answers feature 54 at all, which makes its runtime 1.618 or newer. The 0x200 case is compared on such a host. On an older host the case is now held to the recorded answer instead of the host's; on Windows 10 and 23H2 the two are the same (the case had no condition and the test passed there).
  • Case::recorded: the layer's answer for a case, checked where the host is not comparable. The three cases have one (E_INVALIDARG, S_OK, S_OK). Until now a host that was not comparable checked nothing for a case, and one that happens to answer as a wrong layer does would have hidden it; the first negative control below is that situation.
  • The comment about the five ID3D12Device11 cases now says three.

Tested

main 58be9cdf8 (built at 6293c1c4f; runtime/ is identical between the two), MSVC Build Tools 2026, Ninja, RelWithDebInfo, Windows SDK 10.0.26100.0. The test takes the layer's own adapter as its host, so each line is layer and host on the same GPU unless it says WARP.

Host runtime 10.0.26100.5074 (in the box):

  • Before, LEONIDA_VK_DEVICE=iris and =4060: exit 1, the three lines above, on both.
  • After, on both: exit 0, and the three cases print not comparable on this host (ours ..., host ...). The same with LEONIDA_HOST_ADAPTER=warp.
  • Negative control 1, the layer's answers flipped (committed_resource_refusal takes 0x200 and not 0x400, exactly as this host answers): exit 1 on both GPUs with ours 0x00000000, recorded 0x80070057 (host 0x00000000, not comparable) for 0x200 and ours 0x80070057, recorded 0x00000000 (host 0x80070057, not comparable) for the two 0x400 cases. Without recorded this run passes.
  • Negative control 2, the two host conditions forced to true: exit 1 on both GPUs with the three original lines.

Host runtime 1.618.5 (the test built locally with D3D12SDKVersion / D3D12SDKPath exports appended; not part of this pull request). Every run on this runtime also prints two lines that this change neither causes nor touches, resource flag RAYTRACING_ACCELERATION_STRUCTURE on a buffer / on a texture: ours 0x00000000, host 0x80070057 (the newer runtime wants ALLOW_UNORDERED_ACCESS with that flag), so the exit code is 1 throughout. That is a separate matter and not part of this change. For the three cases of this pull request:

  • Before: on the RTX 4060 (TIER_1) they agree with the host. On the Iris Xe and with WARP as host (NOT_SUPPORTED) the two 0x400 cases fail, ours 0x00000000, host 0x80070057. So the old condition also fails on a current runtime wherever the driver has no tight alignment.
  • After: on the RTX 4060 the three cases are compared and equal (no line). On the Iris Xe and with WARP as host the two 0x400 cases print not comparable, and 0x200 is compared and equal.
  • Negative control on the compared path, the layer's answers flipped as above: on the RTX 4060 the three cases fail as compared cases (0x200 on a buffer: ours 0x00000000, host 0x80070057, 0x400 ...: ours 0x80070057, host 0x00000000 twice); on the Iris Xe 0x200 fails as a compared case and the two 0x400 cases through recorded.

Host runtime 1.620.2: the probe gets the same answers as on 1.618.5 for the three cases on all three adapters. The test itself stops earlier there, at allocation_mismatches (among others a resource flag 0x1000 that this runtime accepts), which is also unrelated to this change.

  • python -I scripts/check_no_game_data.py runtime/test/d3d12_vulkan_device_test.cpp: clean.
  • Not run: the whole ctest (only this test was built), an up-to-date in-box Windows 11 runtime, Windows 10, Windows 11 23H2, AMD, Linux and Wine (the comparison is skipped without a Microsoft host).

GPUs tested: Intel Iris Xe (Raptor Lake-P, 8086:a7a0), Intel 32.0.101.7092, Windows 11 build 26100.6584; NVIDIA GeForce RTX 4060 Laptop GPU, NVIDIA 621.40, Windows 11 build 26100.6584

AI-assisted: yes (Claude Code)

Checklist

  • Based on current main and merges cleanly (a conflicting pull request is labeled needs rebase).
  • One topic; follow-up work goes in a new pull request.
  • No game data, keys or decryption (CONTRIBUTING.md), including in logs or reports quoted here.
  • A new translator rule is in the contract table of docs/design.md, with how it was confirmed. (not a translator change)

🤖 Generated with Claude Code

<!-- greyfinch-sync:ubiquitarianism/leonida:issue:5479831279 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/1222). Originally posted by [MalexAson](https://github.com/MalexAson) on 2026-11-24T20:31:00Z. --- Claimed in the coordination issue as: TEST-DEVICE-FLAGS-TIGHT-ALIGNMENT ### What and why `d3d12_vulkan_device` fails on my PC at `argument_mismatches <= 0` after these three lines of `compare_invalid_arguments`, and everything else in the test matches the host: invalid arguments committed: resource flag 0x200 on a buffer: ours 0x80070057, host 0x00000000 invalid arguments committed: resource flag 0x400 on a buffer: ours 0x00000000, host 0x80070057 invalid arguments committed: resource flag 0x400 on a texture: ours 0x00000000, host 0x80070057 I first reported this as an Intel host quirk (https://github.com/ubiquitarianism/leonida/issues/14#issuecomment-7142087413). That was wrong for this PC: the Intel Iris Xe, the RTX 4060 Laptop and WARP all answer the same, so it is the D3D12 runtime, `D3D12Core.dll` 10.0.26100.5074 (Windows 11 24H2, build 26100.6584). What the flags are, from Microsoft's public headers and specification: - 0x400 is `D3D12_RESOURCE_FLAG_USE_TIGHT_ALIGNMENT`. It first appears in DirectX-Headers v1.618.1 together with `D3D12_FEATURE_D3D12_TIGHT_ALIGNMENT` (54, one `D3D12_TIGHT_ALIGNMENT_TIER`); the Windows SDK 10.0.26100 header has neither. DirectX-Specs (`d3d/D3D12TightPlacedResourceAlignment.md`) lists `E_INVALIDARG` for the flag when the feature is reported as `D3D12_TIGHT_ALIGNMENT_TIER_NOT_SUPPORTED`. - 0x200 is `D3D12_RESOURCE_FLAG_VIDEO_PROCESS_3DLUT_ONLY`, named in DirectX-Headers from v1.620.1 on. What hosts answer. The newer runtimes are the `D3D12Core.dll` of Microsoft's Agility SDK (NuGet `Microsoft.Direct3D.D3D12` 1.618.5 and 1.620.2), loaded by a probe and by a local build of this test that opts into them: | Host runtime | Adapter | Feature 54 | 0x400, buffer and texture | 0x200, buffer | |---|---|---|---|---| | 10.0.26100.5074 (in the box) | Iris Xe, RTX 4060, WARP | `E_INVALIDARG` | refused | accepted | | 1.618.5 and 1.620.2 | RTX 4060 Laptop (NVIDIA 621.40) | `TIER_1` | accepted | refused | | 1.618.5 and 1.620.2 | Iris Xe (Intel 32.0.101.7092), WARP | `NOT_SUPPORTED` | refused | refused | | The layer | | `E_INVALIDARG` | accepted | refused | - All of these runtimes have `ID3D12Device11` to `ID3D12Device14`. So `ID3D12Device11` on the host, the condition commit 31d279823 gave the two 0x400 cases, does not tell whether the host accepts the flag: the runtime has to know the flag and the driver has to report `TIER_1`. - With the debug layer on, 10.0.26100.5074 says `D3D12_RESOURCE_DESC::Flags has unrecognized bits. The value is 0x400, and the unrecognized bits are 0x400.` - The newer runtimes refuse 0x200 on a buffer because `Flags can only have D3D12_RESOURCE_FLAG_VIDEO_PROCESS_3DLUT_ONLY set when D3D12_RESOURCE_DESC::Dimension is D3D12_RESOURCE_DIMENSION_TEXTURE3D` (their debug layer), and accept it on a 3D texture. 10.0.26100.5074 accepts it on a buffer and on 2D and 3D textures. The 0x200 case had no condition at all. The layer's answers to the three cases are those of a newer runtime on a driver with tight alignment, and this pull request does not change the layer. The change, in `runtime/test/d3d12_vulkan_device_test.cpp` only: - `host_tight_alignment`: the host answers feature 54 with a tier above `NOT_SUPPORTED`. The two 0x400 cases are compared on such a host, instead of on one with `ID3D12Device11`. Windows 10 and Windows 11 23H2, which the old condition was written for, refuse the flag, so they cannot report `TIER_1` and stay not comparable. - `host_knows_tight_alignment`: the host answers feature 54 at all, which makes its runtime 1.618 or newer. The 0x200 case is compared on such a host. On an older host the case is now held to the recorded answer instead of the host's; on Windows 10 and 23H2 the two are the same (the case had no condition and the test passed there). - `Case::recorded`: the layer's answer for a case, checked where the host is not comparable. The three cases have one (`E_INVALIDARG`, `S_OK`, `S_OK`). Until now a host that was not comparable checked nothing for a case, and one that happens to answer as a wrong layer does would have hidden it; the first negative control below is that situation. - The comment about the five `ID3D12Device11` cases now says three. ### Tested `main` 58be9cdf8 (built at 6293c1c4f; `runtime/` is identical between the two), MSVC Build Tools 2026, Ninja, RelWithDebInfo, Windows SDK 10.0.26100.0. The test takes the layer's own adapter as its host, so each line is layer and host on the same GPU unless it says WARP. Host runtime 10.0.26100.5074 (in the box): - Before, `LEONIDA_VK_DEVICE=iris` and `=4060`: exit 1, the three lines above, on both. - After, on both: exit 0, and the three cases print `not comparable on this host (ours ..., host ...)`. The same with `LEONIDA_HOST_ADAPTER=warp`. - Negative control 1, the layer's answers flipped (`committed_resource_refusal` takes 0x200 and not 0x400, exactly as this host answers): exit 1 on both GPUs with `ours 0x00000000, recorded 0x80070057 (host 0x00000000, not comparable)` for 0x200 and `ours 0x80070057, recorded 0x00000000 (host 0x80070057, not comparable)` for the two 0x400 cases. Without `recorded` this run passes. - Negative control 2, the two host conditions forced to true: exit 1 on both GPUs with the three original lines. Host runtime 1.618.5 (the test built locally with `D3D12SDKVersion` / `D3D12SDKPath` exports appended; not part of this pull request). Every run on this runtime also prints two lines that this change neither causes nor touches, `resource flag RAYTRACING_ACCELERATION_STRUCTURE on a buffer` / `on a texture: ours 0x00000000, host 0x80070057` (the newer runtime wants `ALLOW_UNORDERED_ACCESS` with that flag), so the exit code is 1 throughout. That is a separate matter and not part of this change. For the three cases of this pull request: - Before: on the RTX 4060 (`TIER_1`) they agree with the host. On the Iris Xe and with WARP as host (`NOT_SUPPORTED`) the two 0x400 cases fail, `ours 0x00000000, host 0x80070057`. So the old condition also fails on a current runtime wherever the driver has no tight alignment. - After: on the RTX 4060 the three cases are compared and equal (no line). On the Iris Xe and with WARP as host the two 0x400 cases print `not comparable`, and 0x200 is compared and equal. - Negative control on the compared path, the layer's answers flipped as above: on the RTX 4060 the three cases fail as compared cases (`0x200 on a buffer: ours 0x00000000, host 0x80070057`, `0x400 ...: ours 0x80070057, host 0x00000000` twice); on the Iris Xe 0x200 fails as a compared case and the two 0x400 cases through `recorded`. Host runtime 1.620.2: the probe gets the same answers as on 1.618.5 for the three cases on all three adapters. The test itself stops earlier there, at `allocation_mismatches` (among others a resource flag 0x1000 that this runtime accepts), which is also unrelated to this change. - `python -I scripts/check_no_game_data.py runtime/test/d3d12_vulkan_device_test.cpp`: clean. - Not run: the whole `ctest` (only this test was built), an up-to-date in-box Windows 11 runtime, Windows 10, Windows 11 23H2, AMD, Linux and Wine (the comparison is skipped without a Microsoft host). GPUs tested: Intel Iris Xe (Raptor Lake-P, 8086:a7a0), Intel 32.0.101.7092, Windows 11 build 26100.6584; NVIDIA GeForce RTX 4060 Laptop GPU, NVIDIA 621.40, Windows 11 build 26100.6584 AI-assisted: yes (Claude Code) ### Checklist - [x] Based on current `main` and merges cleanly (a conflicting pull request is labeled `needs rebase`). - [x] One topic; follow-up work goes in a new pull request. - [x] No game data, keys or decryption (CONTRIBUTING.md), including in logs or reports quoted here. - [ ] A new translator rule is in the contract table of `docs/design.md`, with how it was confirmed. (not a translator change) 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Snooozs commented 2026-11-24 21:29:32 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by Snooozs on 2026-11-24T21:29:32Z.


Read the whole diff and tested 8c73655a9 merged on main 6261ca916 (clean): Windows 10 Pro 22H2 build 19045, VS 2022 RelWithDebInfo, LEONIDA_VK_VALIDATION=1.

  • RTX 5060 Ti (NVIDIA 621.01): d3d12_vulkan_device exits 0 on main and with this PR, 0 VUID lines. Both 0x400 cases stay "not comparable on this host (ours 0x00000000, host 0x80070057)" and the recorded values hold. So a host without tight alignment behaves as your table says for 0x400.
  • 0x200 on a buffer: no difference is reported here, so Windows 10's runtime refuses it, unlike 10.0.26100.5074.
  • Ryzen 7 7700 iGPU (AMD 31.0.22044.1): exits 1 with and without this PR; the 0x400 lines are the same.

I did not run a mutated layer to see the recorded check go red.

AI-assisted (Claude Code, Claude Opus 5.5).

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7145000649 --> Imported from [ubiquitarianism/leonida](https://github.com/ubiquitarianism/leonida/pull/1222#issuecomment-7145000649). Originally posted by [Snooozs](https://github.com/Snooozs) on 2026-11-24T21:29:32Z. --- Read the whole diff and tested `8c73655a9` merged on main `6261ca916` (clean): Windows 10 Pro 22H2 build 19045, VS 2022 RelWithDebInfo, `LEONIDA_VK_VALIDATION=1`. - RTX 5060 Ti (NVIDIA 621.01): `d3d12_vulkan_device` exits 0 on main and with this PR, 0 VUID lines. Both 0x400 cases stay "not comparable on this host (ours 0x00000000, host 0x80070057)" and the recorded values hold. So a host without tight alignment behaves as your table says for 0x400. - 0x200 on a buffer: no difference is reported here, so Windows 10's runtime refuses it, unlike 10.0.26100.5074. - Ryzen 7 7700 iGPU (AMD 31.0.22044.1): exits 1 with and without this PR; the 0x400 lines are the same. I did not run a mutated layer to see the recorded check go red. AI-assisted (Claude Code, Claude Opus 5.5).
potatoe0100 commented 2026-11-25 10:07:07 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by potatoe0100 on 2026-11-25T10:07:07Z.


Tested 8c73655a9 merged onto main 57ba40bd6 (clean), native Windows 11 Pro 26H2 (build 26300, D3D12Core.dll 10.0.26100.9818), NVIDIA GeForce RTX 4060, driver 621.14, VS 2022 RelWithDebInfo + Ninja.

  • d3d12_vulkan_device: passes on main and with this PR (exit 0). No resource flag 0x200 / 0x400 lines on either, so this runtime and driver agree with the layer on all three cases; the rest of the output is identical apart from pointer values.

AI-assisted testing (non-developer tester).

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7159249431 --> Imported from [ubiquitarianism/leonida](https://github.com/ubiquitarianism/leonida/pull/1222#issuecomment-7159249431). Originally posted by [potatoe0100](https://github.com/potatoe0100) on 2026-11-25T10:07:07Z. --- Tested `8c73655a9` merged onto `main` `57ba40bd6` (clean), native Windows 11 Pro 26H2 (build 26300, `D3D12Core.dll` 10.0.26100.9818), NVIDIA GeForce RTX 4060, driver 621.14, VS 2022 RelWithDebInfo + Ninja. - `d3d12_vulkan_device`: passes on `main` and with this PR (exit 0). No `resource flag 0x200` / `0x400` lines on either, so this runtime and driver agree with the layer on all three cases; the rest of the output is identical apart from pointer values. AI-assisted testing (non-developer tester).
zmasi commented 2026-11-29 02:08:50 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by zmasi on 2026-11-29T02:08:50Z.


Windows 11 + RTX 3090 Verification (8c73655a93 merged with main 791899f652) — PASS

  • Environment: Windows 11 (10.0.26200, in-box D3D12Core.dll 10.0.26100.9818), MSVC 19.44.35207 (/O2 /MD /EHsc /std:c++20 /W4 /permissive- /utf-8), NVIDIA GeForce RTX 3090 (610.88) + Microsoft WARP + VK_LAYER_KHRONOS_validation 1.4.363.1 (LEONIDA_VK_VALIDATION=1).
  • Merge & Hygiene: Clean git merge-tree onto main (791899f652) (0 conflicts); python -I scripts/check_no_game_data.py rc=0; 0 new /W4 warnings.
  • New In-Box Servicing Runtime Data Point (D3D12Core.dll 10.0.26100.9818):
    • Unlike 10.0.26100.5074 (where D3D12_FEATURE(54) returned E_INVALIDARG and 0x200 on a buffer succeeded), Windows 11's newer servicing D3D12Core.dll 10.0.26100.9818 returns CheckFeatureSupport(D3D12_FEATURE(54)) = 0x00000000 (S_OK, tier = 0 NOT_SUPPORTED), refuses 0x200 (VIDEO_PROCESS_3DLUT_ONLY) on a buffer (0x80070057 E_INVALIDARG), and accepts 0x400 (0x00000000 S_OK) on both RTX 3090 (610.88) and WARP.
    • Because #1222 splits host_knows_tight_alignment (0x200, true on 26100.9818) from host_tight_alignment (0x400, false when tier == 0, verified against recorded = S_OK), unmodified d3d12_vulkan_device_test.exe passes cleanly on 26100.9818 + RTX 3090 (rc=0, 0 mismatches, 0 VUID- validation errors).
  • Red -> Green (26100.5074-style pre-tight-alignment ID3D12Device11 host & recorded guard):
    • Red (main against a 26100.5074-style host where feat54 = E_INVALIDARG, 0x200 buffer = S_OK, 0x400 buffer/texture = E_INVALIDARG): fails with rc=1 on all 3 cases (0x200 on a buffer, 0x400 on a buffer, 0x400 on a texture).
    • Green (8c73655a93 against the same 26100.5074-style host): passes with rc=0, logging not comparable on this host on all 3 cases while verifying ours == *c.recorded; mutating 0x200's recorded expected HRESULT to S_OK when !comparable fails as intended (rc=1, ours 0x80070057, recorded 0x00000000 (host 0x00000000, not comparable)).

AI-assisted.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7249239242 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/1222#issuecomment-7249239242). Originally posted by [zmasi](https://github.com/zmasi) on 2026-11-29T02:08:50Z. --- ### Windows 11 + RTX 3090 Verification (`8c73655a93` merged with `main` `791899f652`) — PASS - **Environment**: Windows 11 (`10.0.26200`, in-box `D3D12Core.dll` `10.0.26100.9818`), MSVC `19.44.35207` (`/O2 /MD /EHsc /std:c++20 /W4 /permissive- /utf-8`), **NVIDIA GeForce RTX 3090** (`610.88`) + Microsoft WARP + `VK_LAYER_KHRONOS_validation` `1.4.363.1` (`LEONIDA_VK_VALIDATION=1`). - **Merge & Hygiene**: Clean `git merge-tree` onto `main` (`791899f652`) (`0` conflicts); `python -I scripts/check_no_game_data.py` `rc=0`; `0` new `/W4` warnings. - **New In-Box Servicing Runtime Data Point (`D3D12Core.dll` `10.0.26100.9818`)**: - Unlike `10.0.26100.5074` (where `D3D12_FEATURE(54)` returned `E_INVALIDARG` and `0x200` on a buffer succeeded), Windows 11's newer servicing `D3D12Core.dll` `10.0.26100.9818` returns `CheckFeatureSupport(D3D12_FEATURE(54)) = 0x00000000` (`S_OK`, `tier = 0` `NOT_SUPPORTED`), refuses `0x200` (`VIDEO_PROCESS_3DLUT_ONLY`) on a buffer (`0x80070057` `E_INVALIDARG`), and accepts `0x400` (`0x00000000` `S_OK`) on both RTX 3090 (`610.88`) and WARP. - Because `#1222` splits `host_knows_tight_alignment` (`0x200`, `true` on `26100.9818`) from `host_tight_alignment` (`0x400`, `false` when `tier == 0`, verified against `recorded = S_OK`), unmodified `d3d12_vulkan_device_test.exe` passes cleanly on `26100.9818` + RTX 3090 (`rc=0`, `0` mismatches, `0` `VUID-` validation errors). - **Red -> Green (`26100.5074`-style pre-tight-alignment `ID3D12Device11` host & `recorded` guard)**: - **Red (`main` against a `26100.5074`-style host where `feat54 = E_INVALIDARG`, `0x200` buffer `= S_OK`, `0x400` buffer/texture `= E_INVALIDARG`)**: fails with `rc=1` on all 3 cases (`0x200 on a buffer`, `0x400 on a buffer`, `0x400 on a texture`). - **Green (`8c73655a93` against the same `26100.5074`-style host)**: passes with `rc=0`, logging `not comparable on this host` on all 3 cases while verifying `ours == *c.recorded`; mutating `0x200`'s `recorded` expected `HRESULT` to `S_OK` when `!comparable` fails as intended (`rc=1`, `ours 0x80070057, recorded 0x00000000 (host 0x00000000, not comparable)`). AI-assisted.
enlight3d commented 2026-11-29 08:58:34 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by enlight3d on 2026-11-29T08:58:34Z.


Validation run of this pull request.

  • PR head: 8c73655a93. main: 54b2a81e95. Merged cleanly (git merge --no-edit --no-ff pr-1222, no conflicts); tested at the merge commit. The PR changes only runtime/test/d3d12_vulkan_device_test.cpp.
  • Commands:
    • cmake -S runtime -B runtime/build -G Ninja -DCMAKE_BUILD_TYPE=RelWithDebInfo -DLEONIDA_REQUIRE_VULKAN=ON
    • cmake --build runtime/build --target gta6rt d3d12_vulkan_device_test -j 8
    • ctest -R "^d3d12_vulkan_device$" --output-on-failure -j1 (once on plain main, once on the merge)
  • Green (merged): d3d12_vulkan_device passed. Run with ctest -V, no resource flag 0x200 or 0x400 mismatch lines are printed; the only not comparable line is the RAYTRACING_ACCELERATION_STRUCTURE one the PR leaves alone.
  • Red: none on this machine. The test also passes on plain main here (in-box D3D12Core 10.0.26100.9549, RTX 3090 on NVIDIA 621.40), so the three mismatches the PR describes do not occur on this host and no failing state could be observed. Nothing was invented: this run shows no regression and does not exercise the fix.
  • Link: no new imports vs main (gta6rt.exe, 714 imports, identical lists).
  • Machine: RTX 3090 24 GB, NVIDIA 621.40, Windows 11 Pro 10.0.26300, MSVC 19.44.
<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7253452993 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/1222#issuecomment-7253452993). Originally posted by [enlight3d](https://github.com/enlight3d) on 2026-11-29T08:58:34Z. --- Validation run of this pull request. - PR head: 8c73655a93d9ab9b3cb49334328b1f7611ccbd94. main: 54b2a81e95c470c953ddee6177fd6255cbaf041d. Merged cleanly (`git merge --no-edit --no-ff pr-1222`, no conflicts); tested at the merge commit. The PR changes only `runtime/test/d3d12_vulkan_device_test.cpp`. - Commands: - `cmake -S runtime -B runtime/build -G Ninja -DCMAKE_BUILD_TYPE=RelWithDebInfo -DLEONIDA_REQUIRE_VULKAN=ON` - `cmake --build runtime/build --target gta6rt d3d12_vulkan_device_test -j 8` - `ctest -R "^d3d12_vulkan_device$" --output-on-failure -j1` (once on plain main, once on the merge) - Green (merged): `d3d12_vulkan_device` passed. Run with `ctest -V`, no `resource flag 0x200` or `0x400` mismatch lines are printed; the only `not comparable` line is the RAYTRACING_ACCELERATION_STRUCTURE one the PR leaves alone. - Red: none on this machine. The test also passes on plain main here (in-box D3D12Core 10.0.26100.9549, RTX 3090 on NVIDIA 621.40), so the three mismatches the PR describes do not occur on this host and no failing state could be observed. Nothing was invented: this run shows no regression and does not exercise the fix. - Link: no new imports vs main (gta6rt.exe, 714 imports, identical lists). - Machine: RTX 3090 24 GB, NVIDIA 621.40, Windows 11 Pro 10.0.26300, MSVC 19.44.
aslan2142 commented 2026-12-01 16:33:59 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by aslan2142 on 2026-12-01T16:33:59Z.


Closing this PR because the legacy C++ Vulkan runtime (and legacy Python shader compiler) is now considered deprecated in favor of the new Rust Vulkan runtime (in progress) and the Rust DX12 runtime (d3d12/) available now. Thank you for the contribution! If you believe this PR was closed by mistake (for example, if it still applies to active tools, d3d12/, or general docs), please feel free to reopen it.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7317817992 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/1222#issuecomment-7317817992). Originally posted by [aslan2142](https://github.com/aslan2142) on 2026-12-01T16:33:59Z. --- Closing this PR because the legacy C++ Vulkan runtime (and legacy Python shader compiler) is now considered deprecated in favor of the new Rust Vulkan runtime (in progress) and the Rust DX12 runtime (`d3d12/`) available now. Thank you for the contribution! If you believe this PR was closed by mistake (for example, if it still applies to active tools, `d3d12/`, or general docs), please feel free to reopen it.

Pull request closed

Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
ProjectLeonida/mandy!1222
No description provided.