The hook library is for hacking GBM/EGL/X11 APIs.
Change-Id: I98c0d0a4fff4b1a56688e82367cf563700eec8f9
Signed-off-by: Jeffy Chen <jeffy.chen@rock-chips.com>
Fix the issue where rpath introduces absolute paths when building
outside the source directory.
Change-Id: I4d5fd66211e0fea5ce0dc8fd0d1bb2e32bd0fc6f
Signed-off-by: Jeffy Chen <jeffy.chen@rock-chips.com>
It might require custom firmware dir for cases like 'usr merge'.
Change-Id: Icaacd3fa26a8ff5bb2e7b8413c6e165b331ab16b
Signed-off-by: Jeffy Chen <jeffy.chen@rock-chips.com>
The asneeded might be enabled by default in the OS.
Change-Id: I4d18b04a3619673b403af85069d3f0300a1c3731
Signed-off-by: Jeffy Chen <jeffy.chen@rock-chips.com>
The cc.has_function() would fail if any dependency not found.
Change-Id: I208a391f4d3c23a072bb6f2c25c9f8ec8c4f8a18
Signed-off-by: Jeffy Chen <jeffy.chen@rock-chips.com>
Different DDK might have different CL versions.
Change-Id: I7384a0f653e3e774cc46a4c545a5697986a31e27
Signed-off-by: Jeffy Chen <jeffy.chen@rock-chips.com>
Major changes:
1/ Add gbm_bo_create_with_modifiers2 and gbm_surface_create_with_modifiers2.
2/ Add headers for different versions of GBM.
3/ Detect platforms from library content.
Change-Id: Iaca158a926f5fe8c14698eb7e2ad5a427eb1632c
Signed-off-by: Jeffy Chen <jeffy.chen@rock-chips.com>
Use ' ' to split the outout of new grabber.sh.
Change-Id: I1ecd4c2c9f52bf2e64dd45e6a52fd3eb4148e80a
Signed-off-by: Jeffy Chen <jeffy.chen@rock-chips.com>
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>
Tested with an internal version of DDK for vulkan, vulkaninfo works.
Change-Id: I5875165e3c93b53c77aaeef09fbd673306bae14d
Signed-off-by: Jeffy Chen <jeffy.chen@rock-chips.com>
The newer DDK might provide newer API versions.
Change-Id: I4f8188173c356bc6a57d0f002d8f0ec7fbb5b311
Signed-off-by: Jeffy Chen <jeffy.chen@rock-chips.com>
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>
Major changes:
1/ Add wrapper for gbm_bo_get_fd_for_plane(only support plane 0).
2/ Drop gbm_surface_needs_lock_front_buffer.
3/ Add GBM_BO_USE_PROTECTED(just for compiling).
Change-Id: I8075c37708153cf5f7f4b2cbbf931e90ec3ac24e
Signed-off-by: Jeffy Chen <jeffy.chen@rock-chips.com>
The default optimize level is O3, there're more to come.
Change-Id: I4671d9664a565c43300ec46a0aa6ac91661bd607
Signed-off-by: Jeffy Chen <jeffy.chen@rock-chips.com>
Not all users would use the cflags from pkgconfig.
Change-Id: If66570b4fba51c70f2e01bd4911714d78b7a8b7e
Signed-off-by: Jeffy Chen <jeffy.chen@rock-chips.com>
The mali library might has some required packages.
Change-Id: I67cfa599f386f0fb4ed814c61b8882c64ee11026
Signed-off-by: Jeffy Chen <jeffy.chen@rock-chips.com>
The utgard DDK might not work with wrappers.
Change-Id: I724f9abe218e5ba96e149bf75a5b80c1ea17f3b7
Signed-off-by: Jeffy Chen <jeffy.chen@rock-chips.com>
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>
This is useful for debian-based distributions.
Change-Id: Ib2a1e9bbc878e25c619b5b388a1ad139141cc1a7
Signed-off-by: Jeffy Chen <jeffy.chen@rock-chips.com>
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>
The RTLD_NEXT would not work if the gbm library was loaded with
RTLD_LOCAL.
Change-Id: I4256b52271a92e03dbcb490b1e7fabeb32be6401
Signed-off-by: Jeffy Chen <jeffy.chen@rock-chips.com>
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>
Use gbm wrapper library to provide missing functions.
Change-Id: I62c9838f91adfd2f54df5eb75b256c361c7ce9a0
Signed-off-by: Jeffy Chen <jeffy.chen@rock-chips.com>
Fix this warning:
WARNING: Project targeting '>=0.47.0' but tried to use feature introduced in '0.49.0': / with string arguments
Change-Id: Ic1af5d59d1cbfb11b69c078f7b7754a8ad7cf64b
Signed-off-by: Jeffy Chen <jeffy.chen@rock-chips.com>