Pooya Parsa
c5ec8fdd97
gl: keep textures that WebGL refuses off used sampler units, so that such a draw lands ( #27 )
...
virglrenderer patch 0020: on a WebGL host a used sampler unit holds no texture rather than one attached to the draw framebuffer or of another base type than its sampler. unkernel-check.mjs --drm gains step t (test/gpu/feedback.c).
2026-11-24 18:56:21 +00:00
Pooya Parsa
0da40f0a35
gl: let a WebGL error drop one call instead of putting the guest's context in error ( #27 )
...
virglrenderer builds with -Dcheck-gl-errors=false and patch 0019: a host GL error is logged and counted (stats.glErrors) and the context goes on; GL_OUT_OF_MEMORY stays fatal.
2026-11-24 18:12:50 +00:00
Pooya Parsa
b347874391
web: rewrite the page as a desktop
2026-11-22 23:19:14 +00:00
Pooya Parsa
ef3486551a
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
Pooya Parsa
cdb3ddc467
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
Pooya Parsa
84d70b9b83
gl: load the renderer on the guest's first GL use (the device advertises virgl's capsets from fixed sizes; gl.eager, ?glload=eager load before boot) and turn guest GL on by default for Debian in the page, with the virtio-gpu device (?gpu=0: the vtest link only); the kw layer ships /etc/X11/kw-kms.conf (modesetting with glamor on /dev/dri/card0) and sets the vtest variables only without the device; virtio-gpu waits up to 30 s, killably, for a capset; a suspend while a program uses the GPU is refused at once with a message
2026-11-21 22:57:45 +00:00
Pooya Parsa
4d20370925
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
Pooya Parsa
199211ae8f
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
Pooya Parsa
ea9ddc296f
web: offer guest GL (?gl=1, Options, Debian only): the page serves the renderer, passes kw.gl=1 so that the guest's shells use virgl (profile.d/kw-gl.sh), and names the WebGL2 renderer in the Environment tab, warning of a software one; release.yml attaches virgl.mjs and virgl.wasm
2026-11-21 18:12:27 +00:00
Pooya Parsa
ff792f6121
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
Pooya Parsa
e26f9711fc
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