Skip to content

kmscon: split the OpenGL ES path into kmscon-mod-gl - #165

Merged
dangowrt merged 1 commit into
openwrt:masterfrom
dangowrt:kmscon-optional-mesa
Sep 28, 2026
Merged

dangowrt merged 1 commit into
openwrt:masterfrom
dangowrt:kmscon-optional-mesa

Conversation

@dangowrt

Copy link
Copy Markdown
Member

kmscon depends on a libmesa provider, so every system with a KMS console pulls in Mesa, but the main binary links none of it: the GL code lives entirely in mod-drm3d.so and mod-gltex.so, which are dlopened from a directory scan of the module directory. The software renderer bbulk is built into the binary, the drm2d backend needs only libdrm, and hwaccel is off by default, so Mesa is unused on a default install and the modules are absent-tolerant by construction.

Ship those two modules as kmscon-mod-gl and build them only when it is selected. A system that carries Mesa for other reasons installs the package and starts kmscon with --hwaccel; everything else gets a console with no Mesa in the build at all.

kmscon depends on a libmesa provider, so every system with a KMS
console pulls in Mesa, but the main binary links none of it: the GL
code lives entirely in mod-drm3d.so and mod-gltex.so, which are
dlopened from a directory scan of the module directory. The software
renderer bbulk is built into the binary, the drm2d backend needs only
libdrm, and hwaccel is off by default, so Mesa is unused on a default
install and the modules are absent-tolerant by construction.

Ship those two modules as kmscon-mod-gl and build them only when it
is selected. A system that carries Mesa for other reasons installs
the package and starts kmscon with --hwaccel; everything else gets a
console with no Mesa in the build at all.

Signed-off-by: Daniel Golle <[email protected]>
@dangowrt
dangowrt merged commit 7dd5eba into openwrt:master Sep 28, 2026
24 of 25 checks passed
@dangowrt
dangowrt deleted the kmscon-optional-mesa branch September 28, 2026 23:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant