This website requires JavaScript.
Explore
Help
Register
Sign In
jarod
/
unkernel
Watch
1
Star
0
Fork
0
You've already forked unkernel
mirror of
https://github.com/pithings/unkernel.git
synced
2026-12-04 05:00:21 +08:00
Code
Issues
Packages
Projects
Releases
Wiki
Activity
Files
3f7bb3849b79eeace52eb9410bc4e92766e10a47
unkernel
/
vk
History
Pooya Parsa
e16c37ad6f
vk: let wgpu apps (Zed) create a device and draw: the ICD reports maxFragmentCombinedOutputResources as the sum of storage buffers, storage images and color attachments (8 made wgpu derive 3 color attachments) and every bind group as a descriptor set (a layout with all of them and push constants fails in vkCreatePipelineLayout), and a pipeline's stages keep their shader module, so a variant made at draw time translates it after the app destroyed it
2026-11-25 14:02:24 +00:00
..
icd
vk: let wgpu apps (Zed) create a device and draw: the ICD reports maxFragmentCombinedOutputResources as the sum of storage buffers, storage images and color attachments (8 made wgpu derive 3 color attachments) and every bind group as a descriptor set (a layout with all of them and push constants fails in vkCreatePipelineLayout), and a pipeline's stages keep their shader module, so a variant made at draw time translates it after the app destroyed it
2026-11-25 14:02:24 +00:00
naga
vk: run llama.cpp's quantized models: the translator keeps barriers in uniform control flow past invocation-dependent continues, reads num_workgroups and workgroup_id without naga's private copy, runs workgroups wider than the device's limit as virtual invocations and lowers subgroup builtins of shaders without subgroup operations; a compute pipeline WebGPU refuses as read_write is made with its read-only buffers kept; the subgroup size is agreed in the hello (32, KWVK_SUBGROUP_SIZE: Qwen2.5 0.5B Q4_K_M 75 to 22 ms a token on an M4 Pro); timestamp queries resolve once at the read and never go backwards
2026-11-24 21:21:48 +00:00
build.sh
Add guest Vulkan on the page's WebGPU (kwvk): a Vulkan 1.2 ICD in the base (vk/icd, libvulkan_kw.so under the stock loader) sends commands over vsock port 1018 to a renderer in the SDK (createKernel({ vk }), js/core/vk*.ts) that implements them on a GPUDevice, with SPIR-V translated to WGSL by naga as wasm (vk/naga); Wayland, X11 and headless presentation by readback; the page's Guest Vulkan option, Environment row and vkcube, vkmark and GTK tiles; checks in test/vk
2026-11-24 07:23:03 +00:00
glslc.sh
vk: pin glslc (shaderc v2026.4, built from source by vk/glslc.sh) and the SPIR-V headers for test/vk/guest/build-llama.sh, which cross-builds against the pinned Vulkan headers
2026-11-24 21:21:48 +00:00
headers.sh
Add guest Vulkan on the page's WebGPU (kwvk): a Vulkan 1.2 ICD in the base (vk/icd, libvulkan_kw.so under the stock loader) sends commands over vsock port 1018 to a renderer in the SDK (createKernel({ vk }), js/core/vk*.ts) that implements them on a GPUDevice, with SPIR-V translated to WGSL by naga as wasm (vk/naga); Wayland, X11 and headless presentation by readback; the page's Guest Vulkan option, Environment row and vkcube, vkmark and GTK tiles; checks in test/vk
2026-11-24 07:23:03 +00:00
pins.sh
vk: pin glslc (shaderc v2026.4, built from source by vk/glslc.sh) and the SPIR-V headers for test/vk/guest/build-llama.sh, which cross-builds against the pinned Vulkan headers
2026-11-24 21:21:48 +00:00
PROTOCOL.md
vk: let wgpu apps (Zed) create a device and draw: the ICD reports maxFragmentCombinedOutputResources as the sum of storage buffers, storage images and color attachments (8 made wgpu derive 3 color attachments) and every bind group as a descriptor set (a layout with all of them and push constants fails in vkCreatePipelineLayout), and a pipeline's stages keep their shader module, so a variant made at draw time translates it after the app destroyed it
2026-11-25 14:02:24 +00:00