Page 1 of 1

[FIXED] Stretch lacks proper GPU support

Posted: Sun Oct 29, 2017 9:33 am
by Tichun

Code: Select all

~ glxgears -info
GL_RENDERER   = Gallium 0.4 on llvmpipe (LLVM 3.9, 128 bits)
25 frames in 5.0 seconds =  4.985 FPS
It doesn't matter which driver do I use for glxgears to be slow like this.
After some time it gets to 24fps and takes ~80% cpu (in the default, very small-sized window, for maximised 1920x1080 it is 1fps)
Nothing is hardware accelerated but code with #include "bcm_host.h"
(i.e. omxplayer and /opt examples) and that is bound to the legacy driver as we know.

So we cannot play games, use blender, program anything with gpu support convieniently (e.g. qt) etc.
Months from Stretch's release have passed and I'm thinking of going back to Jessie where (more) things worked as expected.

If we were to compile things ourselves, one could just choose gentoo
https://wiki.gentoo.org/wiki/Raspberry_Pi_VC4

Re: Stretch lacks proper GPU support

Posted: Sun Oct 29, 2017 10:03 am
by feelslikeautumn
Eh? If there is no gpu support how come compiz works so well? viewtopic.php?f=66&t=192010&p=1204239#p1204239

Re: Stretch lacks proper GPU support

Posted: Sun Oct 29, 2017 10:18 am
by Tichun
I'm not interested in trying out compiz, but even if it worked, 99% things don't.
How much fps do you get in glxgears? can you use retropie? can you launch neverball, gamemaker games etc.?
I'm aware what VC4 can and cannot do as it worked great in Jessie, but in Stretch it doesn't work for me.
I think that I am not alone, for retropie still sticks witch jessie and there were plethora of threads somewhat related to gpu problems in stretch and they either died or had solutions that didn't help.

Re: Stretch lacks proper GPU support

Posted: Sun Oct 29, 2017 10:38 am
by Tichun
I flashed another SD card and there is VC4.. no idea how to troubleshoot.
Will have to reflash this SD -.-'

Re: Stretch lacks proper GPU support

Posted: Mon Oct 30, 2017 10:24 am
by ShiftPlusOne
A bit confused by this thread.

Starting from a clean full raspbian image:
1) Enable the full or fake KMS driver in raspi-config
2) Reboot
3) Install neverball and blender.

I am getting the expected 60FPS in glxgears with vc4 enabled.

Neverball runs perfectly. Blender runs at the expected framerate, but has some visual glitches. OOlite runs as it has in jessie (at the full framerate, but with glitchy planet textures).

Re: Stretch lacks proper GPU support

Posted: Tue Oct 31, 2017 12:00 am
by Imperf3kt
I'll also confirm that everything works fine for me.
I use my Pi to run Ren'Py games which require hardware accelleration or else they become next to unresponsive.

So far there have been no issues - things run at ~60fps as expected.

Re: Stretch lacks proper GPU support

Posted: Thu Nov 02, 2017 8:37 am
by AllanGH

Re: Stretch lacks proper GPU support

Posted: Mon Sep 03, 2018 8:15 am
by Tichun
Got the cause and the fix!
The problem was there was xserver-xorg-video-fbturbo installed, now I have only fbdev and it is all perfect.
Troubleshooted with xorg logs.
I have seen at least one ~10 page thread (with swear words and some RPF staff in their spare time) about this problem, but nobody got the fix. Ah.. :P
Wait, wasn't the raspi-config responsible for these packages some time ago? I remember it did, so why doesn't it handle this now?