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-02 00:39:40 +08:00
Code
Issues
Packages
Projects
Releases
Wiki
Activity
Files
tailscale-js
unkernel
/
vk
History
Pooya Parsa
cec0a49f5d
vk: make a wgpu app's graphics pipelines for the negative viewport height it draws with: the ICD sends the app's engine name in the hello, and for wgpu-hal the host translates vertex stages without the y flip and builds that variant in vkCreateGraphicsPipelines (it was built in the first submit, after an unused flipped one); the other orientation is a variant at draw time, logged once per connection with the engine's name; the host check draws both ways after destroying the shader modules and runs its SPIR-V suite with the toolchain's glslc
2026-11-25 14:31:55 +00:00
..
icd
vk: make a wgpu app's graphics pipelines for the negative viewport height it draws with: the ICD sends the app's engine name in the hello, and for wgpu-hal the host translates vertex stages without the y flip and builds that variant in vkCreateGraphicsPipelines (it was built in the first submit, after an unused flipped one); the other orientation is a variant at draw time, logged once per connection with the engine's name; the host check draws both ways after destroying the shader modules and runs its SPIR-V suite with the toolchain's glslc
2026-11-25 14:31:55 +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: make a wgpu app's graphics pipelines for the negative viewport height it draws with: the ICD sends the app's engine name in the hello, and for wgpu-hal the host translates vertex stages without the y flip and builds that variant in vkCreateGraphicsPipelines (it was built in the first submit, after an unused flipped one); the other orientation is a variant at draw time, logged once per connection with the engine's name; the host check draws both ways after destroying the shader modules and runs its SPIR-V suite with the toolchain's glslc
2026-11-25 14:31:55 +00:00