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
Include following changes:
gbm/wayland: add USE_RK_DRM to close authorize and busid
wayland: 移除wayland_server中对"authorize_allocator"接口的调用.
Change-Id: If1f396a6bc4c582ecd214bf8d9241bb7cdbbf2e6
Signed-off-by: Zhen Chen <chenzhen@rock-chips.com>
Signed-off-by: Jeffy Chen <jeffy.chen@rock-chips.com>
The gpu driver needs to be upgraded to g13p0-01eac0 to solve the problem of
gpu stability in certain scenarios. Also, the firmware needs to be updated
synchronously to solve the performance problems associated with the
new driver.
Change-Id: I22fc3239efd614c82ffcf3211bfb01bcf4c12fca
Signed-off-by: Zhen Chen <chenzhen@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>
1/ Support eglCreateImageKHR() with EGL_WAYLAND_BUFFER_WL.
2/ Fix crash when cleanup resources after eglTerminate().
Change-Id: I1d5f3f9a44f091e5bae2982348956bc10ff2bab9
Signed-off-by: Putin Lee <putin.li@rock-chips.com>
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>
It was built with gcc-linaro-4.9.4 as other libmali for g610 here.
Change-Id: I227599e28814ce31d3962368a5d741904e9a08dc
Signed-off-by: Zhen Chen <chenzhen@rock-chips.com>
Signed-off-by: Jeffy Chen <jeffy.chen@rock-chips.com>
These libraries depends on new glibc and libstdc++(with GCC 10.3), which
is unusable for old systems.
Let's drop them, and replace with proper ones(with GCC 4.9) later.
Change-Id: Ia723592bfd5369811a306cad1d832773cd62284e
Signed-off-by: Jeffy Chen <jeffy.chen@rock-chips.com>
Compared to version g6p0-01eac0-5, there is following important change:
1. wayland: 移除wayland_server中对"authorize_allocator"接口的调用.
Change-Id: I759a7321b3c824bd26e952c66eec120fdea6f64c
Signed-off-by: Zhen Chen <chenzhen@rock-chips.com>
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>
Some pre-built mali libraries would have local symbol issue:
readelf -s <libmali.so>:
Warning: local symbol 9 found at index >= .dynsym's sh_info value of 9
Let's use lief to increase .dynsym section's sh_info to workaround it.
Change-Id: Icf2037824d9c1312c5b24b982f628319a118988a
Signed-off-by: Jeffy Chen <jeffy.chen@rock-chips.com>