Lower glmark2 score with MALI G310 than Vivante GC7000UL

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Lower glmark2 score with MALI G310 than Vivante GC7000UL

Jump to solution
3,713 Views
yashwanth_varakala
Contributor II

The benchmark testing glmark2 scores of iMX95 EVK with MALI G310 has lower scores than compared to the iMX8MP with VIVANTE GC7000 UL.

Based on the GFLOPS scores vivante GC7000 UL with 16/32 and MALI G310 with 32-128. So Based on this computation performance, the Mali gpu should give atleast same or more than the vivante gpu.

imx8mp glmark is 300

imx95 evk is 104

Can you explain why this could be happening please ?

Please find the attachments of the vivante and mali gpu's glmark scores with offscreen command.

0 Kudos
Reply
1 Solution
2,968 Views
Zhiming_Liu
NXP TechSupport
NXP TechSupport

Hi,

Thanks for your information. Can you try to refer below steps before running benchmark?

Zhiming_Liu_0-1748402220710.png

 



Best Regards,
Zhiming

View solution in original post

0 Kudos
Reply
15 Replies
3,700 Views
Zhiming_Liu
NXP TechSupport
NXP TechSupport

Hello,

Can you share the BSP version?

Best Regards,
Zhiming

0 Kudos
Reply
3,634 Views
yashwanth_varakala
Contributor II

Hello

Release is LF_v6.6.52-2.2.0_images_IMX95EVK

Please find attachments here of glmark scores

Thanks,

yashwanth

0 Kudos
Reply
3,562 Views
Zhiming_Liu
NXP TechSupport
NXP TechSupport

Hello,

I did same test with L6.6.52(MIPI-HDMI, 1080P HDMI monitor), the score is 583. Did you run any other gpu task while running glmark2?

root@imx95evk:~# glmark2-es2-wayland --off-screen
=======================================================
    glmark2 2023.01
=======================================================
    OpenGL Information
    GL_VENDOR:      ARM
    GL_RENDERER:    Mali-G310
    GL_VERSION:     OpenGL ES 3.2 r50p0-00eac0.710cfb6.0f4cbd0292f8afc6fd193b54c0389e04
    Surface Config: buf=32 r=8 g=8 b=8 a=8 depth=24 stencil=0 samples=0
    Surface Size:   800x600 windowed
=======================================================
[build] use-vbo=false: FPS: 702 FrameTime: 1.425 ms
[build] use-vbo=true:

 FPS: 915 FrameTime: 1.093 ms
[texture] texture-filter=nearest:
 FPS: 1035 FrameTime: 0.967 ms
[texture] texture-filter=linear:
 FPS: 934 FrameTime: 1.071 ms
[texture] texture-filter=mipmap:
 FPS: 1068 FrameTime: 0.937 ms
[shading] shading=gouraud:



 FPS: 720 FrameTime: 1.389 ms
[shading] shading=blinn-phong-inf:
 FPS: 675 FrameTime: 1.482 ms
[shading] shading=phong:
 FPS: 541 FrameTime: 1.852 ms
[shading] shading=cel:
 FPS: 498 FrameTime: 2.008 ms
[bump] bump-render=high-poly:
 FPS: 337 FrameTime: 2.975 ms
[bump] bump-render=normals:
 FPS: 1039 FrameTime: 0.963 ms
[bump] bump-render=height:

 FPS: 958 FrameTime: 1.045 ms
[effect2d] kernel=0,1,0;1,-4,1;0,1,0;:
 FPS: 483 FrameTime: 2.071 ms
[effect2d] kernel=1,1,1,1,1;1,1,1,1,1;1,1,1,1,1;:

 FPS: 272 FrameTime: 3.684 ms
[pulsar] light=false:quads=5:texture=false:^[[A
 FPS: 899 FrameTime: 1.113 ms
[desktop] blur-radius=5:effect=blur:passes=1:separable=true:windows=4:
 FPS: 384 FrameTime: 2.610 ms
[desktop] effect=shadow:windows=4:
 FPS: 393 FrameTime: 2.548 ms
[buffer] columns=200:interleave=false:update-dispersion=0.9:update-fraction=0.5:update-method=map:
 FPS: 159 FrameTime: 6.322 ms
[buffer] columns=200:interleave=false:update-dispersion=0.9:update-fraction=0.5:update-method=subdata:

 FPS: 76 FrameTime: 13.212 ms
[buffer] columns=200:interleave=true:update-dispersion=0.9:update-fraction=0.5:update-method=map:
 FPS: 221 FrameTime: 4.544 ms
[ideas] speed=duration:
 FPS: 323 FrameTime: 3.099 ms
[jellyfish] <default>:
 FPS: 302 FrameTime: 3.320 ms
[terrain] <default>:
 FPS: 79 FrameTime: 12.796 ms
[shadow] <default>:
 FPS: 539 FrameTime: 1.857 ms

[refract] <default>:
 FPS: 170 FrameTime: 5.893 ms
[conditionals] fragment-steps=0:vertex-steps=0:
 FPS: 925 FrameTime: 1.081 ms
[conditionals] fragment-steps=5:vertex-steps=0:
 FPS: 536 FrameTime: 1.867 ms
[conditionals] fragment-steps=0:vertex-steps=5:
 FPS: 906 FrameTime: 1.104 ms
[function] fragment-complexity=low:fragment-steps=5:
 FPS: 749 FrameTime: 1.335 ms
[function] fragment-complexity=medium:fragment-steps=5:
 FPS: 460 FrameTime: 2.177 ms
[loop] fragment-loop=false:fragment-steps=5:vertex-steps=5:
 FPS: 712 FrameTime: 1.405 ms
[loop] fragment-steps=5:fragment-uniform=false:vertex-steps=5:
 FPS: 732 FrameTime: 1.366 ms
[loop] fragment-steps=5:fragment-uniform=true:vertex-steps=5:
 FPS: 544 FrameTime: 1.839 ms
=======================================================
                                  glmark2 Score: 583
=======================================================




Best Regards,
Zhiming

0 Kudos
Reply
3,459 Views
yashwanth_varakala
Contributor II

Hello Zhiming,

Apologies for the mistake in the documentation. The glmark of evk imx95 with offscreen is 530 and same as you have achieved and without off-screen flag is 73 or 104. Attaching the correct and latest console output of the glmark scores. The minimum lowest frequency score of gpu of imx8mp is 450.

 

Thanks,

yashwanth

0 Kudos
Reply
3,070 Views
Zhiming_Liu
NXP TechSupport
NXP TechSupport

Hi @yashwanth_varakala 

Update:

The R&D team is working on it.


Best Regards,
Zhiming

0 Kudos
Reply
3,064 Views
yashwanth_varakala
Contributor II
Thank you for the update
0 Kudos
Reply
3,310 Views
Zhiming_Liu
NXP TechSupport
NXP TechSupport

Hello,

I can see same result without offscreen, let me check it with internal team.

Best Regards,
Zhiming

0 Kudos
Reply
2,994 Views
VoVan
Contributor III
There is a problem, I confirm.
1) When i test glmark2-es2-wayland:
glmark2-es2-wayland --fullscreen
=======================================================
glmark2 2023.01
=======================================================
OpenGL Information
GL_VENDOR: ARM
GL_RENDERER: Mali-G310
GL_VERSION: OpenGL ES 3.2 r50p0-00eac0.710cfb6.0f4cbd0292f8afc6fd193b54c0389e04
Surface Config: buf=32 r=8 g=8 b=8 a=8 depth=24 stencil=0 samples=0
Surface Size: 1920x1080 fullscreen
=======================================================
glmark2 Score: 70

2) When i test glmark2-es2-drm:
killall weston
root@imx95-19x19-lpddr5-evk:~# glmark2-es2-drm
Warning: DRM_CAP_ASYNC_PAGE_FLIP not supported, falling back to 'mailbox' mode for SwapInterval(0).
=======================================================
glmark2 2023.01
=======================================================
OpenGL Information
GL_VENDOR: ARM
GL_RENDERER: Mali-G310
GL_VERSION: OpenGL ES 3.2 r50p0-00eac0.710cfb6.0f4cbd0292f8afc6fd193b54c0389e04
Surface Config: buf=32 r=8 g=8 b=8 a=8 depth=24 stencil=0 samples=0
Surface Size: 1920x1080 fullscreen
=======================================================
glmark2 Score: 283

The test results show that drawing via DRM is an order of magnitude faster than drawing via Wayland: 283 vs 70.
Thus, for fast rendering of any object, it is better to use drawing directly to the screen - DRM
In weston.ini use-g2d=true is used but perhaps in the sources on weston compositor g2d for this platform this is not taken into account and drawing occurs without g2d acceleration
0 Kudos
Reply
2,987 Views
VoVan
Contributor III
After spending 5 minutes I found out:
cat /run/user/0/weston.log
[20:21:33.231] Loading module '/usr/lib/libweston-12/g2d-renderer.so'
[20:21:33.293] event0 - scmi_dev.11: is tagged by udev as: Keyboard
[20:21:33.293] event0 - scmi_dev.11: device is a keyboard
[20:21:33.300] event1 - WM8962 Beep Generator: not tagged as supported input device
[20:21:33.302] event1 - not using input device '/dev/input/event1'
[20:21:33.335] libinput: configuring device "scmi_dev.11".
[20:21:33.338] DRM: head 'HDMI-A-1' found, connector 40 is connected, EDID make 'CVT', model 'CVTE TV', serial 'unknown'
Supported EOTF modes: SDR
[20:21:33.338] Registered plugin API 'weston_drm_output_api_v1' of size 40
[20:21:33.338] Color manager: no-op
[20:21:33.338] Loading module '/usr/lib/libgbm.so'
[20:21:33.338] Failed to load module: /usr/lib/libgbm.so: cannot open shared object file: No such file or directory
...

2) Try create symbol link:
cd /usr/lib/
ln -s libgbm.so.1 libgbm.so

3) After that
systemctl restart weston
cat /run/user/0/weston.log:
[20:30:49.893] Loading module '/usr/lib/libweston-12/g2d-renderer.so'
[20:30:49.912] event0 - scmi_dev.11: is tagged by udev as: Keyboard
[20:30:49.913] event0 - scmi_dev.11: device is a keyboard
[20:30:49.918] event1 - WM8962 Beep Generator: not tagged as supported input device
[20:30:49.919] event1 - not using input device '/dev/input/event1'
[20:30:49.937] libinput: configuring device "scmi_dev.11".
[20:30:49.946] DRM: head 'HDMI-A-1' found, connector 40 is connected, EDID make 'CVT', model 'CVTE TV', serial 'unknown'
Supported EOTF modes: SDR
[20:30:49.946] Registered plugin API 'weston_drm_output_api_v1' of size 40
[20:30:49.946] Color manager: no-op
[20:30:49.947] Module '/usr/lib/libgbm.so' already loaded
[20:30:49.947] Failed to lookup init function: /usr/lib/libgbm.so.1: undefined symbol: gbm_surface_get_in_fence_fd

Without support GBM don't work g2d:
weston/12.0.4.imx/git/libweston/backend-drm/drm.c:
static void
config_init_to_defaults(struct weston_drm_backend_config *config)
{
config->renderer = WESTON_RENDERER_AUTO;
config->use_pixman_shadow = true;
#if defined(ENABLE_IMXG2D)
#if !defined(BUILD_DRM_GBM)
config->use_g2d = true;
#else
config->use_g2d = false;
#endif
#endif
config->shell_width = 0;
config->shell_height = 0;
config->enable_overlay_view = 0;
}

I didn’t bother to look into the problem further, I don’t have time, the platform is not finished yet

0 Kudos
Reply
2,983 Views
VoVan
Contributor III
Maybe my assumption about gbm is wrong, but the rendering time should not differ by 4 times between wayland and drm....Score: 70 vs 283.
I hope this will be fixed
0 Kudos
Reply
2,969 Views
Zhiming_Liu
NXP TechSupport
NXP TechSupport

Hi,

Thanks for your information. Can you try to refer below steps before running benchmark?

Zhiming_Liu_0-1748402220710.png

 



Best Regards,
Zhiming

0 Kudos
Reply
2,648 Views
yashwanth_varakala
Contributor II

Hi @Zhiming_Liu 

I checked after updating the environment with "WESTON_FORCE_RENDERER=1". Have seen better results
But the step systemctl not updating the environment and seen no change. The environment was updated only after system reboot and seen below better results. @VoVan Can you also please try rebooting system after updating environment.

root@imx95-libra-fpsc-1:~# glmark2-es2-wayland --fullscreen
.=======================================================
    glmark2 2023.01
=======================================================
    OpenGL Information
    GL_VENDOR:      ARM
    GL_RENDERER:    Mali-G310
    GL_VERSION:     OpenGL ES 3.2 r50p0-00eac0.710cfb6.0f4cbd0292f8afc6fd193b54c0389e04
    Surface Config: buf=32 r=8 g=8 b=8 a=8 depth=24 stencil=0 samples=0
    Surface Size:   1280x800 fullscreen
=======================================================
[build] use-vbo=false: FPS: 1393 FrameTime: 0.718 ms
[build] use-vbo=true: FPS: 2176 FrameTime: 0.460 ms
[texture] texture-filter=nearest: FPS: 1805 FrameTime: 0.554 ms
[texture] texture-filter=linear: FPS: 1837 FrameTime: 0.545 ms
[texture] texture-filter=mipmap: FPS: 1830 FrameTime: 0.547 ms
[shading] shading=gouraud: FPS: 2033 FrameTime: 0.492 ms
[shading] shading=blinn-phong-inf: FPS: 1913 FrameTime: 0.523 ms
[shading] shading=phong: FPS: 1493 FrameTime: 0.670 ms
[shading] shading=cel: FPS: 1305 FrameTime: 0.766 ms
[bump] bump-render=high-poly: FPS: 1075 FrameTime: 0.930 ms
[bump] bump-render=normals: FPS: 2235 FrameTime: 0.447 ms
[bump] bump-render=height: FPS: 2132 FrameTime: 0.469 ms
[effect2d] kernel=0,1,0;1,-4,1;0,1,0;: FPS: 747 FrameTime: 1.340 ms
[effect2d] kernel=1,1,1,1,1;1,1,1,1,1;1,1,1,1,1;: FPS: 242 FrameTime: 4.140 ms
[pulsar] light=false:quads=5:texture=false: FPS: 1785 FrameTime: 0.561 ms
[desktop] blur-radius=5:effect=blur:passes=1:separable=true:windows=4: FPS: 282 FrameTime: 3.552 ms
[desktop] effect=shadow:windows=4: FPS: 724 FrameTime: 1.382 ms
[buffer] columns=200:interleave=false:update-dispersion=0.9:update-fraction=0.5:update-method=map: FPS: 183 FrameTime: 5.476 ms
[buffer] columns=200:interleave=false:update-dispersion=0.9:update-fraction=0.5:update-method=subdata: FPS: 187 FrameTime: 5.372 ms
[buffer] columns=200:interleave=true:update-dispersion=0.9:update-fraction=0.5:update-method=map: FPS: 304 FrameTime: 3.295 ms
[ideas] speed=duration: FPS: 722 FrameTime: 1.387 ms
[jellyfish] <default>: FPS: 512 FrameTime: 1.955 ms
[terrain] <default>: FPS: 55 FrameTime: 18.391 ms
[shadow] <default>: FPS: 1029 FrameTime: 0.973 ms
[refract] <default>: FPS: 157 FrameTime: 6.407 ms
[conditionals] fragment-steps=0:vertex-steps=0: FPS: 2001 FrameTime: 0.500 ms
[conditionals] fragment-steps=5:vertex-steps=0: FPS: 1071 FrameTime: 0.934 ms
[conditionals] fragment-steps=0:vertex-steps=5: FPS: 2007 FrameTime: 0.498 ms
[function] fragment-complexity=low:fragment-steps=5: FPS: 1606 FrameTime: 0.623 ms
[function] fragment-complexity=medium:fragment-steps=5: FPS: 872 FrameTime: 1.147 ms
[loop] fragment-loop=false:fragment-steps=5:vertex-steps=5: FPS: 1595 FrameTime: 0.627 ms
[loop] fragment-steps=5:fragment-uniform=false:vertex-steps=5: FPS: 1599 FrameTime: 0.626 ms
[loop] fragment-steps=5:fragment-uniform=true:vertex-steps=5: FPS: 1122 FrameTime: 0.892 ms
=======================================================
                                  glmark2 Score: 1212 
 

 

0 Kudos
Reply
2,807 Views
VoVan
Contributor III

I run glmark2-es2-wayland:

Spoiler

root@imx95-19x19-lpddr5-evk:~# export WESTON_FORCE_RENDERER=1                                  root@imx95-19x19-lpddr5-evk:~# cat /etc/xdg/weston/weston.ini                                            [core]
#gbm-format=argb8888
use-g2d=true
repaint-window=16
modules=screen-share.so
idle-time=0
xwayland=true
#enable-overlay-view=1

root@imx95-19x19-lpddr5-evk:~# systemctl restart weston
root@imx95-19x19-lpddr5-evk:~# glmark2-es2-wayland --fullscreen
=======================================================
   glmark2 2023.01
=======================================================
   OpenGL Information
   GL_VENDOR:      ARM
   GL_RENDERER:    Mali-G310
   GL_VERSION:     OpenGL ES 3.2 r50p0-00eac0.710cfb6.0f4cbd0292f8afc6fd193b54c0389e04
   Surface Config: buf=32 r=8 g=8 b=8 a=8 depth=24 stencil=0 samples=0
   Surface Size:   1920x1080 fullscreen
=======================================================
[build] use-vbo=false: FPS: 63 FrameTime: 15.974 ms
[build] use-vbo=true: FPS: 68 FrameTime: 14.722 ms
[texture] texture-filter=nearest: FPS: 70 FrameTime: 14.394 ms
[texture] texture-filter=linear: FPS: 72 FrameTime: 13.964 ms
[texture] texture-filter=mipmap: FPS: 74 FrameTime: 13.632 ms
[shading] shading=gouraud: FPS: 75 FrameTime: 13.403 ms
[shading] shading=blinn-phong-inf: FPS: 72 FrameTime: 13.956 ms
[shading] shading=phong: FPS: 79 FrameTime: 12.728 ms
[shading] shading=cel: FPS: 78 FrameTime: 12.942 ms
[bump] bump-render=high-poly: FPS: 69 FrameTime: 14.604 ms
[bump] bump-render=normals: FPS: 73 FrameTime: 13.837 ms
[bump] bump-render=height: FPS: 74 FrameTime: 13.646 ms
[effect2d] kernel=0,1,0;1,-4,1;0,1,0;: FPS: 105 FrameTime: 9.543 ms
[effect2d] kernel=1,1,1,1,1;1,1,1,1,1;1,1,1,1,1;: FPS: 111 FrameTime: 9.018 ms
[pulsar] light=false:quads=5:texture=false: FPS: 74 FrameTime: 13.650 ms
[desktop] blur-radius=5:effect=blur:passes=1:separable=true:windows=4: FPS: 61 FrameTime: 16.636 ms
[desktop] effect=shadow:windows=4: FPS: 61 FrameTime: 16.552 ms
[buffer] columns=200:interleave=false:update-dispersion=0.9:update-fraction=0.5:update-method=map: FPS: 61 FrameTime: 16.652 ms
[buffer] columns=200:interleave=false:update-dispersion=0.9:update-fraction=0.5:update-method=subdata: FPS: 61 FrameTime: 16.659 ms
[buffer] columns=200:interleave=true:update-dispersion=0.9:update-fraction=0.5:update-method=map: FPS: 61 FrameTime: 16.576 ms
[ideas] speed=duration: FPS: 61 FrameTime: 16.471 ms
[jellyfish] <default>: FPS: 80 FrameTime: 12.630 ms
[terrain] <default>: FPS: 34 FrameTime: 29.645 ms
[shadow] <default>: FPS: 62 FrameTime: 16.382 ms
[refract] <default>: FPS: 61 FrameTime: 16.637 ms
[conditionals] fragment-steps=0:vertex-steps=0: FPS: 76 FrameTime: 13.186 ms
[conditionals] fragment-steps=5:vertex-steps=0: FPS: 73 FrameTime: 13.761 ms
[conditionals] fragment-steps=0:vertex-steps=5: FPS: 76 FrameTime: 13.199 ms
[function] fragment-complexity=low:fragment-steps=5: FPS: 72 FrameTime: 13.970 ms
[function] fragment-complexity=medium:fragment-steps=5: FPS: 73 FrameTime: 13.760 ms
[loop] fragment-loop=false:fragment-steps=5:vertex-steps=5: FPS: 76 FrameTime: 13.248 ms
[loop] fragment-steps=5:fragment-uniform=false:vertex-steps=5: FPS: 75 FrameTime: 13.499 ms
[loop] fragment-steps=5:fragment-uniform=true:vertex-steps=5: FPS: 75 FrameTime: 13.506 ms
=======================================================
                                 glmark2 Score: 70  
=======================================================

Then i start glmark2 for DRM:

Spoiler
root@imx95-19x19-lpddr5-evk:~# killall weston
root@imx95-19x19-lpddr5-evk:~# glmark2-es2-drm
Warning: DRM_CAP_ASYNC_PAGE_FLIP not supported, falling back to 'mailbox' mode for SwapInterval(0).
=======================================================
   glmark2 2023.01
=======================================================
   OpenGL Information
   GL_VENDOR:      ARM
   GL_RENDERER:    Mali-G310
   GL_VERSION:     OpenGL ES 3.2 r50p0-00eac0.710cfb6.0f4cbd0292f8afc6fd193b54c0389e04
   Surface Config: buf=32 r=8 g=8 b=8 a=8 depth=24 stencil=0 samples=0
   Surface Size:   1920x1080 fullscreen
=======================================================
[build] use-vbo=false: FPS: 398 FrameTime: 2.516 ms
[build] use-vbo=true: FPS: 429 FrameTime: 2.333 ms
[texture] texture-filter=nearest: FPS: 451 FrameTime: 2.220 ms
[texture] texture-filter=linear: FPS: 440 FrameTime: 2.276 ms
[texture] texture-filter=mipmap: FPS: 436 FrameTime: 2.297 ms
[shading] shading=gouraud: FPS: 376 FrameTime: 2.663 ms
[shading] shading=blinn-phong-inf: FPS: 340 FrameTime: 2.948 ms
[shading] shading=phong: FPS: 279 FrameTime: 3.587 ms
[shading] shading=cel: FPS: 254 FrameTime: 3.946 ms
[bump] bump-render=high-poly: FPS: 236 FrameTime: 4.249 ms
[bump] bump-render=normals: FPS: 396 FrameTime: 2.529 ms
[bump] bump-render=height: FPS: 375 FrameTime: 2.672 ms
[effect2d] kernel=0,1,0;1,-4,1;0,1,0;: FPS: 178 FrameTime: 5.647 ms
[effect2d] kernel=1,1,1,1,1;1,1,1,1,1;1,1,1,1,1;: FPS: 112 FrameTime: 8.985 ms
[pulsar] light=false:quads=5:texture=false: FPS: 498 FrameTime: 2.009 ms
[desktop] blur-radius=5:effect=blur:passes=1:separable=true:windows=4: FPS: 141 FrameTime: 7.122 ms
[desktop] effect=shadow:windows=4: FPS: 225 FrameTime: 4.445 ms
[buffer] columns=200:interleave=false:update-dispersion=0.9:update-fraction=0.5:update-method=map: FPS: 125 FrameTime: 8.063 ms
[buffer] columns=200:interleave=false:update-dispersion=0.9:update-fraction=0.5:update-method=subdata: FPS: 70 FrameTime: 14.454 ms
[buffer] columns=200:interleave=true:update-dispersion=0.9:update-fraction=0.5:update-method=map: FPS: 168 FrameTime: 5.953 ms
[ideas] speed=duration: FPS: 195 FrameTime: 5.135 ms
[jellyfish] <default>: FPS: 214 FrameTime: 4.693 ms
[terrain] <default>: FPS: 32 FrameTime: 31.414 ms
[shadow] <default>: FPS: 229 FrameTime: 4.370 ms
[refract] <default>: FPS: 91 FrameTime: 11.070 ms
[conditionals] fragment-steps=0:vertex-steps=0: FPS: 533 FrameTime: 1.877 ms
[conditionals] fragment-steps=5:vertex-steps=0: FPS: 325 FrameTime: 3.079 ms
[conditionals] fragment-steps=0:vertex-steps=5: FPS: 368 FrameTime: 2.722 ms
[function] fragment-complexity=low:fragment-steps=5: FPS: 293 FrameTime: 3.413 ms
[function] fragment-complexity=medium:fragment-steps=5: FPS: 191 FrameTime: 5.244 ms
[loop] fragment-loop=false:fragment-steps=5:vertex-steps=5: FPS: 293 FrameTime: 3.420 ms
[loop] fragment-steps=5:fragment-uniform=false:vertex-steps=5: FPS: 293 FrameTime: 3.413 ms
[loop] fragment-steps=5:fragment-uniform=true:vertex-steps=5: FPS: 231 FrameTime: 4.345 ms
=======================================================
                                 glmark2 Score: 278  
=======================================================

Weston log:

Spoiler

root@imx95-19x19-lpddr5-evk:~# cat /run/user/0/weston.log
[23:21:38.685] weston 12.0.4
              https://wayland.freedesktop.org
              Bug reports to: https://gitlab.freedesktop.org/wayland/weston/issues/
              Build: 10.0.0-1230-gde7f8df4+
[23:21:38.686] Command line: /usr/bin/weston --log=/run/user/0/weston.log --modules=systemd-notify.so
[23:21:38.686] OS: Linux, 6.6.52-lts-next-ge0f9e2afd4cf, #1 SMP PREEMPT Tue Nov 19 23:01:49 UTC 2024, aarch64
[23:21:38.686] Flight recorder: enabled
[23:21:38.686] Using config file '/etc/xdg/weston/weston.ini'
[23:21:38.686] Output repaint window is 16 ms maximum.
[23:21:38.686] Loading module '/usr/lib/libweston-12/drm-backend.so'
[23:21:38.702] initializing drm backend
[23:21:38.702] Trying libseat launcher...
[23:21:38.703] [c/debug/seatd/0.8.0/libseat/backend/seatd.c:64] Could not connect to socket /run/seatd.sock: No such file or directory
[23:21:38.703] [c/debug/seatd/0.8.0/libseat/libseat.c:76] Backend 'seatd' failed to open seat, skipping
[23:21:38.709] [c/debug/seatd/0.8.0/libseat/libseat.c:73] Seat opened with backend 'logind'
[23:21:38.709] libseat: session control granted
[23:21:38.714] using /dev/dri/card0
[23:21:38.714] DRM: supports atomic modesetting
[23:21:38.714] DRM: supports GBM modifiers
[23:21:38.714] DRM: does not support async page flipping
[23:21:38.714] DRM: supports picture aspect ratio
[23:21:38.714] Loading module '/usr/lib/libweston-12/g2d-renderer.so'
[23:21:38.735] event0  - scmi_dev.11: is tagged by udev as: Keyboard
[23:21:38.735] event0  - scmi_dev.11: device is a keyboard
[23:21:38.741] event1  - WM8962 Beep Generator: not tagged as supported input device
[23:21:38.743] event1  - not using input device '/dev/input/event1'
[23:21:38.764] libinput: configuring device "scmi_dev.11".
[23:21:38.844] DRM: head 'HDMI-A-1' found, connector 40 is connected, EDID make 'CVT', model 'CVTE TV', serial 'unknown'
              Supported EOTF modes: SDR
[23:21:38.845] Registered plugin API 'weston_drm_output_api_v1' of size 40
[23:21:38.845] Color manager: no-op
[23:21:38.845] Module '/usr/lib/libgbm.so' already loaded
[23:21:38.845] Failed to lookup init function: /usr/lib/libgbm.so.1: undefined symbol: gbm_surface_get_in_fence_fd
[23:21:38.846] Output 'HDMI-A-1' attempts EOTF mode: SDR
[23:21:38.846] Output 'HDMI-A-1' using color profile: built-in default sRGB SDR profile
[23:21:38.856] Output HDMI-A-1 (crtc 38) video modes:
              1920x1080@60.0, preferred, current, 148.5 MHz
              1920x1080@60.0 16:9, 148.5 MHz
              1920x1080@50.0 16:9, 148.5 MHz
[23:21:38.856] associating input device event0 with output HDMI-A-1 (none by udev)
[23:21:38.856] Output 'HDMI-A-1' enabled with head(s) HDMI-A-1
[23:21:38.856] Compositor capabilities:
              arbitrary surface rotation: yes
              screen capture uses y-flip: yes
              cursor planes: yes
              arbitrary resolutions: no
              view mask clipping: yes
              explicit sync: yes
              color operations: no
              presentation clock: CLOCK_MONOTONIC, id 1
              presentation clock resolution: 0.000000001 s
[23:21:38.857] Loading module '/usr/lib/weston/desktop-shell.so'
[23:21:38.857] Loading module '/usr/lib/libweston-12/xwayland.so'
[23:21:38.875] Registered plugin API 'weston_xwayland_v1' of size 32
[23:21:38.876] Registered plugin API 'weston_xwayland_surface_v1' of size 16
[23:21:38.876] xserver listening on display :0
[23:21:38.876] Loading module '/usr/lib/weston/screen-share.so'
[23:21:38.877] Loading module '/usr/lib/weston/systemd-notify.so'
[23:21:38.877] info: add 1 socket(s) provided by systemd
[23:21:38.877] launching '/usr/libexec/weston-keyboard'
[23:21:38.880] launching '/usr/libexec/weston-desktop-shell'

Weston render use g2d - it is ok. But speed of glmark2-es2-wayland in imx8mp higher, wheen speed of glmark2-es2-wayland in imx95.

Differrent between GPU: imx8mp use VivanteGC7000, imx95 use Mali-G310.

VivanteGC7000 use libgbm.so with support gbm_surface_get_in_fence_fd,

Mali-G310 use libgbm.so but no support gbm_surface_get_in_fence_fd....

 

 

0 Kudos
Reply
2,802 Views
VoVan
Contributor III

IMX8MP:

glmark2-es2-wayland:

 

Spoiler
root@imx8mpevk:~# glmark2-es2-wayland --fullscreen
=======================================================
   glmark2 2023.01
=======================================================
   OpenGL Information
   GL_VENDOR:      Vivante Corporation
   GL_RENDERER:    Vivante GC7000UL
   GL_VERSION:     OpenGL ES 3.1 V6.4.11.p2.711242
   Surface Config: buf=32 r=8 g=8 b=8 a=8 depth=24 stencil=0 samples=0
   Surface Size:   1920x1080 fullscreen
=======================================================
[build] use-vbo=false: FPS: 812 FrameTime: 1.233 ms
[build] use-vbo=true: FPS: 1237 FrameTime: 0.809 ms
[texture] texture-filter=nearest: FPS: 833 FrameTime: 1.202 ms
[texture] texture-filter=linear: FPS: 818 FrameTime: 1.223 ms
[texture] texture-filter=mipmap: FPS: 813 FrameTime: 1.231 ms
[shading] shading=gouraud: FPS: 603 FrameTime: 1.661 ms
[shading] shading=blinn-phong-inf: FPS: 537 FrameTime: 1.862 ms
[shading] shading=phong: FPS: 305 FrameTime: 3.281 ms
[shading] shading=cel: FPS: 241 FrameTime: 4.159 ms
[bump] bump-render=high-poly: FPS: 379 FrameTime: 2.640 ms
[bump] bump-render=normals: FPS: 628 FrameTime: 1.592 ms
[bump] bump-render=height: FPS: 334 FrameTime: 2.994 ms
[effect2d] kernel=0,1,0;1,-4,1;0,1,0;: FPS: 90 FrameTime: 11.136 ms
[effect2d] kernel=1,1,1,1,1;1,1,1,1,1;1,1,1,1,1;: FPS: 32 FrameTime: 31.946 ms
[pulsar] light=false:quads=5:texture=false: FPS: 483 FrameTime: 2.072 ms
[desktop] blur-radius=5:effect=blur:passes=1:separable=true:windows=4: FPS: 52 FrameTime: 19.259 ms
[desktop] effect=shadow:windows=4: FPS: 168 FrameTime: 5.961 ms
[buffer] columns=200:interleave=false:update-dispersion=0.9:update-fraction=0.5:update-method=map: FPS: 130 FrameTime: 7.735 ms
[buffer] columns=200:interleave=false:update-dispersion=0.9:update-fraction=0.5:update-method=subdata: FPS: 129 FrameTime: 7.799 ms
[buffer] columns=200:interleave=true:update-dispersion=0.9:update-fraction=0.5:update-method=map: FPS: 167 FrameTime: 6.005 ms
[ideas] speed=duration: FPS: 222 FrameTime: 4.507 ms
[jellyfish] <default>: FPS: 91 FrameTime: 11.038 ms
[terrain] <default>: FPS: 8 FrameTime: 140.356 ms
[shadow] <default>: FPS: 255 FrameTime: 3.925 ms
[refract] <default>: FPS: 29 FrameTime: 34.528 ms
[conditionals] fragment-steps=0:vertex-steps=0: FPS: 481 FrameTime: 2.083 ms
[conditionals] fragment-steps=5:vertex-steps=0: FPS: 75 FrameTime: 13.451 ms
[conditionals] fragment-steps=0:vertex-steps=5: FPS: 465 FrameTime: 2.151 ms
[function] fragment-complexity=low:fragment-steps=5: FPS: 172 FrameTime: 5.848 ms
[function] fragment-complexity=medium:fragment-steps=5: FPS: 86 FrameTime: 11.650 ms
[loop] fragment-loop=false:fragment-steps=5:vertex-steps=5: FPS: 171 FrameTime: 5.869 ms
[loop] fragment-steps=5:fragment-uniform=false:vertex-steps=5: FPS: 170 FrameTime: 5.902 ms
[loop] fragment-steps=5:fragment-uniform=true:vertex-steps=5: FPS: 92 FrameTime: 10.933 ms
=======================================================
                                 glmark2 Score: 335  
=======================================================

glmark2-es2-drm:

Spoiler
root@imx8mpevk:~# killall weston
root@imx8mpevk:~# glmark2-es2-drm
Warning: DRM_CAP_ASYNC_PAGE_FLIP not supported, falling back to 'mailbox' mode for SwapInterval(0).
=======================================================
   glmark2 2023.01
=======================================================
   OpenGL Information
   GL_VENDOR:      Vivante Corporation
   GL_RENDERER:    Vivante GC7000UL
   GL_VERSION:     OpenGL ES 3.1 V6.4.11.p2.711242
   Surface Config: buf=32 r=8 g=8 b=8 a=8 depth=24 stencil=0 samples=0
   Surface Size:   1920x1080 fullscreen
=======================================================
[build] use-vbo=false: FPS: 121 FrameTime: 8.329 ms
[build] use-vbo=true: FPS: 121 FrameTime: 8.329 ms
[texture] texture-filter=nearest: FPS: 121 FrameTime: 8.333 ms
[texture] texture-filter=linear: FPS: 121 FrameTime: 8.329 ms
[texture] texture-filter=mipmap: FPS: 121 FrameTime: 8.332 ms
[shading] shading=gouraud: FPS: 121 FrameTime: 8.331 ms
[shading] shading=blinn-phong-inf: FPS: 121 FrameTime: 8.331 ms
[shading] shading=phong: FPS: 120 FrameTime: 8.336 ms
[shading] shading=cel: FPS: 120 FrameTime: 8.338 ms
[bump] bump-render=high-poly: FPS: 120 FrameTime: 8.335 ms
[bump] bump-render=normals: FPS: 120 FrameTime: 8.334 ms
[bump] bump-render=height: FPS: 121 FrameTime: 8.332 ms
[effect2d] kernel=0,1,0;1,-4,1;0,1,0;: FPS: 66 FrameTime: 15.187 ms
[effect2d] kernel=1,1,1,1,1;1,1,1,1,1;1,1,1,1,1;: FPS: 28 FrameTime: 35.896 ms
[pulsar] light=false:quads=5:texture=false: FPS: 114 FrameTime: 8.798 ms
[desktop] blur-radius=5:effect=blur:passes=1:separable=true:windows=4: FPS: 42 FrameTime: 24.226 ms
[desktop] effect=shadow:windows=4: FPS: 90 FrameTime: 11.119 ms
[buffer] columns=200:interleave=false:update-dispersion=0.9:update-fraction=0.5:update-method=map: FPS: 90 FrameTime: 11.112 ms
[buffer] columns=200:interleave=false:update-dispersion=0.9:update-fraction=0.5:update-method=subdata: FPS: 90 FrameTime: 11.115 ms
[buffer] columns=200:interleave=true:update-dispersion=0.9:update-fraction=0.5:update-method=map: FPS: 91 FrameTime: 11.085 ms
[ideas] speed=duration: FPS: 85 FrameTime: 11.794 ms
[jellyfish] <default>: FPS: 66 FrameTime: 15.252 ms
[terrain] <default>: FPS: 7 FrameTime: 149.748 ms
[shadow] <default>: FPS: 120 FrameTime: 8.334 ms
[refract] <default>: FPS: 27 FrameTime: 38.436 ms
[conditionals] fragment-steps=0:vertex-steps=0: FPS: 120 FrameTime: 8.336 ms
[conditionals] fragment-steps=5:vertex-steps=0: FPS: 59 FrameTime: 17.091 ms
[conditionals] fragment-steps=0:vertex-steps=5: FPS: 120 FrameTime: 8.344 ms
[function] fragment-complexity=low:fragment-steps=5: FPS: 90 FrameTime: 11.117 ms
[function] fragment-complexity=medium:fragment-steps=5: FPS: 66 FrameTime: 15.360 ms
[loop] fragment-loop=false:fragment-steps=5:vertex-steps=5: FPS: 90 FrameTime: 11.122 ms
[loop] fragment-steps=5:fragment-uniform=false:vertex-steps=5: FPS: 90 FrameTime: 11.125 ms
[loop] fragment-steps=5:fragment-uniform=true:vertex-steps=5: FPS: 69 FrameTime: 14.627 ms
=======================================================
                                 glmark2 Score: 91  
=======================================================

Imx95(DRM,WWayland test) , Imx8MP(DRM) - the picture is excellent and smooth, but FPS is small...
Imx8MP(Wayland) - the picture is torn in motion, but fps is high...
Is this real fps????:
[build] use-vbo=false: FPS: 812 FrameTime: 1.233 ms
[build] use-vbo=true: FPS: 1237 FrameTime: 0.809 ms

Maybe it's just an incorrect fps calculation...I don't know...

 

 

 

 

0 Kudos
Reply
2,598 Views
Zhiming_Liu
NXP TechSupport
NXP TechSupport

Hi @VoVan 

To update the /etc/environment, please use below commands

vi /etc/environment
copy WESTON_FORCE_RENDERER=1 to /etc/environment
systemctl restart weston.service

Here are results with 1080P

root@imx95evk:~# glmark2-es2-wayland --fullscreen
=======================================================
    glmark2 2023.01
=======================================================
    OpenGL Information
    GL_VENDOR:      ARM
    GL_RENDERER:    Mali-G310
    GL_VERSION:     OpenGL ES 3.2 r53p0-00eac0.f2226b0.2a10cd970ed0294e1de0a25c512ed292
    Surface Config: buf=32 r=8 g=8 b=8 a=8 depth=24 stencil=0 samples=0
    Surface Size:   1920x1080 fullscreen
=======================================================
[build] use-vbo=false: FPS: 1059 FrameTime: 0.944 ms
[build] use-vbo=true: FPS: 1438 FrameTime: 0.696 ms
[texture] texture-filter=nearest: FPS: 1198 FrameTime: 0.835 ms
[texture] texture-filter=linear: FPS: 1202 FrameTime: 0.833 ms
[texture] texture-filter=mipmap: FPS: 1206 FrameTime: 0.830 ms
[shading] shading=gouraud: FPS: 1251 FrameTime: 0.800 ms
[shading] shading=blinn-phong-inf: FPS: 1107 FrameTime: 0.904 ms
[shading] shading=phong: FPS: 839 FrameTime: 1.193 ms
[shading] shading=cel: FPS: 725 FrameTime: 1.381 ms
[bump] bump-render=high-poly: FPS: 789 FrameTime: 1.268 ms
[bump] bump-render=normals: FPS: 1199 FrameTime: 0.834 ms
[bump] bump-render=height: FPS: 1110 FrameTime: 0.901 ms
[effect2d] kernel=0,1,0;1,-4,1;0,1,0;: FPS: 355 FrameTime: 2.823 ms
[effect2d] kernel=1,1,1,1,1;1,1,1,1,1;1,1,1,1,1;: FPS: 120 FrameTime: 8.348 ms
[pulsar] light=false:quads=5:texture=false: FPS: 987 FrameTime: 1.014 ms
[desktop] blur-radius=5:effect=blur:passes=1:separable=true:windows=4: FPS: 155 FrameTime: 6.465 ms
[desktop] effect=shadow:windows=4: FPS: 360 FrameTime: 2.779 ms
[buffer] columns=200:interleave=false:update-dispersion=0.9:update-fraction=0.5:update-method=map: FPS: 160 FrameTime: 6.261 ms
[buffer] columns=200:interleave=false:update-dispersion=0.9:update-fraction=0.5:update-method=subdata: FPS: 178 FrameTime: 5.627 ms
[buffer] columns=200:interleave=true:update-dispersion=0.9:update-fraction=0.5:update-method=map: FPS: 261 FrameTime: 3.838 ms
[ideas] speed=duration: FPS: 564 FrameTime: 1.774 ms
[jellyfish] <default>: FPS: 279 FrameTime: 3.587 ms
[terrain] <default>: FPS: 34 FrameTime: 30.014 ms
[shadow] <default>: FPS: 576 FrameTime: 1.739 ms
[refract] <default>: FPS: 108 FrameTime: 9.269 ms
[conditionals] fragment-steps=0:vertex-steps=0: FPS: 1092 FrameTime: 0.916 ms
[conditionals] fragment-steps=5:vertex-steps=0: FPS: 585 FrameTime: 1.712 ms
[conditionals] fragment-steps=0:vertex-steps=5: FPS: 1095 FrameTime: 0.914 ms
[function] fragment-complexity=low:fragment-steps=5: FPS: 835 FrameTime: 1.199 ms
[function] fragment-complexity=medium:fragment-steps=5: FPS: 470 FrameTime: 2.132 ms
[loop] fragment-loop=false:fragment-steps=5:vertex-steps=5: FPS: 834 FrameTime: 1.199 ms
[loop] fragment-steps=5:fragment-uniform=false:vertex-steps=5: FPS: 834 FrameTime: 1.199 ms
[loop] fragment-steps=5:fragment-uniform=true:vertex-steps=5: FPS: 600 FrameTime: 1.667 ms
=======================================================
                                  glmark2 Score: 714
=======================================================

 

root@imx95evk:~# glmark2-es2-drm
Warning: DRM_CAP_ASYNC_PAGE_FLIP not supported, falling back to 'mailbox' mode for SwapInterval(0).
=======================================================
    glmark2 2023.01
=======================================================
    OpenGL Information
    GL_VENDOR:      ARM
    GL_RENDERER:    Mali-G310
    GL_VERSION:     OpenGL ES 3.2 r53p0-00eac0.f2226b0.2a10cd970ed0294e1de0a25c512ed292
    Surface Config: buf=32 r=8 g=8 b=8 a=8 depth=24 stencil=0 samples=0
    Surface Size:   1920x1080 fullscreen
=======================================================
[build] use-vbo=false: FPS: 120 FrameTime: 8.342 ms
[build] use-vbo=true: FPS: 121 FrameTime: 8.325 ms
[texture] texture-filter=nearest: FPS: 120 FrameTime: 8.333 ms
[texture] texture-filter=linear: FPS: 121 FrameTime: 8.332 ms
[texture] texture-filter=mipmap: FPS: 121 FrameTime: 8.333 ms
[shading] shading=gouraud: FPS: 120 FrameTime: 8.335 ms
[shading] shading=blinn-phong-inf: FPS: 121 FrameTime: 8.330 ms
[shading] shading=phong: FPS: 121 FrameTime: 8.331 ms
[shading] shading=cel: FPS: 121 FrameTime: 8.331 ms
[bump] bump-render=high-poly: FPS: 121 FrameTime: 8.332 ms
[bump] bump-render=normals: FPS: 121 FrameTime: 8.332 ms
[bump] bump-render=height: FPS: 121 FrameTime: 8.331 ms
[effect2d] kernel=0,1,0;1,-4,1;0,1,0;: FPS: 120 FrameTime: 8.338 ms
[effect2d] kernel=1,1,1,1,1;1,1,1,1,1;1,1,1,1,1;: FPS: 90 FrameTime: 11.159 ms
[pulsar] light=false:quads=5:texture=false: FPS: 121 FrameTime: 8.330 ms
[desktop] blur-radius=5:effect=blur:passes=1:separable=true:windows=4: FPS: 98 FrameTime: 10.307 ms
[desktop] effect=shadow:windows=4: FPS: 120 FrameTime: 8.334 ms
[buffer] columns=200:interleave=false:update-dispersion=0.9:update-fraction=0.5:update-method=map: FPS: 91 FrameTime: 11.036 ms
[buffer] columns=200:interleave=false:update-dispersion=0.9:update-fraction=0.5:update-method=subdata: FPS: 68 FrameTime: 14.816 ms
[buffer] columns=200:interleave=true:update-dispersion=0.9:update-fraction=0.5:update-method=map: FPS: 120 FrameTime: 8.359 ms
[ideas] speed=duration: FPS: 120 FrameTime: 8.334 ms
[jellyfish] <default>: FPS: 113 FrameTime: 8.923 ms
[terrain] <default>: FPS: 33 FrameTime: 31.122 ms
[shadow] <default>: FPS: 121 FrameTime: 8.331 ms
[refract] <default>: FPS: 87 FrameTime: 11.570 ms
[conditionals] fragment-steps=0:vertex-steps=0: FPS: 120 FrameTime: 8.335 ms
[conditionals] fragment-steps=5:vertex-steps=0: FPS: 120 FrameTime: 8.336 ms
[conditionals] fragment-steps=0:vertex-steps=5: FPS: 121 FrameTime: 8.331 ms
[function] fragment-complexity=low:fragment-steps=5: FPS: 121 FrameTime: 8.331 ms
[function] fragment-complexity=medium:fragment-steps=5: FPS: 120 FrameTime: 8.337 ms
[loop] fragment-loop=false:fragment-steps=5:vertex-steps=5: FPS: 121 FrameTime: 8.332 ms
[loop] fragment-steps=5:fragment-uniform=false:vertex-steps=5: FPS: 121 FrameTime: 8.331 ms
[loop] fragment-steps=5:fragment-uniform=true:vertex-steps=5: FPS: 121 FrameTime: 8.331 ms
=======================================================
                                  glmark2 Score: 111
=======================================================




Best Regards,
Zhiming

0 Kudos
Reply