Commit Graph

21 Commits

Author SHA1 Message Date
Jeffy Chen
205c5261a1 CL: Bump headers
Bump to tag v2023.04.17 in:
https://github.com/KhronosGroup/OpenCL-Headers.git

Change-Id: Ic13a6a81906101a9aeab7ecbc1bdd0aa894e4302
Signed-off-by: Jeffy Chen <jeffy.chen@rock-chips.com>
2023-07-24 17:41:58 +08:00
Jeffy Chen
2f52a7c5f5 gbm: Bump to meson-23.1.3
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>
2023-07-24 17:41:56 +08:00
Jeffy Chen
81333f14a8 include: Drop unused FBDEV
Change-Id: Ib73b7c1156e804ef7a3e65887cd6621912dad080
Signed-off-by: Jeffy Chen <jeffy.chen@rock-chips.com>
2023-07-24 16:19:16 +08:00
Jeffy Chen
ff98f49e36 Add wayland-egl headers from wayland-1.19.0
We are using DDK's wayland-egl libraries.

Change-Id: Icded969533ad40a99ddbb879b986584bbadd2f32
Signed-off-by: Jeffy Chen <jeffy.chen@rock-chips.com>
2022-05-17 17:16:45 +08:00
Jeffy Chen
2f395cdb33 gbm_wrapper: Bump to meson3d 21.2.6
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>
2021-11-29 11:10:55 +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
64c6c30728 meson: Use install_subdir to install headers
No functional changes.

Change-Id: Iff46805d7613b91f84e354c2b1872aa4cf3b1c91
Signed-off-by: Jeffy Chen <jeffy.chen@rock-chips.com>
2020-12-24 11:23:34 +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
7359b29cb9 gbm: Compat to mesa3d 20.1.5 APIs
Use gbm wrapper library to provide missing functions.

Change-Id: I62c9838f91adfd2f54df5eb75b256c361c7ce9a0
Signed-off-by: Jeffy Chen <jeffy.chen@rock-chips.com>
2020-08-13 17:43:00 +08:00
Jeffy Chen
83f8b828ef Rename khrplatform.h to mali_khrplatform.h
The mesa upstream decided to install khrplatform.h within GL(dev), which
would conflit with ours:
dpkg: error processing archive /var/cache/apt/archives/mesa-common-dev_18.3.6-2+deb10u1_arm64.deb (--unpack):
trying to overwrite '/usr/include/KHR/khrplatform.h', which is also in package libmali-rk-dev:arm64 1.7-1

Let's rename it to avoid that.

Done by these commands:
mv include/KHR/{,mali_}khrplatform.h
ag khrplatform.h -l|xargs sed -i "s/\<khrplatform.h/mali_khrplatform.h/g"

Change-Id: I1aec209c60481332ffecd033ed9433e91cc5fb97
Signed-off-by: Jeffy Chen <jeffy.chen@rock-chips.com>
2020-04-28 10:15:46 +08:00
Li Huang
1b74a4844d Update EGL && GLES && KHR header file
EGL:
Form: https://github.com/KhronosGroup/EGL-Registry.git
commit: de3a5e867d906a04a5c37ee0d89e7f01d3598eb9

GLES:
From: https://github.com/KhronosGroup/OpenGL-Registry.git
commit: 92540bc2b20ac

KHR:
from: https://github.com/KhronosGroup/EGL-Registry.git
commit: 4744552d13f44

Change-Id: I2540563dac7c9b2c6e438c65dfc739ceb9eddbe8
Signed-off-by: Li Huang <putin.li@rock-chips.com>
2019-12-11 11:16:17 +08:00
Jeffy Chen
67a812cfe7 Fix missing KHR header
This header was removed by mistake, let's add it back.

Change-Id: I63d5f5592b7cd7b6fdbb1077cfe4fdf2900649da
Signed-off-by: Jeffy Chen <jeffy.chen@rock-chips.com>
2019-11-20 16:14:24 +08:00
Caesar Wang
946be91008 debian: update wayland for rk3399
Signed-off-by: Caesar Wang <wxt@rock-chips.com>
2019-10-31 15:56:43 +08:00
Caesar Wang
26ad8bcf84 libmali: add GBM_FORMAT_R8
Change-Id: Ia8a8d71402c71250bbf7f1979b6d07bbda5accae
Signed-off-by: Caesar Wang <wxt@rock-chips.com>
2019-08-01 15:33:03 +08:00
Li Huang
790d55e187 libmali: update gbm.h header file
Change-Id: I00670cdf356feed7419f809c0f48fb947344917d
Signed-off-by: Li Huang <putin.li@rock-chips.com>
2019-07-16 17:28:15 +08:00
Eddie Cai
8605a3c81b libmali: sync to the latest version in github
Change-Id: I241171c0f268ef72d3ffa4c006c86da75f1b4a47
Signed-off-by: Eddie Cai <eddie.cai.linux@gmail.com>
2018-05-23 13:05:37 +08:00
Randy Li
9519faa8c9 build: install OpenCL information
Signed-off-by: Randy Li <randy.li@rock-chips.com>
2016-08-09 09:32:02 +08:00
Randy Li
9bbe064eac header: add opencl header
But it won't be installed, I prefer to use the header offered
by debian.

Signed-off-by: Randy Li <randy.li@rock-chips.com>
2016-08-09 09:01:06 +08:00
Randy Li
88da160ca9 use the header from graphics team
It may not different from mesa project. But just it would look
better.

Signed-off-by: Randy Li <randy.li@rock-chips.com>
2016-07-26 14:07:57 +08:00
Randy Li
ca6dfebf62 add header files
Those header files comes from mesa project. It would be better
to use the mali export version instead.

Signed-off-by: Randy Li <randy.li@rock-chips.com>
2016-07-18 10:43:45 +08:00
Randy Li
5d92acec4e first commit 2016-07-14 18:47:17 +08:00