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
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>