Repository navigation
kmscon: split the OpenGL ES path into kmscon-mod-gl - #165
Merged
Merged
Conversation
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]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.