Skip to content

Running 3D applications on HSDK

Alexey Brodkin edited this page Apr 5, 2018 · 21 revisions

chocolate doom

fbset > /etc/fb.modes && SDL_NOMOUSE=1 chocolate-doom

kmscube

MESA_LOADER_DRIVER_OVERRIDE=imx-drm kmscube --device /dev/dri/card1

glxgears

X&
DISPLAY=:0 glxgears

Wayland on Weston

mkdir /tmp/weston
export XDG_RUNTIME_DIR=/tmp/weston
export MESA_LOADER_DRIVER_OVERRIDE=imx-drm
weston --tty=1

In graphical terminal window execute:

glmark2-es2-wayland

Xserver

Simple DRM device (no 3D acceleration)

cat /etc/Xorg/xorg.conf
Section "Device"
        Identifier      "Driver0"
        Screen          0
        Driver          "modesetting"
        Option          "kmsdev" "/dev/dri/card1"
EndSection

Note kmsdev must point to the bitstreamer device! For example on HSDK board /dev/dri/card0 refers to Vivante GPU, so we have to specify /dev/dri/card1 instaead.

Clone this wiki locally