zoukankan      html  css  js  c++  java
  • 【分享】运行EGL Pixmap例子,测试Xilinx MPSoC GPU性能

    可以使用EGL Pixmap例子测试MPSoC GPU性能。运行EGL Pixmap,要使用fbdev作为egl backend。

    在 /project-spec/meta-user/conf/petalinuxbsp.conf里添加下列内容,再编译。

     

      MALI_BACKEND_DEFAULT = "fbdev"
      IMAGE_INSTALL_append = " glmark2"
      DISTRO_FEATURES_remove = "x11"
    

    然后使用新的文件启动单板,检查/usr/lib/libMali.so.8的真实指向。libMali.so.8应该指向libMali.so.8.0;不能指向x11版本的libMali.so.8.0,也就是/usr/lib/x11/libMali.so.8.0。正确指向:

     

    root@zcu106_vcu_trd:~# ls /usr/lib/libMali.so.8 -l
    lrwxrwxrwx 1 root root 14 Oct 24 08:07 /usr/lib/libMali.so.8 -> libMali.so.8.0
    

    错误指向:

     

    root@zcu106_vcu_trd:~# ls /usr/lib/libMali.so.8 -l
    lrwxrwxrwx 1 root root      27 Oct 22 09:53 /usr/lib/libMali.so.8.0 -> /usr/lib/x11/libMali.so.8.0
    

    测试打印

     

    root@zcu106_vcu_trd:~# uname -a
    Linux zcu106_vcu_trd 4.19.0-xilinx-v2019.1 #1 SMP Thu Oct 24 08:37:37 UTC 2019 aarch64 aarch64 aarch64 GNU/Linux
    root@zcu106_vcu_trd:~# ls /usr/lib/libMali.so.8 -l
    lrwxrwxrwx 1 root root 14 Oct 24 08:07 /usr/lib/libMali.so.8 -> libMali.so.8.0
    root@zcu106_vcu_trd:~# ls
    DMA_PixmapSampleOffscreen  shaders
    root@zcu106_vcu_trd:~# chmod +x DMA_PixmapSampleOffscreen
    root@zcu106_vcu_trd:~# ./DMA_PixmapSampleOffscreen
    Warning gator_func(src/streamline_annotate.c:495): Not connected to gatord, the application will run normally but Streamline will not collect annotations. To collect annotations, please verify you are running gatord 5.24 or later and that SELinux is disabled.
    FPS: = 62.341030
    FPS: = 117.819085
    FPS: = 117.955945
    FPS: = 117.898722
    FPS: = 117.910927
    FPS: = 117.762765
    FPS: = 117.934893
    FPS: = 117.415290
    FPS: = 117.758240
    FPS: = 117.990914

    测试使用PetaLinux 2019.1 和zcu106单板。

    更多信息参考Xilinx MALI driver.

  • 相关阅读:
    Oracle 查看表空间的大小及使用情况sql语句
    Oracle审计--AUD$占用空间较大处理方案
    system表空间爆满解决方法
    Oracle查询库中记录数大于2千万的所有表
    oracle 百万行数据优化查询
    React (Native) Rendering Lifecycle
    React于React native的渲染机制
    Virtual DOM的渲染机制--猜测
    react的优点:兼容了dsl语法与UI的组件化管理
    What is Babel?---JSX and React
  • 原文地址:https://www.cnblogs.com/hankfu/p/11796890.html
Copyright © 2011-2022 走看看