firefly-rk3399 图形和视频加速(ubuntu)
本帖最后由 isle 于 2017-4-11 11:44 编辑firefly-rk3399 在ubuntu下支持图形加速和视频解码加速了(GPU&VPU)
现提供beta版测试固件:
3D测试:
<div id="code_hu1"><ol><li>sudo apt install glmark2-es2
</li><li>glmark2-es2</li></ol></div>
解码测试:
test_dec-gst.sh
下载:
baidu:https://pan.baidu.com/s/1qXFzhik
google:https://drive.google.com/file/d/ ... Ws/view?usp=sharing
更新(add opencl)baidu: http://pan.baidu.com/s/1jISdOZO
google: https://drive.google.com/file/d/0B7HO8lbGgAqAb1Axb2ZXQi1jYkU/view?usp=sharing
{:4_165:}折腾安卓在折腾Ubuntu{:5_247:} 有同学用了么,网络好用么?//记得上个固件网络不可用 我刷了,貌似源用的是armhf
318 和324的固件网络都不可用,也不见回复和解决,不知道该怎么处理 网络不行?不会,这两个固件都是测试过的,你在试下android下可能用,如果还不行,联系下售后。 网络可用, 分辨率不能改, 安装beta版测试固件 使用GLMARK2-ES2分数47分, 是否正常?
firefly@firefly:~$ glmark2-es2
=======================================================
glmark2 2014.03+git20150611.fa71af2d
=======================================================
OpenGL Information
GL_VENDOR: ARM
GL_RENDERER: Mali-T860
GL_VERSION: OpenGL ES 3.2 v1.r13p0-00rel0-git(9a84806).3f1d5bb367a82ffee80da72cf5fca604
=======================================================
use-vbo=false: FPS: 57 FrameTime: 17.544 ms
use-vbo=true: FPS: 54 FrameTime: 18.519 ms
texture-filter=nearest: FPS: 53 FrameTime: 18.868 ms
texture-filter=linear: FPS: 55 FrameTime: 18.182 ms
texture-filter=mipmap: FPS: 53 FrameTime: 18.868 ms
shading=gouraud: FPS: 51 FrameTime: 19.608 ms
shading=blinn-phong-inf: FPS: 52 FrameTime: 19.231 ms
shading=phong: FPS: 54 FrameTime: 18.519 ms
shading=cel: FPS: 52 FrameTime: 19.231 ms
bump-render=high-poly: FPS: 50 FrameTime: 20.000 ms
bump-render=normals: FPS: 51 FrameTime: 19.608 ms
bump-render=height: FPS: 54 FrameTime: 18.519 ms
kernel=0,1,0;1,-4,1;0,1,0;: FPS: 50 FrameTime: 20.000 ms
kernel=1,1,1,1,1;1,1,1,1,1;1,1,1,1,1;: FPS: 30 FrameTime: 33.333 ms
light=false:quads=5:texture=false: FPS: 52 FrameTime: 19.231 ms
blur-radius=5:effect=blur:passes=1:separable=true:windows=4: FPS: 39 FrameTime: 25.641 ms
effect=shadow:windows=4: FPS: 57 FrameTime: 17.544 ms
columns=200:interleave=false:update-dispersion=0.9:update-fraction=0.5:update-method=map: FPS: 29 FrameTime: 34.483 ms
columns=200:interleave=false:update-dispersion=0.9:update-fraction=0.5:update-method=subdata: FPS: 29 FrameTime: 34.483 ms
columns=200:interleave=true:update-dispersion=0.9:update-fraction=0.5:update-method=map: FPS: 30 FrameTime: 33.333 ms
speed=duration: FPS: 50 FrameTime: 20.000 ms
<default>: FPS: 46 FrameTime: 21.739 ms
<default>: FPS: 20 FrameTime: 50.000 ms
<default>: FPS: 41 FrameTime: 24.390 ms
<default>: FPS: 29 FrameTime: 34.483 ms
fragment-steps=0:vertex-steps=0: FPS: 50 FrameTime: 20.000 ms
fragment-steps=5:vertex-steps=0: FPS: 52 FrameTime: 19.231 ms
fragment-steps=0:vertex-steps=5: FPS: 53 FrameTime: 18.868 ms
fragment-complexity=low:fragment-steps=5: FPS: 50 FrameTime: 20.000 ms
fragment-complexity=medium:fragment-steps=5: FPS: 52 FrameTime: 19.231 ms
fragment-loop=false:fragment-steps=5:vertex-steps=5: FPS: 52 FrameTime: 19.231 ms
fragment-steps=5:fragment-uniform=false:vertex-steps=5: FPS: 52 FrameTime: 19.231 ms
fragment-steps=5:fragment-uniform=true:vertex-steps=5: FPS: 53 FrameTime: 18.868 ms
=======================================================
glmark2 Score: 47
=======================================================
tboftmtjosk 发表于 2017-4-11 15:45
网络可用, 分辨率不能改, 安装beta版测试固件 使用GLMARK2-ES2分数47分, 是否正常?
您好,请 试一下 glmark2-es2 --off-screen
47分谈不上正常与否,因为glmakr2-es2在桌面环境下测试,受两个瓶颈影响,一个是 显卡的画图能力,一个是X窗口的性能。 X窗口的系统相当操蛋,根本不适合嵌入式处理器。
1. glmark2-es2 --off-screen, 你测试出来的分数就是GPU的能力了。
2. 更换wayland或者其他窗口系统,来解决X的瓶颈。
我也在测试,能否qq加个好友, 我的qq是,66218637
另外,版主大哥,我运行 glmark2-es2,提示信息是
==========================================
OpenGL Information
GL_VENDOR: VMware Inc
GL_RENDERER:Gallium 0.4 on llvmpipe(LLVM 3.8, 128bit)
GL_VERSION:OpenGL ES3.0 Mesa 11.2.0
==========================================
也就是说,我的板子上,ubuntu桌面终端,运行glmark2-es2, 它使用的是 mesa的软驱动,而不是 Arm的Mali-T860 驱动, 请问怎么着可以切换或者更新这个驱动 用这个版本的固件就可以了啊。 test_dec-gst.sh测试效果还可以, 但是否只有几秒效果
firefly@firefly:~$ sudo test_dec-gst.sh
Setting pipeline to PAUSED ...
Pipeline is PREROLLING ...
mpi: mpp version: 4f94b40 author: Randy Li : use mmap64() in native way for GNU Linux target
hal_h264d_api: hal_h264d_init mpp_buffer_group_get_internal used ion In
mpp_buf_slot: new width 1920 height 1080 stride hor 1920 ver 1088 fmt 0
Pipeline is PREROLLED ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
Got EOS from element "pipeline0".
Execution ended after 0:00:09.366645753
Setting pipeline to PAUSED ...
Setting pipeline to READY ...
mpp_thread: MPP_THREAD_STOPPING status set mThread 0xf321d4f0
mpp_dec: mpp_dec_parser_thread exit
mpp_dec: mpp_dec_parser_thread exit ok
mpp_thread: MPP_THREAD_STOPPING status set mThread 0xf321d5f8
mpp_dec: mpp_dec_hal_thread exit ok
Setting pipeline to NULL ...
Freeing pipeline ...