Go to advanced search

by Brian Beuken
Thu Jul 04, 2019 11:46 am
Forum: OpenGLES
Topic: Thread from Pi4 discussion
Replies: 87
Views: 12329

Re: Thread from Pi4 discussion

rpiMike wrote:
Thu Jul 04, 2019 10:26 am
Turning it off certainly seems to improve Minecraft performance.
Also slightly improves my GLES2.0 high poly demo, but only by a few FPS.
by Brian Beuken
Wed Jul 03, 2019 9:40 pm
Forum: OpenGLES
Topic: OpenGL on Buster on both Pi 3 and Pi 4
Replies: 72
Views: 12020

Re: OpenGL on Buster on both Pi 3 and Pi 4

Post pics, Someone needs to benchmark OpenGLES3 on the Pi4's :D Sure... https://1.bp.blogspot.com/-ZKAdU4SoX0g/XR0cWXI4X1I/AAAAAAAACDg/24N5TENrFpI0HFEWiPRN2jU4E-paofN6QCLcBGAs/s1600/snapshot.png This is a test GLES2.0 project running animated (shader interpolated) MD2 models in a simple maze, with ...
by Brian Beuken
Wed Jul 03, 2019 4:26 pm
Forum: OpenGLES
Topic: Reducing the Drawbuffer res in Pi4
Replies: 0
Views: 1343

Reducing the Drawbuffer res in Pi4

There was a really nice trick on the broadcom VC IV Pi's which allowed me to have a full screen display, but reduce the resolution of the render buffers by halving or quartering the src_rect and using a viewpoint that size. dest_rect.width = width; // it needs to know our window size dest_rect.heigh...
by Brian Beuken
Tue Jul 02, 2019 9:27 am
Forum: OpenGLES
Topic: OpenGL on Buster on both Pi 3 and Pi 4
Replies: 72
Views: 12020

Re: OpenGL on Buster on both Pi 3 and Pi 4

upd: Compute Shaders compilation branch was integrated to master in 20190412 - so can be found in Mesa commit (6b1c6598) - for OpenGL ES 3.1 only (and not a OpenCL) - so sooner or later it will be in driver(and, which is more important, VC VI hardware can support OpenCL\Vulkan). Pretty sure its a w...
by Brian Beuken
Tue Jul 02, 2019 9:14 am
Forum: OpenGLES
Topic: OpenGL on Buster on both Pi 3 and Pi 4
Replies: 72
Views: 12020

Re: OpenGL on Buster on both Pi 3 and Pi 4

PeterO wrote:
Tue Jul 02, 2019 6:11 am
Brian Beuken wrote:
Tue Jul 02, 2019 12:17 am
Thanks Peter, and James et al, I know I was a pain, but I got there in the end.
We got you there in the end, that's what matters :D
Have Fun .
PeterO
yes you did...thanks.
by Brian Beuken
Tue Jul 02, 2019 7:36 am
Forum: OpenGLES
Topic: Thread from Pi4 discussion
Replies: 87
Views: 12329

Re: Thread from Pi4 discussion

The bad news is, what ran at 60fps on a Pi3 runs at 5fps on a Pi4 ....ermmm does that mean the Mesa libs are emulating everything? You will get software 3d rendering if you have the legacy firmware driver enabled. You should have fkms driver enabled (dtoverlay=v3d-fkms-vc4 in config.txt) It is enab...
by Brian Beuken
Tue Jul 02, 2019 1:06 am
Forum: OpenGLES
Topic: GLES3.0 :D at last
Replies: 24
Views: 3031

Re: GLES3.0 :D at last

Problem solved, I did switch off the GL Fake KMS libs...in an early effort to get normal gles2.0 to work, and left it off, as a result mesa didn't have any access to drivers to work with and emulated.

still error on my part, but hey, now we know and if you have similar issues this will help others
by Brian Beuken
Tue Jul 02, 2019 12:17 am
Forum: OpenGLES
Topic: OpenGL on Buster on both Pi 3 and Pi 4
Replies: 72
Views: 12020

Re: OpenGL on Buster on both Pi 3 and Pi 4

ok to ensure that I'm not being totally dim I will honour Peters request and do nothing to the Raspi config GL drivers, leaving them as delivered I again flashed another SD.. waited for it to update, installed mesa-utils and checked the glxinfo ame of display: :0 display: :0 screen: 0 direct renderi...
by Brian Beuken
Mon Jul 01, 2019 11:23 pm
Forum: OpenGLES
Topic: OpenGL on Buster on both Pi 3 and Pi 4
Replies: 72
Views: 12020

Re: OpenGL on Buster on both Pi 3 and Pi 4

removed, fix below
by Brian Beuken
Mon Jul 01, 2019 11:11 pm
Forum: OpenGLES
Topic: GLES3.0 :D at last
Replies: 24
Views: 3031

Re: GLES3.0 :D at last

Brian, Try to compile this on the Pi https://wiki.maemo.org/SimpleGL_example It's worked for everyone else. PeterO ok so yes... I got this to build, and run(I had to cast win to a NativeWindowType but otherwise it was as you provided it.) ... but here's the thing... only with Mesa Libs in place.......
by Brian Beuken
Mon Jul 01, 2019 10:53 pm
Forum: OpenGLES
Topic: OpenGL on Buster on both Pi 3 and Pi 4
Replies: 72
Views: 12020

Re: OpenGL on Buster on both Pi 3 and Pi 4

ok brand new Buster finally installed, I had to try a couple of other SD cards as it froze during the updates.. So here's a step by step of my attempt to get a functioning GLES2.0 project (on pi's and several linux SBC systems) to work on pi 4 fresh out of the box, installing apt-get mesa-utils glxi...
by Brian Beuken
Mon Jul 01, 2019 10:18 pm
Forum: OpenGLES
Topic: OpenGL on Buster on both Pi 3 and Pi 4
Replies: 72
Views: 12020

Re: OpenGL on Buster on both Pi 3 and Pi 4

anytime you see vendor VMWare you are emulating... This is completely wrong about emulation - VMWare is employer of Mesa creator Brian Paul (and Keith Whitwell too). ok, but the reality is GLXinfo, or the glGetString(GL_VENDOR) does not know what the GPU is, it posts VMWare as the vendor, and prett...
by Brian Beuken
Mon Jul 01, 2019 3:39 pm
Forum: OpenGLES
Topic: OpenGL on Buster on both Pi 3 and Pi 4
Replies: 72
Views: 12020

Re: OpenGL on Buster on both Pi 3 and Pi 4

Yup
anytime you see vendor VMWare you are emulating...

So burning a new Buster now, apt-get mesa-utils and run glxinfo 1st
then try to build the project with no other graphic apt-gets
and report back
by Brian Beuken
Mon Jul 01, 2019 3:24 pm
Forum: OpenGLES
Topic: OpenGL on Buster on both Pi 3 and Pi 4
Replies: 72
Views: 12020

Re: OpenGL on Buster on both Pi 3 and Pi 4

so now I'm going to burn a fresh buster, and try the build again with no mesa install
by Brian Beuken
Mon Jul 01, 2019 3:18 pm
Forum: OpenGLES
Topic: OpenGL on Buster on both Pi 3 and Pi 4
Replies: 72
Views: 12020

Re: OpenGL on Buster on both Pi 3 and Pi 4

hmmm I don't have it installed..... isn't it part of the mesa libs? Ah no, its mesa-utils, hang on name of display: :0 display: :0 screen: 0 direct rendering: Yes server glx vendor string: SGI server glx version string: 1.4 server glx extensions: GLX_ARB_context_flush_control, GLX_ARB_create_context...
by Brian Beuken
Mon Jul 01, 2019 2:59 pm
Forum: OpenGLES
Topic: OpenGL on Buster on both Pi 3 and Pi 4
Replies: 72
Views: 12020

Re: OpenGL on Buster on both Pi 3 and Pi 4

running local on the Pi itself it still fails to authenticate, I printed out some info to get a sense of what I did and didn't have.. here's the output from a build using mesa libs, mesa's EGL, no bcm_host and Mesa's GLESv2 located in /usr/lib/arm-linux-gnueabihf we got an xwindow we got an Nativewi...
by Brian Beuken
Mon Jul 01, 2019 1:24 pm
Forum: OpenGLES
Topic: OpenGL on Buster on both Pi 3 and Pi 4
Replies: 72
Views: 12020

Re: OpenGL on Buster on both Pi 3 and Pi 4

It is not RPF/RPT job to maintain a 3rd party's code for them. The Pi platform has changed and is still using standards , just different ones. You need to give the 3rd parties some time to update their products. PeterO At no point have I said it was, their job to maintain a 3rd party code.... but i...
by Brian Beuken
Mon Jul 01, 2019 1:23 pm
Forum: OpenGLES
Topic: OpenGL on Buster on both Pi 3 and Pi 4
Replies: 72
Views: 12020

Re: OpenGL on Buster on both Pi 3 and Pi 4

Pi 0-3 in legacy mode can invoke DispmanX resources from any context. Pi4 (and 0-3 in KMS modes) have the normal Linux restrictions of a constraining the resource context to that which currently owns the display, typically X11. Is VisualGDB adding "DISPLAY=:0" or similar to the launch line? If not ...
by Brian Beuken
Mon Jul 01, 2019 12:10 pm
Forum: OpenGLES
Topic: GLES3.0 :D at last
Replies: 24
Views: 3031

Re: GLES3.0 :D at last

Brian, Try to compile this on the Pi https://wiki.maemo.org/SimpleGL_example It's worked for everyone else. PeterO since it might be a while before I can get to my pi desk Peter, I have an idea,;try putting the draw in a loop and draw 1000 of those quads, its not good to do so many draw calls, but ...
by Brian Beuken
Mon Jul 01, 2019 11:48 am
Forum: OpenGLES
Topic: GLES3.0 :D at last
Replies: 24
Views: 3031

Re: GLES3.0 :D at last

Brian, Try to compile this on the Pi https://wiki.maemo.org/SimpleGL_example It's worked for everyone else. PeterO thanks Peter, I will do that later as Im not at my pi desk, but reading the code, it is very much the same basic systems I use to set up OpenGL/EGL (I listed it elsewhere) It will prob...
by Brian Beuken
Mon Jul 01, 2019 11:37 am
Forum: OpenGLES
Topic: GLES3.0 :D at last
Replies: 24
Views: 3031

Re: GLES3.0 :D at last

I've taken out the Broadcom and dispmanX systems and replaced them with mesa and X11, there's no more reference to those systems, and its running pure mesa...at 5FPS and the CPU is on fire.... This statement. they are still on the board, I meant I took out all references to them in the code, instea...
by Brian Beuken
Mon Jul 01, 2019 11:27 am
Forum: OpenGLES
Topic: OpenGL on Buster on both Pi 3 and Pi 4
Replies: 72
Views: 12020

Re: OpenGL on Buster on both Pi 3 and Pi 4

I don't tend to use the cross compilers, mainly because I set my demo's up to work on about 20 different boards, some of which have cross compilers some don't. So I do on target builds as a rule, so I am using the debug features rather than the compile features. It still uses Raspbians GCC tools on ...
by Brian Beuken
Mon Jul 01, 2019 11:05 am
Forum: OpenGLES
Topic: GLES3.0 :D at last
Replies: 24
Views: 3031

Re: GLES3.0 :D at last

What did I do that removed them?

I only installed libgles2-mesa-dev and xorg-dev
by Brian Beuken
Mon Jul 01, 2019 11:03 am
Forum: OpenGLES
Topic: OpenGL on Buster on both Pi 3 and Pi 4
Replies: 72
Views: 12020

Re: OpenGL on Buster on both Pi 3 and Pi 4

sorry James I didn't want to come off as being hissy, just getting very confused by the mass of contradiction and presumption. the Raspberry has always been my favourite goto system, as its the easiest to use and always rock steady, but the Pi4 is not yet as stable as its predecessors. But the reali...
by Brian Beuken
Mon Jul 01, 2019 10:38 am
Forum: OpenGLES
Topic: OpenGL on Buster on both Pi 3 and Pi 4
Replies: 72
Views: 12020

Re: OpenGL on Buster on both Pi 3 and Pi 4

again.....hmmm look the simple fact is, that I've used VisualGDB as a development tool for 4 years now, it fully supports Raspi, and is a standard industry build tool for embeded systems and SBC's. If there is an issue with it on Pi4, then I think it would be wise to identify and fix it, not abandon...

Go to advanced search