Workaround local symbol warning:
'found local symbol in global part of symbol table'
Or:
'invalid local symbol in global part of symbol table'
depends on lief (pip3 install lief)
Change-Id: I66fbd9ce924354e2ffc1024903e61bf2ac01011d
Signed-off-by: Jeffy Chen <jeffy.chen@rock-chips.com>
To make sure that the libmali.so is loaded before the initial no-load
dlopen() here.
Fix dlopen() error when linking with libmali-hook.so alone:
FATAL: dlopen(libmali.so.1) failed((null))
Change-Id: I66599d9125322a956470189e926870bb6fcb635c
Signed-off-by: Jeffy Chen <jeffy.chen@rock-chips.com>
1. fixup time consuming on glclear, cause by dri2
2. fixup mmap failed, pixmap egl image must use gbm map
3. Use env RK_MALI_SURFACELESS_DISABLE to disable EGL_KHR_surfaceless_context
Signed-off-by: Li Huang <putin.li@rock-chips.com>
Change-Id: I099343c4f82872420dfb34c3926beb6fa1ec0753
sha1sum is 4247499486eb7a657a4be449ebbf80a4a9e09b5c
MUST be used with valhall_device_driver of DDK g21p0-01eac0
For the device driver, DDK version, such as "g21p0-01eac0", could be found
in file kernel/drivers/gpu/arm/bifrost/Kbuild:
"MALI_RELEASE_NAME ?= '"g21p0-01eac0"'".
It could be also found in commits messages under kernel/drivers/gpu/arm/bifrost,
such as:
"MALI: rockchip: upgrade bifrost DDK to g21p0-01eac0, from g18p0-01eac0".
Change-Id: I19aca1a6753a6c1a3cc3ebf96613efbcd75b7a73
Signed-off-by: Zhen Chen <chenzhen@rock-chips.com>
Signed-off-by: Caesar Wang <wxt@rock-chips.com>
disable cache on DRM_IOCTL_MODE_CREATE_DUMB, on gbm_bo_create
Signed-off-by: Li Huang <putin.li@rock-chips.com>
Change-Id: I6956c6943eab5c81b8d583b257e6a7d7154fbc1d
Add EGL_KHR_surfaceless_context support for GLES1 | GLES2 bit
Signed-off-by: Li Huang <putin.li@rock-chips.com>
Change-Id: I6674c2372a977fdb2b0cdbb77ed32f764ad33eb2
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>
Compared to g13p0-01eac0-6, the following changes are made:
- GBM: YUV format and wl_buffer importation support
- F: wayland: from 陈渐飞: Fix 2 bugs
Change-Id: I806f63818b3a75e61bba951440ae97817fdf1f5c
Signed-off-by: Zhen Chen <chenzhen@rock-chips.com>
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>
It's part of EGL 1.5 features, some clients might call them directly.
Change-Id: I508d4c5afb73f2d8c1d9d781b2a64154296207b0
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>
When used in conjunction with the kernel patch "WA: Mali: bifrost: disable tiler heap reclaiming,"
it can resolve the issue reported in https://redmine.rock-chips.com/issues/414343.
Signed-off-by: Zhen Chen <chenzhen@rock-chips.com>
Change-Id: I3be309548d78d358df25625a1576a5a987adbdc5
sha1sum is 05cb1dee820b5e874fa7b03c941b58dfc01360ed.
MUST be used with valhall_device_driver of DDK g18p0-01eac0
The DDK version, such as "g18p0-01eac0", could be found
in file kernel-5.10/drivers/gpu/arm/bifrost/Kbuild:
"MALI_RELEASE_NAME ?= '"g18p0-01eac0"'".
It could be also found in commits messages under kernel-5.10/drivers/gpu/arm/bifrost,
such as: "MALI: rockchip: upgrade bifrost DDK to g18p0-01eac0, from g17p0-01eac0".
Signed-off-by: Zhen Chen <chenzhen@rock-chips.com>
Change-Id: I2502f4764c762f28ee388a350b38bd16aac449ed
The Mali vulkan would not accept invalid modifier:
https://github.com/vkmark/vkmark/pull/47
Tested on RK3588 EVB with:
vkmark --winsys kms
Change-Id: I995a91aca0c55d15fc67bb70fdbbfc5cb32ea198
Signed-off-by: Jeffy Chen <jeffy.chen@rock-chips.com>
sha1sum is 1761c6fffbee4616831b9ffd71c5d372d6cd3954
MUST be used with valhall_device_driver of DDK g17p0-01eac0
The DDK version, such as "g17p0-01eac0", could be found
in file kernel-5.10/drivers/gpu/arm/bifrost/Kbuild:
"MALI_RELEASE_NAME ?= '"g17p0-01eac0"'".
It could be also found in commits messages under kernel-5.10/drivers/gpu/arm/bifrost,
such as:
"5fd0cf3 MALI: rockchip: upgrade bifrost DDK to g17p0-01eac0, from g15p0-01eac0".
Signed-off-by: Zhen Chen <chenzhen@rock-chips.com>
Change-Id: I0f149a24013f8b9528e95369634b40e878434c21
run `./scripts/normalize.sh`
note: The required patchelf version on PC.
patchelf > 0.9
Change-Id: I57b4ef6fd7c4b11e47df4a9a10e93e989d8d09d1
Signed-off-by: Jacob Chen <cc@rock-chips.com>
Signed-off-by: Caesar Wang <wxt@rock-chips.com>
sha1sum is a6c773301766a84e9e8687b5ba5fb7be8e51ad57.
MUST be used with valhall_device_driver of DDK g15p0-01eac0.
valhall_device_driver is for Mali Valhall GPU, such as G610 in rk3588.
bifrost_device_driver is for Mali Bifrost GPU, such as G52 in rk3568 and G31 in rk3326.
They use the same set of codes, the main part is under kernel-5.10/drivers/gpu/arm/bifrost.
If config MALI_CSF_SUPPORT is enabled, the directory would be built as valhall_device_driver;
otherwise, it would be built as bifrost_device_driver.
The DDK version, such as "g15p0-01eac0", could be found
in file kernel-5.10/drivers/gpu/arm/bifrost/Kbuild:
"MALI_RELEASE_NAME ?= '"g15p0-01eac0"'".
It could be also found in commits messages under kernel-5.10/drivers/gpu/arm/bifrost,
such as:
"4491e60 MALI: rockchip: upgrade bifrost DDK to g15p0-01eac0, from g13p0-01eac0".
Signed-off-by: Zhen Chen <chenzhen@rock-chips.com>
Change-Id: I47bc8004c85b5cdfb1f8f89a3033881a2f21b734