diff options
| author | Kevin Morales <32549527+kmorales13@users.noreply.github.com> | 2026-11-22 14:17:49 -0700 |
|---|---|---|
| committer | Kevin Morales <32549527+kmorales13@users.noreply.github.com> | 2026-11-22 20:40:59 -0700 |
| commit | b136ee4680c4a04c44653da4325d83cee130fbfe (patch) | |
| tree | 1b47a7d388f66c31e26d5208cb0102bc91e7577e /docs/testing.md | |
| parent | 7b7d73f890f9fbbf5967bbb694390bbc99e33ba6 (diff) | |
Tests: check Microsoft's recorded answers where Wine and Proton have no reference
Under Wine the host D3D12 is vkd3d and under Proton vkd3d-proton, and
Proton's EnumWarpAdapter returns the hardware adapter, so the host and
WARP references six tests compare with are not Microsoft's runtime:
d3d12_r9g9b9e5_uav, d3d12_method_variants and d3d12_sampler2 fail under
Proton (the last two crash inside vkd3d-proton), d3d12_fence_timing and
d3d12_subresource_copy under both, d3d12_private_data under Wine.
The six skip the host comparison there with hostwine::host_is_wine() and
check the layer against Microsoft's answers recorded in the test instead,
so Wine and Proton still check values. d3d12_r9g9b9e5_uav gets WARP's
words for its six clear cases, from the packing rule in
docs/d3d12_vulkan.md. d3d12_subresource_copy and d3d12_private_data get
answer tables, taken from the records that Windows runs on NVIDIA and AMD
compared with Microsoft's runtime with no mismatches; LEONIDA_D3D49_DUMP=1
prints the host's record on Windows to regenerate them. The other three
already had recorded answers. Windows still compares with the live
runtime too.
Diffstat (limited to 'docs/testing.md')
| -rw-r--r-- | docs/testing.md | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/docs/testing.md b/docs/testing.md index 279eab0b2..5c5406102 100644 --- a/docs/testing.md +++ b/docs/testing.md | |||
| @@ -189,8 +189,13 @@ For Proton, start any program once with `proton run` (with `STEAM_COMPAT_DATA_PA | |||
| 189 | `WINEPREFIX=$STEAM_COMPAT_DATA_PATH/pfx WINEDLLOVERRIDES="d3d12=n;d3d12core=n;dxgi=n"`. `proton run` itself doesn't | 189 | `WINEPREFIX=$STEAM_COMPAT_DATA_PATH/pfx WINEDLLOVERRIDES="d3d12=n;d3d12core=n;dxgi=n"`. `proton run` itself doesn't |
| 190 | pass the program's output on, so the tests can't run through it. | 190 | pass the program's output on, so the tests can't run through it. |
| 191 | 191 | ||
| 192 | The tests that compare with the host's D3D12 (`root_sig_test`, `root_sig`, `device_proxy`, `d3d12_vulkan_device`) | 192 | The host's D3D12 here is Wine's vkd3d or vkd3d-proton, not Microsoft's runtime, and Proton's `EnumWarpAdapter` |
| 193 | check against Wine's vkd3d or vkd3d-proton here, not Microsoft's runtime, so some of them fail for that reason. | 193 | returns the hardware adapter, so "WARP" is vkd3d-proton on the GPU. Most tests that compare with the host or WARP |
| 194 | skip that comparison under Wine and Proton (`runtime/test/host_wine.h`), and most of them still check the layer | ||
| 195 | against Microsoft's answers recorded in the test (`d3d12_subresource_copy` and `d3d12_private_data` keep theirs in | ||
| 196 | `d3d12_subresource_copy_answers.h` and `d3d12_private_data_answers.h`). | ||
| 197 | A few still compare with the host (`root_sig`, `device_proxy`, and some of `d3d12_vulkan_device`'s cases), so some | ||
| 198 | of those fail for that reason. | ||
| 194 | 199 | ||
| 195 | ## GPUs with 32-wide subgroups (NVIDIA, Intel, Apple) | 200 | ## GPUs with 32-wide subgroups (NVIDIA, Intel, Apple) |
| 196 | 201 | ||