Files
mandy/runtime/test/cs_wave_probe_spv.h
Jolymmiles 777d218770 vk_compute_test: run 32-lane tests where the size is fixed but not requirable (MoltenVK)
MoltenVK reports subgroups 4..32 and requiredSubgroupSizeStages 0, so VKC_SUBGROUP_SIZE=32 printed "not available"
and the 32-lane compute tests skipped. The translator emits SPIR-V 1.5, where varying subgroup sizes are not allowed,
so Vulkan fixes SubgroupSize at the device's subgroupSize (32 there). vk_compute_test now runs a probe shader
(cs_wave_probe.comp, embedded) with the test's local size and flags first, checks every invocation's lane, subgroup
number and ballot width, and runs the test if they match. If they don't, the test fails (exit 1) instead of being
skipped. Full subgroups are requested where local size X is a multiple of maxSubgroupSize. Devices whose default
isn't the requested size keep printing "not available".
2026-11-23 00:04:20 +04:00

64 lines
6.0 KiB
C++

// runtime/test/glsl/cs_wave_probe.comp, generated with glslang 16.6.0 (tests/test_cs_wave_probe_spv.py checks it):
// glslangValidator -V --target-env vulkan1.2 -Os -o cs_wave_probe.spv runtime/test/glsl/cs_wave_probe.comp
// SPIR-V 1.5, as the translator emits, so varying subgroup sizes are not allowed in it either.
#pragma once
#include <cstdint>
namespace leonida::vk_test {
inline constexpr std::uint32_t cs_wave_probe_spirv[] = {
0x07230203u, 0x00010500u, 0x0008000bu, 0x00000042u, 0x00000000u, 0x00020011u, 0x00000001u, 0x00020011u,
0x0000003du, 0x00020011u, 0x00000040u, 0x00020011u, 0x000014e3u, 0x0006000bu, 0x00000001u, 0x4c534c47u,
0x6474732eu, 0x3035342eu, 0x00000000u, 0x0003000eu, 0x000014e4u, 0x00000001u, 0x000a000fu, 0x00000005u,
0x00000004u, 0x6e69616du, 0x00000000u, 0x0000000fu, 0x00000019u, 0x00000021u, 0x00000029u, 0x00000030u,
0x00060010u, 0x00000004u, 0x00000011u, 0x00000001u, 0x00000001u, 0x00000001u, 0x00030003u, 0x00000002u,
0x000001c2u, 0x00070004u, 0x455f4c47u, 0x625f5458u, 0x65666675u, 0x65725f72u, 0x65726566u, 0x0065636eu,
0x00090004u, 0x455f4c47u, 0x625f5458u, 0x65666675u, 0x65725f72u, 0x65726566u, 0x5f65636eu, 0x63657675u,
0x00000032u, 0x00090004u, 0x4b5f4c47u, 0x735f5248u, 0x65646168u, 0x75735f72u, 0x6f726762u, 0x625f7075u,
0x6f6c6c61u, 0x00000074u, 0x00090004u, 0x4b5f4c47u, 0x735f5248u, 0x65646168u, 0x75735f72u, 0x6f726762u,
0x625f7075u, 0x63697361u, 0x00000000u, 0x00040005u, 0x00000004u, 0x6e69616du, 0x00000000u, 0x00040005u,
0x00000009u, 0x64726f57u, 0x00000073u, 0x00040006u, 0x00000009u, 0x00000000u, 0x00000077u, 0x00050005u,
0x0000000du, 0x72657355u, 0x61746144u, 0x00000000u, 0x00050006u, 0x0000000du, 0x00000000u, 0x65736162u,
0x00000000u, 0x00030005u, 0x0000000fu, 0x00006370u, 0x00080005u, 0x00000019u, 0x4c5f6c67u, 0x6c61636fu,
0x6f766e49u, 0x69746163u, 0x6e496e6fu, 0x00786564u, 0x00060005u, 0x00000021u, 0x535f6c67u, 0x72676275u,
0x5370756fu, 0x00657a69u, 0x00080005u, 0x00000029u, 0x535f6c67u, 0x72676275u, 0x4970756fu, 0x636f766eu,
0x6f697461u, 0x0044496eu, 0x00060005u, 0x00000030u, 0x535f6c67u, 0x72676275u, 0x4970756fu, 0x00000044u,
0x00040047u, 0x00000008u, 0x00000006u, 0x00000004u, 0x00030047u, 0x00000009u, 0x00000002u, 0x00050048u,
0x00000009u, 0x00000000u, 0x00000023u, 0x00000000u, 0x00030047u, 0x0000000du, 0x00000002u, 0x00050048u,
0x0000000du, 0x00000000u, 0x00000023u, 0x00000000u, 0x00040047u, 0x00000019u, 0x0000000bu, 0x0000001du,
0x00030047u, 0x00000021u, 0x00000000u, 0x00040047u, 0x00000021u, 0x0000000bu, 0x00000024u, 0x00030047u,
0x00000022u, 0x00000000u, 0x00030047u, 0x00000029u, 0x00000000u, 0x00040047u, 0x00000029u, 0x0000000bu,
0x00000029u, 0x00030047u, 0x0000002au, 0x00000000u, 0x00040047u, 0x00000030u, 0x0000000bu, 0x00000028u,
0x00040047u, 0x0000003du, 0x00000001u, 0x00000000u, 0x00040047u, 0x0000003eu, 0x00000001u, 0x00000001u,
0x00040047u, 0x0000003fu, 0x00000001u, 0x00000002u, 0x00040047u, 0x00000041u, 0x0000000bu, 0x00000019u,
0x00020013u, 0x00000002u, 0x00030021u, 0x00000003u, 0x00000002u, 0x00030027u, 0x00000006u, 0x000014e5u,
0x00040015u, 0x00000007u, 0x00000020u, 0x00000000u, 0x0003001du, 0x00000008u, 0x00000007u, 0x0003001eu,
0x00000009u, 0x00000008u, 0x00040020u, 0x00000006u, 0x000014e5u, 0x00000009u, 0x00040017u, 0x0000000cu,
0x00000007u, 0x00000002u, 0x0003001eu, 0x0000000du, 0x0000000cu, 0x00040020u, 0x0000000eu, 0x00000009u,
0x0000000du, 0x0004003bu, 0x0000000eu, 0x0000000fu, 0x00000009u, 0x00040015u, 0x00000010u, 0x00000020u,
0x00000001u, 0x0004002bu, 0x00000010u, 0x00000011u, 0x00000000u, 0x00040020u, 0x00000012u, 0x00000009u,
0x0000000cu, 0x00040020u, 0x00000018u, 0x00000001u, 0x00000007u, 0x0004003bu, 0x00000018u, 0x00000019u,
0x00000001u, 0x0004002bu, 0x00000007u, 0x0000001bu, 0x00000004u, 0x0004003bu, 0x00000018u, 0x00000021u,
0x00000001u, 0x00040020u, 0x00000023u, 0x000014e5u, 0x00000007u, 0x0004002bu, 0x00000007u, 0x00000027u,
0x00000001u, 0x0004003bu, 0x00000018u, 0x00000029u, 0x00000001u, 0x0004002bu, 0x00000007u, 0x0000002eu,
0x00000002u, 0x0004003bu, 0x00000018u, 0x00000030u, 0x00000001u, 0x0004002bu, 0x00000007u, 0x00000035u,
0x00000003u, 0x00020014u, 0x00000037u, 0x00030029u, 0x00000037u, 0x00000038u, 0x00040017u, 0x00000039u,
0x00000007u, 0x00000004u, 0x00040032u, 0x00000007u, 0x0000003du, 0x00000001u, 0x00040032u, 0x00000007u,
0x0000003eu, 0x00000001u, 0x00040032u, 0x00000007u, 0x0000003fu, 0x00000001u, 0x00040017u, 0x00000040u,
0x00000007u, 0x00000003u, 0x00060033u, 0x00000040u, 0x00000041u, 0x0000003du, 0x0000003eu, 0x0000003fu,
0x00050036u, 0x00000002u, 0x00000004u, 0x00000000u, 0x00000003u, 0x000200f8u, 0x00000005u, 0x00050041u,
0x00000012u, 0x00000013u, 0x0000000fu, 0x00000011u, 0x0004003du, 0x0000000cu, 0x00000014u, 0x00000013u,
0x0004007cu, 0x00000006u, 0x00000015u, 0x00000014u, 0x0004003du, 0x00000007u, 0x0000001au, 0x00000019u,
0x00050084u, 0x00000007u, 0x0000001cu, 0x0000001au, 0x0000001bu, 0x0004003du, 0x00000007u, 0x00000022u,
0x00000021u, 0x00060041u, 0x00000023u, 0x00000024u, 0x00000015u, 0x00000011u, 0x0000001cu, 0x0005003eu,
0x00000024u, 0x00000022u, 0x00000002u, 0x00000004u, 0x00050080u, 0x00000007u, 0x00000028u, 0x0000001cu,
0x00000027u, 0x0004003du, 0x00000007u, 0x0000002au, 0x00000029u, 0x00060041u, 0x00000023u, 0x0000002bu,
0x00000015u, 0x00000011u, 0x00000028u, 0x0005003eu, 0x0000002bu, 0x0000002au, 0x00000002u, 0x00000004u,
0x00050080u, 0x00000007u, 0x0000002fu, 0x0000001cu, 0x0000002eu, 0x0004003du, 0x00000007u, 0x00000031u,
0x00000030u, 0x00060041u, 0x00000023u, 0x00000032u, 0x00000015u, 0x00000011u, 0x0000002fu, 0x0005003eu,
0x00000032u, 0x00000031u, 0x00000002u, 0x00000004u, 0x00050080u, 0x00000007u, 0x00000036u, 0x0000001cu,
0x00000035u, 0x00050153u, 0x00000039u, 0x0000003au, 0x00000035u, 0x00000038u, 0x00060156u, 0x00000007u,
0x0000003bu, 0x00000035u, 0x00000000u, 0x0000003au, 0x00060041u, 0x00000023u, 0x0000003cu, 0x00000015u,
0x00000011u, 0x00000036u, 0x0005003eu, 0x0000003cu, 0x0000003bu, 0x00000002u, 0x00000004u, 0x000100fdu,
0x00010038u,
};
}