RK3399
中
使
⽤
的
图
形
芯
⽚
为
Mali-T860
,
没
有
开
源
3D
驱
动
。
rockchip
提
供
的
闭
源
驱
动
仅
⽀
持
OpenGL ES
。
http://opensource.rock-chips.com/wiki_Graphics
在
上
⾯
的
链
接
中
,
提
到
了
两
种
DDX
图
形
驱
动
:
armsoc
、
modesetting
。
modesetting
驱
动包
含
在
Xorg
中
,
armsoc
的
源
码
链
接
如
下
:
https://github.com/markyzq/xf86-video-armsoc
另
外
还
有
ARM
官
⽅
提
供
的
针
对
Mali
的
2D
驱
动
:
xf86-video-mali
https://developer.arm.com/products/software/mali-drivers/display-drivers
https://developer.arm.com/products/software/mali-drivers/ump-user-space
armsoc
及
mali
驱
动
都
使
⽤
EXA
加
速
⽅
式
,
但
需
要
UMP
(
Unified Memory Provider
)
⽀
持
。
以
下
链
接
提
到
,
RK3399
的
2D
加
速
单
元
没
有
MMU
,
⽆
法
实
现
UMP
,
⽆
法
使
⽤
EXA
加
速
。
https://github.com/rockchip-linux/rk-rootfs-build/issues/25
At the begining, we want to use 2D accel unit in xserver, just like other platforms,
but our 2D accel unit don't have a mmu, which means it's not suitable for EXA, so we switch to glamor.
所
以
使
⽤
2D
驱
动
modesetting
,
且
唯
⼀
能
⽤
的
加
速
⽅
式
是
glamor
。
获
取
rockchip
的
libdrm
源
码
,
如
下
:
https://github.com/rockchip-linux/libdrm-rockchip
为
匹
配
我
们
的
⽂
件
系
统
,
使
⽤
rockchip-2.4.68
分
⽀
。
编
译
⽣
成
如
下
⽂
件
并
安
装
。
安
装
libdrm-rockchip1
,
并
⽤
以
上
版
本替
换
系
统
已
安
装
版
本
。
RK3399
的
图
形
芯
⽚
2D
驱
动
libdrm-rockchip
libdrm2_2.4.68-2_arm64.deb
libdrm2-dbg_2.4.68-2_arm64.deb
libdrm2-udeb_2.4.68-2_arm64.udeb
libdrm-amdgpu1_2.4.68-2_arm64.deb
libdrm-amdgpu1-dbg_2.4.68-2_arm64.deb
libdrm-dev_2.4.68-2_arm64.deb
libdrm-freedreno1_2.4.68-2_arm64.deb
libdrm-freedreno1-dbg_2.4.68-2_arm64.deb
libdrm-nouveau2_2.4.68-2_arm64.deb
libdrm-nouveau2-dbg_2.4.68-2_arm64.deb
libdrm-radeon1_2.4.68-2_arm64.deb
libdrm-radeon1-dbg_2.4.68-2_arm64.deb
libdrm-rockchip1_2.4.68-2_arm64.deb
libdrm-rockchip1-dbg_2.4.68-2_arm64.deb
1
2
3
4
5
6
7
8
9
10
11
12
13
14