diff options
| author | TreXito <81475944+TreXito@users.noreply.github.com> | 2026-11-23 16:10:41 +0000 |
|---|---|---|
| committer | TreXito <81475944+TreXito@users.noreply.github.com> | 2026-11-23 16:10:41 +0000 |
| commit | fc7d1f514d9d73c7366336c1e7adbdf5c689dfa0 (patch) | |
| tree | e46dc95057c9b935804d172c132e5ea4976a373d /docs/testing.md | |
| parent | 279898ee6ce736d77e03ca81eeeacde31f4f4f9f (diff) | |
| parent | 8575d36edc479218972497a7bded8651a42856c0 (diff) | |
Merge origin/main into test/877b-shader-programs-validation
Conflicts in vk_store_test.cpp and vk_texture_test.cpp: both new includes (vk_validation.h and spirv_capability.h) are kept.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'docs/testing.md')
| -rw-r--r-- | docs/testing.md | 73 |
1 files changed, 71 insertions, 2 deletions
diff --git a/docs/testing.md b/docs/testing.md index 3cbbd2ccc..7a1df3308 100644 --- a/docs/testing.md +++ b/docs/testing.md | |||
| @@ -100,6 +100,14 @@ Actions -> Runtime, and check out the commit it built, or start a run of the com | |||
| 100 | python -I scripts/run_gpu_tests.py --build <unzipped runtime-windows> | 100 | python -I scripts/run_gpu_tests.py --build <unzipped runtime-windows> |
| 101 | ``` | 101 | ``` |
| 102 | 102 | ||
| 103 | If you also have neither `llvm-mc` nor SPIRV-Tools (`spirv-as` / `spirv-val`) installed, `--disasm-dir` runs the | ||
| 104 | pre-disassembled subset in `tests/semantic/fixtures/disasm` and `--assembler python` (the default under `auto` when | ||
| 105 | `spirv-as` is absent) assembles SPIR-V with `tools/spirv_asm.py`: | ||
| 106 | |||
| 107 | ```sh | ||
| 108 | python -I scripts/run_gpu_tests.py --build <unzipped runtime-windows> --disasm-dir tests/semantic/fixtures/disasm --assembler python | ||
| 109 | ``` | ||
| 110 | |||
| 103 | `build.py` and `check.py` take the same folder as their second argument: | 111 | `build.py` and `check.py` take the same folder as their second argument: |
| 104 | 112 | ||
| 105 | ```sh | 113 | ```sh |
| @@ -109,6 +117,22 @@ python -I runtime/test/shaders/check.py <out dir> <unzipped runtime-windows> | |||
| 109 | 117 | ||
| 110 | The artifact belongs to the commit that built it, so run the scripts from that commit as well (see the note above). | 118 | The artifact belongs to the commit that built it, so run the scripts from that commit as well (see the note above). |
| 111 | 119 | ||
| 120 | #### Run one test from the Windows artifact | ||
| 121 | |||
| 122 | For a focused GPU check without building locally, extract the artifact and open | ||
| 123 | PowerShell in the directory containing the test executable. Keep the extracted | ||
| 124 | files together so the test can find any fixtures relative to that directory. | ||
| 125 | For example, to run the synthetic depth/stencil resolve test without game files: | ||
| 126 | |||
| 127 | ```powershell | ||
| 128 | .\d3d12_depth_resolve_test.exe | ||
| 129 | Write-Output "Test exit code: $LASTEXITCODE" | ||
| 130 | ``` | ||
| 131 | |||
| 132 | Report the executable name, the workflow run and its commit, your GPU and driver, | ||
| 133 | the exit code, and the test summary in [#166](https://github.com/ItsNotRexed/Leonida/issues/166). | ||
| 134 | Label it as a single-test run so the result is easy to distinguish from a full suite run. | ||
| 135 | |||
| 112 | ## Run them | 136 | ## Run them |
| 113 | 137 | ||
| 114 | The whole suite, assembled, translated and run in one go: | 138 | The whole suite, assembled, translated and run in one go: |
| @@ -348,7 +372,10 @@ Without `VK_EXT_mesh_shader`, the `ms_*` tests are skipped; that's expected, not | |||
| 348 | runs them anyway, set `LEONIDA_MESH_COMPUTE=1` for `run_gpu_tests.py`, together with `LEONIDA_W64_EMULATE=1` on a | 372 | runs them anyway, set `LEONIDA_MESH_COMPUTE=1` for `run_gpu_tests.py`, together with `LEONIDA_W64_EMULATE=1` on a |
| 349 | 32-wide GPU (every mesh shader is wave64). The mesh shaders are then translated with `--mesh-compute`, dispatched as | 373 | 32-wide GPU (every mesh shader is wave64). The mesh shaders are then translated with `--mesh-compute`, dispatched as |
| 350 | compute and drawn by a generated vertex shader (`docs/design.md`, "Mesh shaders as compute"), so the device needs | 374 | compute and drawn by a generated vertex shader (`docs/design.md`, "Mesh shaders as compute"), so the device needs |
| 351 | `bufferDeviceAddress` and `shaderInt64` instead. | 375 | `bufferDeviceAddress` instead, and `shaderInt64` for a module that declares `Int64`. The standalone tools |
| 376 | (`vk_harness`, `vk_compute_test`, `vk_texture_test`, `vk_store_test`, `vk_bindless_test`) read the modules' | ||
| 377 | capabilities first: they enable `shaderInt64` only for one that declares `Int64` (or `Int64Atomics`), and report 77 | ||
| 378 | (SKIP, with the reason) when the device lacks it. | ||
| 352 | 379 | ||
| 353 | ## Without a GPU: Mesa llvmpipe | 380 | ## Without a GPU: Mesa llvmpipe |
| 354 | 381 | ||
| @@ -397,7 +424,9 @@ whose Metal device is "Apple Paravirtual device" (Metal family Mac2, not Apple7) | |||
| 397 | subgroups, so the wave64 and "32 lanes on request" tests skip there (about 75 of 190 in November 2026), and Mesa's | 424 | subgroups, so the wave64 and "32 lanes on request" tests skip there (about 75 of 190 in November 2026), and Mesa's |
| 398 | KosmicKrisp finds no device. `macos-15` can't build the runtime: Xcode 16's libc++ has no floating-point | 425 | KosmicKrisp finds no device. `macos-15` can't build the runtime: Xcode 16's libc++ has no floating-point |
| 399 | `std::from_chars`. A test known to fail on MoltenVK is listed in the step's `EXPECTED_FAILURES` with the pull | 426 | `std::from_chars`. A test known to fail on MoltenVK is listed in the step's `EXPECTED_FAILURES` with the pull |
| 400 | request or coordination-issue finding that tracks it; it still runs, and `scripts/ci_expected_failures.py` fails the step on any other failure. | 427 | request or coordination-issue finding that tracks it; it still runs, and `scripts/ci_expected_failures.py` fails the step |
| 428 | on any other failure. It takes `FAILED_LIST EXIT_STATUS [EXPECTED ...]`, answers `--help`, and reports a list it cannot | ||
| 429 | read or a non-numeric status as one line with exit code 2. | ||
| 401 | 430 | ||
| 402 | ## GPUs without fragment barycentrics (NVIDIA Volta, Pascal and older) | 431 | ## GPUs without fragment barycentrics (NVIDIA Volta, Pascal and older) |
| 403 | 432 | ||
| @@ -494,18 +523,32 @@ over integrated, the first on a tie, `vulkan_device_rank` in `runtime/src/vulkan | |||
| 494 | `LEONIDA_VK_DEVICE=radeon`. The D3D12 tests (`vk_test_device.h`) and the layer's standalone device read it, | 523 | `LEONIDA_VK_DEVICE=radeon`. The D3D12 tests (`vk_test_device.h`) and the layer's standalone device read it, |
| 495 | and a value that matches no device fails the run instead of testing | 524 | and a value that matches no device fails the run instead of testing |
| 496 | another GPU. For the host side of the comparison tests, `LEONIDA_HOST_ADAPTER` picks the D3D12 adapter the same way. | 525 | another GPU. For the host side of the comparison tests, `LEONIDA_HOST_ADAPTER` picks the D3D12 adapter the same way. |
| 526 | Unset, the host side is the adapter behind the layer's Vulkan device (`runtime/test/host_adapter.h`; `d3d12_buffer_tiles` | ||
| 527 | by the layer's `GetAdapterLuid()`), so on a PC with two GPUs the layer is compared with its own GPU's driver. | ||
| 497 | The GPU tools of `runtime/test/shaders` (`vk_compute_test`, `vk_harness`, ...) read it the same way through | 528 | The GPU tools of `runtime/test/shaders` (`vk_compute_test`, `vk_harness`, ...) read it the same way through |
| 498 | `vk_device_pick.h`, and fail with a message naming the filter when it matches no device. | 529 | `vk_device_pick.h`, and fail with a message naming the filter when it matches no device. |
| 499 | 530 | ||
| 531 | Two test settings make the layer's standalone device look like a GPU with fewer Vulkan queues, so D3D12 queues share | ||
| 532 | them (`docs/d3d12_vulkan.md` section 4.4) on any GPU: `LEONIDA_VK_MAX_QUEUES_PER_FAMILY=N` (1 to 16) creates at most | ||
| 533 | N Vulkan queues per queue family, and `LEONIDA_VK_GRAPHICS_FAMILY_ONLY=1` puts COMPUTE and COPY queues in the | ||
| 534 | graphics family, as on a GPU without async compute or transfer families. Both together give the shape of the Intel | ||
| 535 | UHD 770 on Windows and of lavapipe, one family with one queue; the `d3d12_queue_share_one_queue` and | ||
| 536 | `d3d12_queue_wait_one_queue` tests run that way, and any other test can be run so by hand. The device logs what it | ||
| 537 | applied; a queue count outside 1 to 16 is ignored, with a message. Only tests apply them: the device that | ||
| 538 | `gta6rt --run` creates for a game (`LEONIDA_D3D12=vulkan`) ignores both and prints `... is a test setting; the | ||
| 539 | game's device ignores it`, so leaving them set cannot slow a game down (`run_tiny_frame_queue_test_settings`). | ||
| 540 | |||
| 500 | ## Known problems | 541 | ## Known problems |
| 501 | 542 | ||
| 502 | | What you see | Cause | What to do | | 543 | | What you see | Cause | What to do | |
| 503 | |---|---|---| | 544 | |---|---|---| |
| 545 | | Under Wine 9.0 (Ubuntu 24.04's `wine`), a test or the runtime waits out every `std::condition_variable` timeout: `wait_registration_admission` ("native drainage complete"), `vk_presenter_sync` (`unblocked_during_present`), `frame_pacer`, `vk_fence_dispatcher_sync`, `context_concurrent_detach` | The STL's timed wait (`_Cnd_timedwait_for_unchecked`) is linked statically from `msvcprt.lib` and reads Windows' `_Mtx_t` layout, while `_Mtx_lock`/`_Mtx_unlock` come from Wine's builtin msvcp140, which used another layout until wine-10.1 (757bd7909fda); the wait never released the mutex (#3796) | Fixed in the build: `runtime/src/crt_timed_wait.cpp` routes the wait through msvcp140's own `_Cnd_timedwait` in every `/MD` binary, and `crt_timed_wait_test` checks it. A binary built before that fix still needs Wine 10.1 or newer (or Proton) | | ||
| 504 | | `ctest` passes but runs far fewer tests than expected (about 45 instead of 125 on Windows), no `d3d12_*` GPU tests, and `LEONIDA_D3D12=vulkan` does nothing | CMake found no Vulkan headers: `VULKAN_SDK` was not set in the environment that ran CMake (for example a user variable set after the terminal opened), and `CMakeCache.txt` keeps that failed lookup. The configure prints a `CMake Warning` "Vulkan headers not found" | Set `VULKAN_SDK` in that environment (or pass `-DLEONIDA_VULKAN_HEADERS_FETCH=ON`), delete `CMakeCache.txt` and configure again. `-DLEONIDA_REQUIRE_VULKAN=ON` makes this a configure error; CI and `scripts/build_runtime.ps1` (with `VULKAN_SDK` set) pass it | | 546 | | `ctest` passes but runs far fewer tests than expected (about 45 instead of 125 on Windows), no `d3d12_*` GPU tests, and `LEONIDA_D3D12=vulkan` does nothing | CMake found no Vulkan headers: `VULKAN_SDK` was not set in the environment that ran CMake (for example a user variable set after the terminal opened), and `CMakeCache.txt` keeps that failed lookup. The configure prints a `CMake Warning` "Vulkan headers not found" | Set `VULKAN_SDK` in that environment (or pass `-DLEONIDA_VULKAN_HEADERS_FETCH=ON`), delete `CMakeCache.txt` and configure again. `-DLEONIDA_REQUIRE_VULKAN=ON` makes this a configure error; CI and `scripts/build_runtime.ps1` (with `VULKAN_SDK` set) pass it | |
| 505 | | Windows refuses to start freshly built test programs ("An Application Control policy has blocked this file"), and the runner stops with a traceback | Smart App Control on Windows 11 | Turn Smart App Control off for the run | | 547 | | Windows refuses to start freshly built test programs ("An Application Control policy has blocked this file"), and the runner stops with a traceback | Smart App Control on Windows 11 | Turn Smart App Control off for the run | |
| 506 | | `tools/hw_oracle` works once, then stops with "hardware oracle unavailable: Windows Defender blocked the launcher ... (WinError 225)" (older runs: an `OSError: [WinError 225] ... contains a virus or potentially unwanted software` traceback) | Defender's machine-learning check flags the small unsigned `leonida_hw_oracle_<hash>.exe` that the runner builds in `%TEMP%` (seen as `Trojan:Win32/Bearfoos.A!ml`) and quarantines it; every later run rebuilds and loses it again | Add an exclusion for the build folder (`%TEMP%`) in Windows Security, Virus & threat protection, Manage settings, Exclusions, restore the file from Protection history if you want it back, and rerun. The program is built from `tools/hw_oracle/hw_oracle.c` and is a false positive | | 548 | | `tools/hw_oracle` works once, then stops with "hardware oracle unavailable: Windows Defender blocked the launcher ... (WinError 225)" (older runs: an `OSError: [WinError 225] ... contains a virus or potentially unwanted software` traceback) | Defender's machine-learning check flags the small unsigned `leonida_hw_oracle_<hash>.exe` that the runner builds in `%TEMP%` (seen as `Trojan:Win32/Bearfoos.A!ml`) and quarantines it; every later run rebuilds and loses it again | Add an exclusion for the build folder (`%TEMP%`) in Windows Security, Virus & threat protection, Manage settings, Exclusions, restore the file from Protection history if you want it back, and rerun. The program is built from `tools/hw_oracle/hw_oracle.c` and is a false positive | |
| 507 | | Validation errors without a VUID, or messages from a layer you didn't ask for | An implicit Vulkan layer from other software (Rockstar Social Club, ReShade, MangoHud, an overlay) | Set `VK_LOADER_LAYERS_DISABLE=~implicit~`. Overlays that hook the swapchain (RivaTuner `VK_LAYER_RTSS`, OBS `VK_LAYER_OBS_HOOK`) can stay loaded: see the next row | | 549 | | Validation errors without a VUID, or messages from a layer you didn't ask for | An implicit Vulkan layer from other software (Rockstar Social Club, ReShade, MangoHud, an overlay) | Set `VK_LOADER_LAYERS_DISABLE=~implicit~`. Overlays that hook the swapchain (RivaTuner `VK_LAYER_RTSS`, OBS `VK_LAYER_OBS_HOOK`) can stay loaded: see the next row | |
| 508 | | Validation errors that only your machine shows (e.g. `xbox_present`'s sRGB swapchain `STORAGE` message), with MSI Afterburner/RivaTuner or OBS installed | An overlay layer that hooks the swapchain: while RivaTuner Statistics Server is running, its `VK_LAYER_RTSS` adds `STORAGE` usage to it (OBS's `VK_LAYER_OBS_HOOK` injects `VK_IMAGE_USAGE_STORAGE_BIT` too). In an elevated (administrator) terminal the loader ignores `VK_LOADER_LAYERS_DISABLE` (`VK_LOADER_DEBUG=all` says so), so `~implicit~` leaves the layer in | Run the tests from a normal terminal, close the overlay application, or set the layer's own switch, which works elevated too: `DISABLE_RTSS_LAYER=1`, `DISABLE_VULKAN_OBS_CAPTURE=1` (OBS). Any other layer's switch is the `disable_environment` entry in its manifest (the JSON listed under `HKLM\SOFTWARE\Khronos\Vulkan\ImplicitLayers` or `HKCU\...`). `VK_LOADER_DEBUG=layer` prints the layers that were actually inserted | | 550 | | Validation errors that only your machine shows (e.g. `xbox_present`'s sRGB swapchain `STORAGE` message), with MSI Afterburner/RivaTuner or OBS installed | An overlay layer that hooks the swapchain: while RivaTuner Statistics Server is running, its `VK_LAYER_RTSS` adds `STORAGE` usage to it (OBS's `VK_LAYER_OBS_HOOK` injects `VK_IMAGE_USAGE_STORAGE_BIT` too). In an elevated (administrator) terminal the loader ignores `VK_LOADER_LAYERS_DISABLE` (`VK_LOADER_DEBUG=all` says so), so `~implicit~` leaves the layer in | Run the tests from a normal terminal, close the overlay application, or set the layer's own switch, which works elevated too: `DISABLE_RTSS_LAYER=1`, `DISABLE_VULKAN_OBS_CAPTURE=1` (OBS). Any other layer's switch is the `disable_environment` entry in its manifest (the JSON listed under `HKLM\SOFTWARE\Khronos\Vulkan\ImplicitLayers` or `HKCU\...`). `VK_LOADER_DEBUG=layer` prints the layers that were actually inserted | |
| 551 | | GPU tests crash with an access violation (`0xC0000005`, exit `-1073741819`) right after device creation, with no layer message and validation off (e.g. `d3d12_method_variants` 9 of 10 runs, `xbox_present` 10 of 10, on `main` 561b65a83, RTX 4070 Ti, NVIDIA 616.56) | An implicit layer from an overlay or game tool you did not install for these tests. FPS Monitor's `fpsmonvk64.json` (listed under `HKLM\SOFTWARE\Khronos\Vulkan\ImplicitLayers`) names itself `VK_LAYER_RENDERDOC_Capture`, so `DISABLE_VULKAN_OBS_CAPTURE=1` does not disable it | `VK_LOADER_DEBUG=layer` prints the layers that were actually inserted. That manifest's `disable_environment` is `DISABLE_LAYER=1`; `DISABLE_LAYER=1` or `VK_LOADER_LAYERS_DISABLE=~implicit~` gave 20 of 20 clean runs (a layer's own switch is its `disable_environment` entry, as the row above says) | | ||
| 509 | | `vk_sync_validation` fails with `LEONIDA_VK_VALIDATION=1` ("the write-after-write hazard was not reported") | Synchronization validation is off although the tests ask for it: an older layer, or a layer setting such as `VK_KHRONOS_VALIDATION_VALIDATE_SYNC=false` or a `vk_layer_settings.txt` that overrides it. Every other GPU test then reports "0 validation errors" without having been checked | Remove the override or update the Vulkan SDK, then rerun `ctest -R vk_sync_validation` until it passes | | 552 | | `vk_sync_validation` fails with `LEONIDA_VK_VALIDATION=1` ("the write-after-write hazard was not reported") | Synchronization validation is off although the tests ask for it: an older layer, or a layer setting such as `VK_KHRONOS_VALIDATION_VALIDATE_SYNC=false` or a `vk_layer_settings.txt` that overrides it. Every other GPU test then reports "0 validation errors" without having been checked | Remove the override or update the Vulkan SDK, then rerun `ctest -R vk_sync_validation` until it passes | |
| 510 | | On RADV with Mesa 25.2 (Ubuntu 24.04's default; 25.2.8 measured) or 25.3 (from the source, not run), `cs_w32_salu64` fails with word 2 = `0` (want `0xFFFFFFFF`) and `cs_signed_zero_nan` fails with word 5 = `0` (want `1`). The `cs_signed_zero_nan` failure alone is also measured on RADV 25.0.7 (RX 7800 XT, Debian 13; @mrbean56, #4421) and on ANV 25.2.8 (Intel UHD 630; @theswiss24, #4571); llvmpipe on Mesa 26.0.8 (Ubuntu 26.04) still gives word 5 = `0`, which `check.py` does not judge there (`UNJUDGED_WORDS`) | Two Mesa bugs, not translator bugs (#166). `cs_w32_salu64`: ACO's `combine_add_sub_b2i` reads a temporary without counting the use, so dead-code elimination removes it (`ACO ERROR: ... never defined` with `MESA_SHADER_CACHE_DISABLE=true`); `RADV_DEBUG=llvm` passes. `cs_signed_zero_nan`: NIR's range analysis (`fmul_is_a_number`) calls `0 * x` a number when `x` may be infinite, so the `x != x` check folds to false despite `SignedZeroInfNanPreserve`. The same NIR code is behind llvmpipe's word 5 (#664) and ANV's, since both drivers run NIR; `cs_w32_salu64` is ACO's, so only RADV has it | Expected with these Mesa versions. From the source, the ACO function is gone from Mesa 26.0 and the NIR code was replaced in 26.1 (neither run); RADV from Mesa 26.3.1 passes both on an 8060S (gfx1151) | | 553 | | On RADV with Mesa 25.2 (Ubuntu 24.04's default; 25.2.8 measured) or 25.3 (from the source, not run), `cs_w32_salu64` fails with word 2 = `0` (want `0xFFFFFFFF`) and `cs_signed_zero_nan` fails with word 5 = `0` (want `1`). The `cs_signed_zero_nan` failure alone is also measured on RADV 25.0.7 (RX 7800 XT, Debian 13; @mrbean56, #4421) and on ANV 25.2.8 (Intel UHD 630; @theswiss24, #4571); llvmpipe on Mesa 26.0.8 (Ubuntu 26.04) still gives word 5 = `0`, which `check.py` does not judge there (`UNJUDGED_WORDS`) | Two Mesa bugs, not translator bugs (#166). `cs_w32_salu64`: ACO's `combine_add_sub_b2i` reads a temporary without counting the use, so dead-code elimination removes it (`ACO ERROR: ... never defined` with `MESA_SHADER_CACHE_DISABLE=true`); `RADV_DEBUG=llvm` passes. `cs_signed_zero_nan`: NIR's range analysis (`fmul_is_a_number`) calls `0 * x` a number when `x` may be infinite, so the `x != x` check folds to false despite `SignedZeroInfNanPreserve`. The same NIR code is behind llvmpipe's word 5 (#664) and ANV's, since both drivers run NIR; `cs_w32_salu64` is ACO's, so only RADV has it | Expected with these Mesa versions. From the source, the ACO function is gone from Mesa 26.0 and the NIR code was replaced in 26.1 (neither run); RADV from Mesa 26.3.1 passes both on an 8060S (gfx1151) | |
| 511 | | Every test crashes inside `libnvidia-eglcore.so` | NVIDIA's 535 server driver (Ubuntu 24.04's default) | Use driver 615 or newer | | 554 | | Every test crashes inside `libnvidia-eglcore.so` | NVIDIA's 535 server driver (Ubuntu 24.04's default) | Use driver 615 or newer | |
| @@ -565,6 +608,32 @@ a Linux RTX 5090 (595.99.02). On Windows, a Ryzen 7 9800X3D Radeon iGPU (25.10.3 | |||
| 565 | an RTX 3080 (616.64) and an RTX 3060 (621.14) preserved all 768 words in both formats. | 608 | an RTX 3080 (616.64) and an RTX 3060 (621.14) preserved all 768 words in both formats. |
| 566 | The device reports are in [PR #3260](https://github.com/ItsNotRexed/Leonida/pull/3260). | 609 | The device reports are in [PR #3260](https://github.com/ItsNotRexed/Leonida/pull/3260). |
| 567 | 610 | ||
| 611 | ### Which known problems the game's shaders reach | ||
| 612 | |||
| 613 | Several rows of the table above are tied to particular instructions. A GPU test or fuzzer that hits one does | ||
| 614 | not by itself mean the game does. The counts below say how many of the 26,503 1.0.2.1 shaders (`shaders.rpf`, | ||
| 615 | LLVM gfx1013) contain those instructions, by stage and by the wave size their FSSM header gives. They are | ||
| 616 | counts of instructions over the program up to each listing's last `s_endpgm`. They are not reproductions: a | ||
| 617 | shader that contains an instruction does not have to take the exact path a row describes. | ||
| 618 | |||
| 619 | ```sh | ||
| 620 | python -I tools/op_reach.py <work>/shaders/dxbc/disasm --index <work>/shaders/dxbc/index.json \ | ||
| 621 | --fssm <work>/shaders/dxbc/fssm s_bfe_i64 '*_dpp' v_permlanex16_b32 ds_bpermute_b32 v_mul_f16 ... | ||
| 622 | ``` | ||
| 623 | |||
| 624 | The corpus has 2,662 wave32 shaders (1,535 CS, 1,127 PS) and 23,841 wave64 shaders (every VS, GS and MS, 1,154 | ||
| 625 | CS, 10,974 PS). | ||
| 626 | |||
| 627 | | Row | What the game's shaders contain (1.0.2.1) | | ||
| 628 | |---|---| | ||
| 629 | | `cs_w32_salu64` on RDNA1 / RADV 25.2.8 (the high word of `s_bfe_i64`) | **No shader uses `s_bfe_i64`** (nor `s_bfe_u64`). The fixture's failure does not reach a game shader. | | ||
| 630 | | `lds_fuzz.py --wave 64` `ds_bpermute_b32` on AMD's Windows driver | **No wave64 shader uses `ds_bpermute_b32`**: it occurs in 5 wave32 CS (74 instructions), and `ds_permute_b32` in none. | | ||
| 631 | | `crosslane_fuzz.py --wave 64` on an AMD iGPU (a `v_permlanex16_b32` after a partial-`row_mask` DPP) | DPP in 4,313 shaders, 2,496 of them wave64 (2,364 PS, 113 CS, 17 MS, 2 VS). `v_permlanex16_b32` in 2,293 shaders, 561 of them wave64. Whether any of them pairs the two with a partial `row_mask` is not counted, so these are upper bounds. | | ||
| 632 | | `cs_dpp_ops` on MoltenVK 1.4.2 | DPP (any `*_dpp`) in 4,313 shaders (66,354 instructions): 1,817 wave32, 2,496 wave64. | | ||
| 633 | | `valu_fuzz.py --family f16` signed zero on MoltenVK | `v_mul_f16` 124 shaders, `v_fma_f16` 124, `v_fmac_f16` 130, `v_pk_mul_f16` 55, `v_pk_fma_f16` 47, mostly PS (113–115 for the scalar forms). | | ||
| 634 | | `ps_interp_f16_high` on MoltenVK (16-bit interpolation) | `v_interp_p1ll_f16` / `v_interp_p2_f16` in 4,776 PS (679 wave32, 4,097 wave64), 59,367 instructions each. The count is the instruction, not the `high` operand. | | ||
| 635 | | `gs_tri` and `ms_tri` on a Mac | 195 GS and 9,282 MS, all wave64. | | ||
| 636 | |||
| 568 | ## Posting your result | 637 | ## Posting your result |
| 569 | 638 | ||
| 570 | Use the template at the top of [#166](https://github.com/ItsNotRexed/Leonida/issues/166): GPU, driver, subgroup | 639 | Use the template at the top of [#166](https://github.com/ItsNotRexed/Leonida/issues/166): GPU, driver, subgroup |