forked from linux-sunxi/meta-sunxi
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[DRAFT] Enable open source GPU support
Enable open source GPU support for Mali Utgard GPUs (lima driver) and Mali Midgard and Bifrost GPUs (panfrost driver). The support is enabled by: - enabling DRM kernel CONFIGs - enabling lima, panfrost and kmsro in Mesa TODO: allow peaceful cohabitation with mali driver. Signed-off-by: Diego Rondini <diego.rondini@kynetics.com>
- Loading branch information
1 parent
d6917d1
commit b8f6944
Showing
4 changed files
with
30 additions
and
15 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,15 @@ | ||
PREFERRED_PROVIDER_virtual/mesa ?= "mesa-gl" | ||
PREFERRED_PROVIDER_virtual/libgl ?= "mesa-gl" | ||
PREFERRED_PROVIDER_virtual/libgles1 ?= "sunxi-mali" | ||
PREFERRED_PROVIDER_virtual/libgles2 ?= "sunxi-mali" | ||
PREFERRED_PROVIDER_virtual/egl ?= "sunxi-mali" | ||
|
||
PACKAGECONFIG_remove_pn-xserver-xorg = "${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'glamor', '', d)}" | ||
|
||
XSERVER += "sunxi-mali \ | ||
sunxi-mali-dev" | ||
|
||
MACHINE_ESSENTIAL_EXTRA_RRECOMMENDS += "\ | ||
kernel-module-mali \ | ||
kernel-module-mali-drm \ | ||
" | ||
#PREFERRED_PROVIDER_virtual/mesa ?= "mesa-gl" | ||
#PREFERRED_PROVIDER_virtual/libgl ?= "mesa-gl" | ||
#PREFERRED_PROVIDER_virtual/libgles1 ?= "sunxi-mali" | ||
#PREFERRED_PROVIDER_virtual/libgles2 ?= "sunxi-mali" | ||
#PREFERRED_PROVIDER_virtual/egl ?= "sunxi-mali" | ||
# | ||
#PACKAGECONFIG_remove_pn-xserver-xorg = "${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'glamor', '', d)}" | ||
# | ||
#XSERVER += "sunxi-mali \ | ||
# sunxi-mali-dev" | ||
# | ||
#MACHINE_ESSENTIAL_EXTRA_RRECOMMENDS += "\ | ||
# kernel-module-mali \ | ||
# kernel-module-mali-drm \ | ||
# " |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# Enable lima and panfrost Mesa drivers | ||
PACKAGECONFIG_append = " lima panfrost" | ||
# Enable KMS renderonly Mesa support | ||
# See https://cgit.freedesktop.org/mesa/mesa/commit/?id=2b780fe89300199f2334539aa1678e9b68f0434f | ||
GALLIUMDRIVERS_append = ",kmsro" |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
CONFIG_DRM=y | ||
CONFIG_DRM_SUN4I=y | ||
CONFIG_DRM_SUN8I_DW_HDMI=y | ||
CONFIG_DRM_SUN8I_MIXER=y | ||
CONFIG_DRM_LIMA=y | ||
CONFIG_DRM_PANFROST=y | ||
CONFIG_CMA=y | ||
CONFIG_DMA_CMA=y |
This file contains 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