User avatar
PeterO
Posts: 5829
Joined: Sun Jul 22, 2012 4:14 pm

OpenGL AND openGL ES with driver enabled ?

Wed Feb 10, 2016 6:17 pm

I just built a new SD card and HDD partition to play with the new OpenGL driver. glxinfo produces some interesting output. (I've edited out all the extension and visual lists)

Code: Select all

name of display: :0.0
display: :0  screen: 0
direct rendering: Yes
server glx vendor string: SGI
server glx version string: 1.4
server glx extensions:
 
client glx vendor string: Mesa Project and SGI
client glx version string: 1.4
client glx extensions:

GLX version: 1.4
GLX extensions:

OpenGL vendor string: Broadcom
OpenGL renderer string: Gallium 0.4 on VC4
OpenGL version string: 2.1 Mesa 11.1.0
OpenGL shading language version string: 1.20
OpenGL extensions:
 
OpenGL ES profile version string: OpenGL ES 2.0 Mesa 11.1.0
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 1.0.16
OpenGL ES profile extensions:
This all looks good, but I'm intrigued by an OpenGL ES profile appearing here. Does this mean we've now also got "OpenGL ES in a window" support ?

PeterO
Discoverer of the PI2 XENON DEATH FLASH!
Interests: C,Python,PIC,Electronics,Ham Radio (G0DZB),1960s British Computers.
"The primary requirement (as we've always seen in your examples) is that the code is readable. " Dougie Lawson

dave j
Posts: 123
Joined: Mon Mar 05, 2012 2:19 pm

Re: OpenGL AND openGL ES with driver enabled ?

Wed Feb 10, 2016 7:35 pm

You should have listed the extensions. Is the GL_ARB_ES2_compatibility extension listed?

Unfortunately, all my Pi2s are busy doing other things at the moment so I can't have a play with the new driver yet.


David

User avatar
PeterO
Posts: 5829
Joined: Sun Jul 22, 2012 4:14 pm

Re: OpenGL AND openGL ES with driver enabled ?

Wed Feb 10, 2016 7:46 pm

dave j wrote:You should have listed the extensions.
There are 126 lines of output with all the extensions included !
!Is the GL_ARB_ES2_compatibility extension listed?
Yes
Unfortunately, all my Pi2s are busy doing other things at the moment so I can't have a play with the new driver yet.
David
I'm going to try and build a few OpenGL demos I had running a few years ago. Got to build Open Dynamics Engine first !
PeterO
Discoverer of the PI2 XENON DEATH FLASH!
Interests: C,Python,PIC,Electronics,Ham Radio (G0DZB),1960s British Computers.
"The primary requirement (as we've always seen in your examples) is that the code is readable. " Dougie Lawson

ghans
Posts: 7882
Joined: Mon Dec 12, 2011 8:30 pm
Location: Germany

Re: OpenGL AND openGL ES with driver enabled ?

Thu Feb 11, 2016 6:54 am

http://anholt.livejournal.com/45752.html wrote:That's a bit hard to test, since only a few apps work with the existing GLES2 support, while the vc4 driver gives GLX, EGL-on-X11, EGL-on-gbm, most of GL2.1, and all of GLES2, but doesn't support the EGL-on-Dispmanx interface that the previous driver used.
So yes , Open GL ES is also supported.


ghans
• Don't like the board ? Missing features ? Change to the prosilver theme ! You can find it in your settings.
• Don't like to search the forum BEFORE posting 'cos it's useless ? Try googling : yoursearchtermshere site:raspberrypi.org

User avatar
PeterO
Posts: 5829
Joined: Sun Jul 22, 2012 4:14 pm

Re: OpenGL AND openGL ES with driver enabled ?

Thu Feb 11, 2016 7:08 am

I shall have to give this a go because I have quite a bit of OpenGL ES code that I've written over the last few years :-)

I susspect that as people start to try his code we will need to encourage Eric Anholt to join us here to get questions answered.

BTW, what does "which got bikeshedded harder than I've ever had happen to my code before" mean ? (I try not to follow Linux Kernel development ;) )

PeterO
Discoverer of the PI2 XENON DEATH FLASH!
Interests: C,Python,PIC,Electronics,Ham Radio (G0DZB),1960s British Computers.
"The primary requirement (as we've always seen in your examples) is that the code is readable. " Dougie Lawson

ghans
Posts: 7882
Joined: Mon Dec 12, 2011 8:30 pm
Location: Germany

Re: OpenGL AND openGL ES with driver enabled ?

Thu Feb 11, 2016 7:24 am

Last edited by ghans on Wed Oct 11, 2017 11:29 am, edited 1 time in total.
• Don't like the board ? Missing features ? Change to the prosilver theme ! You can find it in your settings.
• Don't like to search the forum BEFORE posting 'cos it's useless ? Try googling : yoursearchtermshere site:raspberrypi.org

User avatar
PeterO
Posts: 5829
Joined: Sun Jul 22, 2012 4:14 pm

Re: OpenGL AND openGL ES with driver enabled ?

Thu Feb 11, 2016 7:41 am

Interesting, and its not what I had imagined it to mean ! I assumed it was something to do with all the old, decaying bikes you see chained up in bike sheds then never move from one year to the next because the owner has either moved away or lost the key to the padlock !

Thanks.

PeterO
Discoverer of the PI2 XENON DEATH FLASH!
Interests: C,Python,PIC,Electronics,Ham Radio (G0DZB),1960s British Computers.
"The primary requirement (as we've always seen in your examples) is that the code is readable. " Dougie Lawson

Return to “OpenGLES”