vkback: enable compute shader derivatives #33
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/vktory6--VKtory!33
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-33"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@TheRifai on GitHub · 2026-11-30 23:48 UTC · original
TheRifai:vkback-compute-derivatives→main· +18 −0 · 2 files · 2 commits · merged 2026-12-01 08:24 UTCWhat
The title's compute and mesh programs declare the SPIR-V
ComputeDerivativesKHRcapability andSPV_KHR_compute_shader_derivatives. The device now enablesVK_KHR_compute_shader_derivativeswith the KHR feature struct in umem'sfull_featuresdevice (the live device), and in vkback's ownDev::newfor the offline tools.ash 0.38 carries only the NV alias's shorter struct; KHR adds
meshAndTaskShaderDerivativesand reuses the NV sType, so a matching struct is defined in umem and chained.Why
Under the validation layer on the house scene:
f85217a, baseline after #18-#28): 15 distinct VUIDs, includingVUID-VkShaderModuleCreateInfo-pCode-08740(capability declared, feature not enabled)VUID-VkShaderModuleCreateInfo-pCode-08742(SPIR-V extension declared, device extension not enabled)VUID-RuntimeSpirv-meshAndTaskShaderDerivatives-10153RADV accepted the shaders without the feature, which is why the picture did not change; the layer is the only visible difference.
Test
VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation, house save, 140 s run, errors only, on GE-Proton11-15; VUID lists compared as distinct lines.461c1742a5to124ee33b2d@vktory6 on GitHub · 2026-12-01 08:24 UTC · original
Merged, thanks! One commit of mine on top (
35a4af4): the feature struct is now ash'sPhysicalDeviceComputeShaderDerivativesFeaturesNV. The KHR struct has the same two booleans and the same sType, so a hand-written copy wasn't needed. The extension name sits as one constant in umem.Check on the reference system (RX 9070 XT): tests and policy pass. In the house-scene validation run,
VkShaderModuleCreateInfo-pCode-08740,-08742andRuntimeSpirv-meshAndTaskShaderDerivatives-10153are gone, with nothing new. They're off the validation list.