sipeed/sipeed_wiki

[Gitalk:/hardware/en/lichee/th1520/lpi4a/10_test_report.html] Board Performance Test - Sipeed Wiki

Opened this issue · 7 comments

glmark2 reports softpipe as GL_RENDERER:

libEGL warning: DRI2: failed to authenticate
=======================================================
    glmark2 2021.12
=======================================================
    OpenGL Information
    GL_VENDOR:      Mesa/X.org
    GL_RENDERER:    softpipe
    GL_VERSION:     OpenGL ES 3.1 Mesa 21.2.1
    Surface Config: buf=32 r=8 g=8 b=8 a=8 depth=32 stencil=0
    Surface Size:   800x600 windowed
=======================================================
[build] use-vbo=false: FPS: 6 FrameTime: 166.667 ms
=======================================================
                                  glmark2 Score: 6
=======================================================

What am i missing?

@oroppas
glmark2 reports softpipe as GL_RENDERER:

libEGL warning: DRI2: failed to authenticate
=======================================================
    glmark2 2021.12
=======================================================
    OpenGL Information
    GL_VENDOR:      Mesa/X.org
    GL_RENDERER:    softpipe
    GL_VERSION:     OpenGL ES 3.1 Mesa 21.2.1
    Surface Config: buf=32 r=8 g=8 b=8 a=8 depth=32 stencil=0
    Surface Size:   800x600 windowed
=======================================================
[build] use-vbo=false: FPS: 6 FrameTime: 166.667 ms
=======================================================
                                  glmark2 Score: 6
=======================================================

What am i missing?

It works for me on a fresh installation of the latest "Official Sipeed image" (Debian 12 revyos Xfce). Flash LPI4A_FULL_20231023.zip using "burn_tools_support_bigimage" then update the system using apt update && apt upgrade && reboot. After the reboot install glmark2 using apt install glmark2 and finally run glmark2-es2 in the Terminal Emulator on physical screen (in my case the official MIPI touchscreen) under the sipeed user and it should work. My glmark2 score was 564.

@nicoboss, thanks for the info. I just unboxed the board and run as is.
Performing apt udpate && apt upgrade && reboot didn't work, so I'm guessing I need to flash the image.
I'm not sure if it's strictly required to flash the latest image though.

@oroppas
@nicoboss, thanks for the info. I just unboxed the board and run as is.
Performing apt udpate && apt upgrade && reboot didn't work, so I'm guessing I need to flash the image.
I'm not sure if it's strictly required to flash the latest image though.

There should have been a note in box: "The present image version is older. For the best experience please update it to the newer version". I also ignored it at first and regrated it as flashing the latest image fixed so many issues. I don't remember GPU drivers not working on the preinstalled image so I don't think it should be required but just flashing the latest one and starting fresh is likely the easiest way to solve your issue.

By the way if you want to make heavy use of the GPU, I recommend installing GNOME and working on Wayland as GLX used by many X11 applications doesn't work while GLES used for many Wayland applications does work. Vulkan support is the best. I even managed to run Nintendo Wii games using the Dolphin emulator (only works if compiled on and used under Wayland) with the Vulkan backend but kind of slow because no JIT support for RISC-V.

Thanks for the valuable info! I'm going to flash the new image and give GNOME with Wayland a shot.

Hi @nicoboss,

Which image did you use to install GNOME? Debian from Official Sipeed image?

@oroppas
Hi @nicoboss,

Which image did you use to install GNOME? Debian from Official Sipeed image?

I'm using the Official Sipeed image you can download from their Mega Cloud Storage. It's RevyOS - a custom Debian 12 distribution optimized for RISC-V. It's the Linux distribution which probably offers you the best out-of-the-box RISC-V experience. The official image comes preinstalled with the Xfce desktop environment. In the documentation they just call it Debian. The reason I know it's RevyOS is because the RevyOS apt repository is hosted in China and from Europe accessing it was so slow it timed out during certain times of day which led me to create a private mirror.

I flashed LPI4A_FULL_20231023.zip and installed GNOME there. The latest version is LPI4A_FULL_20231214.zip. While I'm still on the older version I highly recommend flashing the latest image instead.

Once you flashed the image install tasksel and select GNOME in tasksel to install it.