Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Raspberry Pi & vc4 (opengl) glxgears fps
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on Alternative Architectures
View previous topic :: View next topic  
Author Message
dasPaul
Tux's lil' helper
Tux's lil' helper


Joined: 14 Feb 2012
Posts: 107

PostPosted: Wed Aug 24, 2016 3:10 pm    Post subject: Raspberry Pi & vc4 (opengl) glxgears fps Reply with quote

Today I tested mesa-9999 with vc4 enabled on my Raspberry Pi 2 and to my astonishment I found a nice new
long awaited eselect opengl option:
[quote]
rp pi # eselect opengl list
Available OpenGL implementations:
[1] raspberrypi *
[2] xorg-x11

8) 8) 8)

I immediately emerged mesa-progs and run "vblank_mode=0 glxgears". Anyone else tried this? I get approx. 88 fps.
Back to top
View user's profile Send private message
Yamakuzure
Veteran
Veteran


Joined: 21 Jun 2006
Posts: 1893
Location: Bardowick, Germany

PostPosted: Thu Aug 25, 2016 7:47 am    Post subject: Reply with quote

If you have "raspberrypi" in the eselect list of opengl, it is using the driver from media-libs/raspberrypi-userland.

The vc4 driver from mesa is a Gallium driver and would not show up there.

I am using mesa-11.2.2 on a Raspberry Pi 3, the current mesa-12.0.1 is broken for me.

glxinfo would then show, in the "Extended renderer info" section:
Code:
    Vendor: Broadcom (0x14e4)
    Device: VC4 (0xffffffff)
    Version: 11.2.2
(...)
OpenGL renderer string: Gallium 0.4 on VC4
btw: I had to uninstall raspberrypi-userland, because X always hung with their driver.

Another note:
With the Gallium driver, glxgears shows ~726 FPS on my machine (Although RPi 3 and not 2). I think you are using swrast, the software rasterizer, and not VC4, because until I got VC4 working, I had ~88FPS, too.

You could try "vblank_mode=0 glxgears -info" and look what renderer it uses.
_________________
systemd - The biggest fallacies
Back to top
View user's profile Send private message
dasPaul
Tux's lil' helper
Tux's lil' helper


Joined: 14 Feb 2012
Posts: 107

PostPosted: Sat Aug 27, 2016 12:53 pm    Post subject: Reply with quote

Quote:

The vc4 driver from mesa is a Gallium driver and would not show up there.

So I should switch back to "xorg-x11"
:(

wth is that llvm stuff ?

Quote:

Extended renderer info (GLX_MESA_query_renderer):
Vendor: VMware, Inc. (0xffffffff)
Device: llvmpipe (LLVM 3.7, 128 bits) (0xffffffff)
Version: 12.1.0
Accelerated: no
Video memory: 860MB
Unified memory: no
Preferred profile: core (0x1)
Max core profile version: 3.3
Max compat profile version: 3.0
Max GLES1 profile version: 1.1
Max GLES[23] profile version: 3.0

OpenGL renderer string: Gallium 0.4 on llvmpipe (LLVM 3.7, 128 bits)


Do you have any special setup? I dont know how to enable the gallium or disable sw-raster
Back to top
View user's profile Send private message
dasPaul
Tux's lil' helper
Tux's lil' helper


Joined: 14 Feb 2012
Posts: 107

PostPosted: Sat Aug 27, 2016 1:16 pm    Post subject: Reply with quote

I use the raspberry pi 7" Touchscreen, maybe thats the reason for the software rendering?

/var/log/Xorg.0.log
Quote:

(II) AIGLX: Screen 0 is not DRI2 capable
[ 113.233] (EE) AIGLX: reverting to software rendering
[ 114.186] (II) AIGLX: enabled GLX_MESA_copy_sub_buffer
[ 114.189] (II) AIGLX: Loaded and initialized swrast
[ 114.189] (II) GLX: Initialized DRISWRAST GL provider for screen 0

Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 36041
Location: 56N 3W

PostPosted: Sat Aug 27, 2016 4:05 pm    Post subject: Reply with quote

Yamakuzure,

I guess that's a 32 bit install on a Pi3 ?
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
dasPaul
Tux's lil' helper
Tux's lil' helper


Joined: 14 Feb 2012
Posts: 107

PostPosted: Sat Aug 27, 2016 5:37 pm    Post subject: Reply with quote

@Yamakuzure, what kernel do you use?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on Alternative Architectures All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum