User avatar
dan_in_sd
Posts: 35
Joined: Tue Jul 10, 2012 11:19 pm
Location: San Diego, CA, USA

glxgears from mesa-utils pkg works. but slow

Mon Dec 29, 2014 1:27 am

hello

i have latest raspian image (2014-12-22) and did rpi-update.

I've installed mesa-utils with sudo apt-get install mesa-utils. and then i ran the 'glxgears' command.

i get the rotating gears to show in a window, but performance is slow. 20 fps :(

Q: Can GLX performance be improved on the r-pi?


more GLX info inside my post over in the 'advanced user' forum http://www.raspberrypi.org/forums/viewt ... 4&p=661104

(my apologies for cross posting. sorry )


thanks
RPI #1: Model B | Over-clocked | XBMC | RPI #2: Model B+ 512MB | Beautiful metal case from Lukse.LT | RPI #3: PI2 with Camera, 64GB USB Flash and Wi-Fi

mimi123
Posts: 583
Joined: Thu Aug 22, 2013 3:32 pm

Re: glxgears from mesa-utils pkg works. but slow

Mon Dec 29, 2014 8:51 am

You are posting OpenGL info on a GLES forum...

gkreidl
Posts: 6095
Joined: Thu Jan 26, 2012 1:07 pm
Location: Germany

Re: glxgears from mesa-utils pkg works. but slow

Mon Dec 29, 2014 8:54 am

No, because there is no OpenGL on the Pi.
Minimal Kiosk Browser (kweb)
Slim, fast webkit browser with support for audio+video+playlists+youtube+pdf+download
Optional fullscreen kiosk mode and command interface for embedded applications
Includes omxplayerGUI, an X front end for omxplayer

mimi123
Posts: 583
Joined: Thu Aug 22, 2013 3:32 pm

Re: glxgears from mesa-utils pkg works. but slow

Mon Dec 29, 2014 9:22 am

gkreidl wrote:No, because there is no OpenGL on the Pi.
There is Mesa , see anholt.livejournal.com.

gkreidl
Posts: 6095
Joined: Thu Jan 26, 2012 1:07 pm
Location: Germany

Re: glxgears from mesa-utils pkg works. but slow

Mon Dec 29, 2014 9:30 am

mimi123 wrote:
gkreidl wrote:No, because there is no OpenGL on the Pi.
There is Mesa , see anholt.livejournal.com.
This is purely experimental and I'm not sure that it will ever be finished (last update October, 2014)
1) you have to compile your own kernel
2) you have to compile your own X-Org
3) You have to compile the drivers
4) It will only "work" with a screen resolution of 1680x1050

If you've done all that, what you get is
Now, you can start the server using startx:
startx -- /home/anholt/prefix/bin/Xorg

This should load the modesetting driver. It won't set up AIGLX successfully, but glamor X acceleration should initialize. Also, it will probably hang pretty soon.
see: http://dri.freedesktop.org/wiki/VC4/
Minimal Kiosk Browser (kweb)
Slim, fast webkit browser with support for audio+video+playlists+youtube+pdf+download
Optional fullscreen kiosk mode and command interface for embedded applications
Includes omxplayerGUI, an X front end for omxplayer

jamesh
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 23674
Joined: Sat Jul 30, 2011 7:41 pm

Re: glxgears from mesa-utils pkg works. but slow

Mon Dec 29, 2014 9:40 am

gkreidl wrote:
mimi123 wrote:
gkreidl wrote:No, because there is no OpenGL on the Pi.
There is Mesa , see anholt.livejournal.com.
This is purely experimental and I'm not sure that it will ever be finished (last update October, 2014)
1) you have to compile your own kernel
2) you have to compile your own X-Org
3) You have to compile the drivers
4) It will only "work" with a screen resolution of 1680x1050

If you've done all that, what you get is
Now, you can start the server using startx:
startx -- /home/anholt/prefix/bin/Xorg

This should load the modesetting driver. It won't set up AIGLX successfully, but glamor X acceleration should initialize. Also, it will probably hang pretty soon.
see: http://dri.freedesktop.org/wiki/VC4/
This mesa stuff is under very active development...not sure of timescales though.

also locking this - use the other thread.
Principal Software Engineer at Raspberry Pi (Trading) Ltd.
Contrary to popular belief, humorous signatures are allowed. Here's an example...
"My grief counseller just died, luckily, he was so good, I didn't care."

mimi123
Posts: 583
Joined: Thu Aug 22, 2013 3:32 pm

Re: glxgears from mesa-utils pkg works. but slow

Mon Dec 29, 2014 9:47 am

gkreidl wrote:
mimi123 wrote:
gkreidl wrote:No, because there is no OpenGL on the Pi.
There is Mesa , see anholt.livejournal.com.
This is purely experimental and I'm not sure that it will ever be finished (last update October, 2014)
1) you have to compile your own kernel
2) you have to compile your own X-Org
3) You have to compile the drivers
4) It will only "work" with a screen resolution of 1680x1050

If you've done all that, what you get is
Now, you can start the server using startx:
startx -- /home/anholt/prefix/bin/Xorg

This should load the modesetting driver. It won't set up AIGLX successfully, but glamor X acceleration should initialize. Also, it will probably hang pretty soon.
see: http://dri.freedesktop.org/wiki/VC4/
It works on 1360*768 with a one-line patch. And is still very active.

jamesh
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 23674
Joined: Sat Jul 30, 2011 7:41 pm

Re: glxgears from mesa-utils pkg works. but slow

Mon Dec 29, 2014 10:11 am

Mmm, missed the lock button in previous post!
Principal Software Engineer at Raspberry Pi (Trading) Ltd.
Contrary to popular belief, humorous signatures are allowed. Here's an example...
"My grief counseller just died, luckily, he was so good, I didn't care."

Return to “OpenGLES”