diff options
| author | Shrey Ratna <shreyratna4445@hotmail.com> | 2026-11-22 19:20:49 +0000 |
|---|---|---|
| committer | Shrey Ratna <shreyratna4445@hotmail.com> | 2026-11-22 20:01:58 +0000 |
| commit | 446270b08afe359a3a8bcc8d50c206b989edd6bb (patch) | |
| tree | 46a7fa7b1761d37ff1654f456bff84efaefb163f /runtime/test/code_hooks_test.cpp | |
| parent | f847748cc76bd3777f9c070c4034eb2fc1c04e64 (diff) | |
GPU tests: fix the two errors GPU-assisted validation reports
Run under VK_LAYER_KHRONOS_validation with GPU-assisted validation (VK_KHRONOS_VALIDATION_GPUAV_ENABLE=1),
which instruments the translated shaders, the llvmpipe GPU suite gives two errors. Both are in the tests,
not the translator, and both passed only because llvmpipe tolerates them:
- vk_bindless_test (ps_tex): the synthetic T#'s word 1, 0x22222222, has FORMAT 34 (10_11_11_UINT). The
translator picks the uint alias of the image array for a UINT T#, so every draw sampled the test's
R8G8B8A8_UNORM views through a uint image, which Vulkan leaves undefined
(VUID-vkCmdDraw-format-07753). The T# now has FORMAT 56 (8_8_8_8_UNORM), checked by a static_assert.
- cs_w64_mask_detect: every lane stored at lane * 64 through a V# that allows any offset, so lanes 4-63
wrote past the 256 bytes vk_compute_test gives one group, through the buffer's device address
(VUID-RuntimeSpirv-PhysicalStorageBuffer64-11819). It stores at lane * 4 now; out[0] is still 48.
docs/testing.md: how to run the shader test programs under validation, GPU-AV and sync validation.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'runtime/test/code_hooks_test.cpp')
0 files changed, 0 insertions, 0 deletions