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 16:20:03 +08:00
Code
Issues
Packages
Projects
Releases
Wiki
Activity
Files
fda0adc839518052cc692f775fc7aa50ea2881c8
unkernel
/
test
/
gl
History
Pooya Parsa
b347874391
web: rewrite the page as a desktop
2026-11-22 23:19:14 +00:00
..
bridge-check.sh
gl: answer Mesa's busy waits ahead of the GPU (at most one per client, never after a readback of the same resource), mark a query's result pending when the guest asks for it (virglrenderer patch 12), and count parks, readbacks, GL and upload time per frame (vm.gl.stats.renderer, the page's Guest GL row); ?glwait=strict or gl.strictWaits restores vtest's waits
2026-11-21 18:43:31 +00:00
build-guest-state.sh
gl: window images and WebGL2 fixes in the renderer: vm.gl.gpu.image() gives a resource as an ImageBitmap with alpha, without readback (kw_vgpu_blit; the context now has alpha and presentation writes it opaque), for a page compositor showing guest dmabufs by resource id; snapshots are refused only while a 3D resource exists or a context has submitted commands, and a restored device recreates an idle context; a failed 3D command records its reason (stats.lastError), a lost WebGL context fails every command at once, and the blit clears the GL errors it leaves; virglrenderer patches 14 to 16: border clamp maps to edge clamp, vertex inputs and colour outputs are typed on WebGL2 (Firefox's WebRender draws with integer attributes: its context went into error and its window stayed transparent), integer colour buffers are cleared with glClearBuffer
2026-11-22 09:38:49 +00:00
debian-disk.mjs
Give the guest /dev/dri: kwvirtio, a virtio transport over host imports, with the stock virtio_gpu driver (createKernel({ gpu }), --gpu); the SDK's device model shows dumb-buffer scanouts on the host display and, with gl, runs virgl 3D on the page's renderer through virglrenderer's API (patch 13), presents a KMS scanout from the renderer's texture without readback and gives host code a resource's texture (vm.gl.gpu.texture); the kernel leaves out I2C, the HDMI infoframe library, the panel bridge and NET_DEVMEM (four generic switches) and backports the virtio-gpu damage-clip fix
2026-11-21 20:27:49 +00:00
drm-page.js
gl: a new renderer after a lost WebGL context, and no renderer for 2D clients: after a loss the guest's next new GL context (or vtest client) builds a fresh renderer, so GL programs started after it work without a page reload (those running at the loss fail every command until restarted; vm.gl.status lost, losses, renewals); a dumb-buffer KMS client's context commands are held and answered without loading the renderer, and reach it before the first command that needs GL; checks for display resize, multisampling, context loss and Chromium's GPU path
2026-11-22 12:17:33 +00:00
drm.html
Give the guest /dev/dri: kwvirtio, a virtio transport over host imports, with the stock virtio_gpu driver (createKernel({ gpu }), --gpu); the SDK's device model shows dumb-buffer scanouts on the host display and, with gl, runs virgl 3D on the page's renderer through virglrenderer's API (patch 13), presents a KMS scanout from the renderer's texture without readback and gives host code a resource's texture (vm.gl.gpu.texture); the kernel leaves out I2C, the HDMI infoframe library, the panel bridge and NET_DEVMEM (four generic switches) and backports the virtio-gpu damage-clip fix
2026-11-21 20:27:49 +00:00
kwgl-state.c
gl: run virglrenderer on one WebGL2 context for guest GL, checked headless on the host: a patch series on virglrenderer 1.3.0 (single GL context mode, GLES 3.0 and WebGL2 fixes, emscripten build, shared-server fixes), the wasm module and its GL shim, a vtest bridge that terminates memfds (WebSocket for the test page, byte stream for the guest), and a check suite of unmodified Mesa clients against the native and the wasm renderer
2026-11-21 16:06:54 +00:00
page-check.mjs
web: rewrite the page as a desktop
2026-11-22 23:19:14 +00:00
stream-check.sh
gl: guest GL in unkernel behind createKernel({ gl }): the SDK loads the wasm renderer from dist (virgl.mjs, virgl.wasm), listens on vsock port 1019 and starts the vtest forwarder shipped in the base's kw layer; a prepared Debian disk and an end-to-end check in headless Chromium (eglinfo, frame checksums, glmark2 against llvmpipe)
2026-11-21 17:38:25 +00:00
stream-relay.js
gl: guest GL in unkernel behind createKernel({ gl }): the SDK loads the wasm renderer from dist (virgl.mjs, virgl.wasm), listens on vsock port 1019 and starts the vtest forwarder shipped in the base's kw layer; a prepared Debian disk and an end-to-end check in headless Chromium (eglinfo, frame checksums, glmark2 against llvmpipe)
2026-11-21 17:38:25 +00:00
unkernel-check.mjs
gl: a new renderer after a lost WebGL context, and no renderer for 2D clients: after a loss the guest's next new GL context (or vtest client) builds a fresh renderer, so GL programs started after it work without a page reload (those running at the loss fail every command until restarted; vm.gl.status lost, losses, renewals); a dumb-buffer KMS client's context commands are held and answered without loading the renderer, and reach it before the first command that needs GL; checks for display resize, multisampling, context loss and Chromium's GPU path
2026-11-22 12:17:33 +00:00
unkernel-page.js
gl: guest GL in unkernel behind createKernel({ gl }): the SDK loads the wasm renderer from dist (virgl.mjs, virgl.wasm), listens on vsock port 1019 and starts the vtest forwarder shipped in the base's kw layer; a prepared Debian disk and an end-to-end check in headless Chromium (eglinfo, frame checksums, glmark2 against llvmpipe)
2026-11-21 17:38:25 +00:00
unkernel.html
gl: guest GL in unkernel behind createKernel({ gl }): the SDK loads the wasm renderer from dist (virgl.mjs, virgl.wasm), listens on vsock port 1019 and starts the vtest forwarder shipped in the base's kw layer; a prepared Debian disk and an end-to-end check in headless Chromium (eglinfo, frame checksums, glmark2 against llvmpipe)
2026-11-21 17:38:25 +00:00
vtest-check.sh
gl: run virglrenderer on one WebGL2 context for guest GL, checked headless on the host: a patch series on virglrenderer 1.3.0 (single GL context mode, GLES 3.0 and WebGL2 fixes, emscripten build, shared-server fixes), the wasm module and its GL shim, a vtest bridge that terminates memfds (WebSocket for the test page, byte stream for the guest), and a check suite of unmodified Mesa clients against the native and the wasm renderer
2026-11-21 16:06:54 +00:00