Commit graph

13 commits

Author SHA1 Message Date
Jeffy Chen
8112c82ac2 meson: Make wayland-egl wrapper optional
Change-Id: Ie94a62129280ffeb887689f7f1eb9d404b0b2fe9
Signed-off-by: Jeffy Chen <jeffy.chen@rock-chips.com>
2025-02-25 12:15:59 +08:00
Jeffy Chen
38ae3b4935 meson: Lower version requirement to 0.53.0
Change-Id: I0daf2e72ece536bcd161bf0d7ea39e56fde23e27
Signed-off-by: Jeffy Chen <jeffy.chen@rock-chips.com>
2023-11-28 09:45:38 +08:00
Jeffy Chen
f450951d02 meson: Add firmware-dir option
It might require custom firmware dir for cases like 'usr merge'.

Change-Id: Icaacd3fa26a8ff5bb2e7b8413c6e165b331ab16b
Signed-off-by: Jeffy Chen <jeffy.chen@rock-chips.com>
2023-11-07 10:47:12 +08:00
Jeffy Chen
6e1c5cbcf5 Refactor for mixed platforms
Major changes:
1/ Allow mixed platforms, e.g. x11-wayland-gbm.
2/ Move extra features, e.g. without-cl, from subversion to platform.
3/ Rename all libraries with GBM API to libmali-*-gbm.so

Change-Id: I9364f8298080788b41c5f3a3cf69aec9a2859ff5
Signed-off-by: Jeffy Chen <jeffy.chen@rock-chips.com>
2022-07-14 17:13:02 +08:00
Jeffy Chen
ba714e875f Support force enabling thread support for X11
By adding a hook library to call XInitThreads() before getting egl
display.

Enabled by default, set env "MALI_X11_NO_FORCE_THREADS" to disable.

Change-Id: I0af8b29c90149bd7a920bfd54f06d5129b5e446c
Signed-off-by: Jeffy Chen <jeffy.chen@rock-chips.com>
2022-03-25 14:58:08 +08:00
Jeffy Chen
c861959ac5 meson: Support optimize-level option
The default optimize level is O3, there're more to come.

Change-Id: I4671d9664a565c43300ec46a0aa6ac91661bd607
Signed-off-by: Jeffy Chen <jeffy.chen@rock-chips.com>
2021-08-31 09:47:44 +08:00
Jeffy Chen
ec25af4296 meson: Disable wrapper packages for utgard by default
The utgard DDK might not work with wrappers.

Change-Id: I724f9abe218e5ba96e149bf75a5b80c1ea17f3b7
Signed-off-by: Jeffy Chen <jeffy.chen@rock-chips.com>
2021-07-15 11:28:08 +08:00
Jeffy Chen
86ad51dbe0 meson: Support installing without wrapper packages
Currently we are using wrapper packages to provide new GBM API and
vendor package.

But that requires the API clients honor our package config(.pc) files.

Adding an option to disable wrappers for the ones that don't follow the
rules.

Change-Id: Ie55aa712311c1df21ba0c11b924454febecca9f6
Signed-off-by: Jeffy Chen <jeffy.chen@rock-chips.com>
2021-03-26 21:35:57 +08:00
Jeffy Chen
5e96f0f52d meson: Support vendor packaging
This is useful for debian-based distributions.

Change-Id: Ib2a1e9bbc878e25c619b5b388a1ad139141cc1a7
Signed-off-by: Jeffy Chen <jeffy.chen@rock-chips.com>
2021-03-10 06:50:58 +08:00
Jeffy Chen
c3b4a820e1 Support installing khrplatform.h again
Currently the KHR header is depended by mesa's EGL/GLES/GL headers, and
would be provided in mesa-common-dev.

So for the usage of mixing mesa's GL with mali's EGL/GLES, we have to
leave it to mesa's version and let mali uses it's own.

But for people who doesn't want mesa, let's add an option to allow
installing it in mali.

Change-Id: Id6e88e2d7f3c4f6092a3cf1f1078a6a7f284f823
Suggested-by: Gleb Mazovetskiy <glex.spb@gmail.com>
Signed-off-by: Jeffy Chen <jeffy.chen@rock-chips.com>
2021-01-30 04:44:34 +08:00
Jeffy Chen
2e36060922 Support dummy platform
Currently we are supporting these platforms:
x11 gbm wayland only-cl dummy

Change-Id: I82e01c068730e83dccc10c23e2c9ea528aeac920
Signed-off-by: Jeffy Chen <jeffy.chen@rock-chips.com>
2020-11-11 15:04:41 +08:00
Jeffy Chen
07daee4e8a meson: Fix support for OpenCL ICD implementation
The OpenCL ICD implementation should work with OpenCL ICD loader.

So we shouldn't try to install non-ICD OpenCL implementation in this
case.

Change-Id: Idfb4e6058952215075e2cc253c0d5bb43cac6761
Signed-off-by: Jeffy Chen <jeffy.chen@rock-chips.com>
2020-09-27 17:58:48 +08:00
Jeffy Chen
f127d14e87 Support meson build system
meson build -Darch=aarch64 -Dgpu=bifrost-g31 -Dversion=rxp0 -Dplatform=only-cl

Change-Id: I60bb14e16a9cbc9589b85279680c845f53ed0572
Signed-off-by: Jeffy Chen <jeffy.chen@rock-chips.com>
2020-07-31 17:00:25 +08:00