Go to advanced search

by Brian Beuken
Mon Jul 01, 2019 9:55 am
Forum: OpenGLES
Topic: OpenGL on Buster on both Pi 3 and Pi 4
Replies: 66
Views: 2734

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

Those are the version of the different API's that are supported, so both OpenGL 2.1 and OpenGLES 3.0 are supported on Pi4. You should be able to do that 'out of the box', with the proviso you need to install the dev packages mentioned above. You will need to make changes to the surface, I believe y...
by Brian Beuken
Mon Jul 01, 2019 9:25 am
Forum: OpenGLES
Topic: OpenGL on Buster on both Pi 3 and Pi 4
Replies: 66
Views: 2734

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

Everything is installed by default, the Mesa drivers are running by default. AFAIK, you just recompile your OpenGL app and it works. You should not need to install anything, and if you have, you have probably broken the system and need to start again from scratch. OpenGL max compat profile v2.1. Op...
by Brian Beuken
Mon Jul 01, 2019 8:42 am
Forum: OpenGLES
Topic: OpenGL on Buster on both Pi 3 and Pi 4
Replies: 66
Views: 2734

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

I have no idea what you have done, but there most certainly is full support for the V3D gpu. https://gitlab.freedesktop.org/mesa/mesa/tree/master/src/gallium/winsys/v3d/drm and the various other V3D bits within that mesa repo. I'm wondering if there is full support for the V3D gpu in the rpi4 then ...
by Brian Beuken
Mon Jul 01, 2019 8:29 am
Forum: OpenGLES
Topic: Thread from Pi4 discussion
Replies: 80
Views: 4548

Re: Thread from Pi4 discussion

Is there anything in /var/log/Xorg.0.log aboiut DRI2 ? It should say $ grep DRI2 Xorg.0.log [ 18.264] (II) modeset(0): [DRI2] Setup complete [ 18.265] (II) modeset(0): [DRI2] DRI driver: vc4 [ 18.265] (II) modeset(0): [DRI2] VDPAU driver: vc4 [ 18.486] (II) GLX: Initialized DRI2 GL provider for scr...
by Brian Beuken
Mon Jul 01, 2019 8:25 am
Forum: OpenGLES
Topic: Thread from Pi4 discussion
Replies: 80
Views: 4548

Re: Thread from Pi4 discussion

libEGL warning: DRI2: failed to authenticate It looks like it could be an authorization issue. You mention that you are using VisualGDB. I am not familiar with it, but if it starts the executable remotely, this might be the problem. Have you tried running the generated executable locally? By that I...
by Brian Beuken
Mon Jul 01, 2019 7:34 am
Forum: OpenGLES
Topic: OpenGL on Buster on both Pi 3 and Pi 4
Replies: 66
Views: 2734

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

ok, well perhaps we have a pro]blem of my not understanding the process, which is more than likely as I dislike all forms of linux intensely had have very limited working knowledge of it... I have not pulled anything from github, only apt-get install libgles2-mesa-dev apt-get install xorg-dev If the...
by Brian Beuken
Mon Jul 01, 2019 7:09 am
Forum: Graphics programming
Topic: V3D/VC4 detection and legacy driver.
Replies: 7
Views: 734

Re: V3D/VC4 detection and legacy driver.

Can you be a little clearer on how to activate v3D, on raspi-config advanced options it provides 2 options
Legacy (which we don't have)
and
...something I forgot as I'm not near my pi at the moment

to get GLES2.0/3.0 acceleration do I need to set the 2nd option?
by Brian Beuken
Mon Jul 01, 2019 6:57 am
Forum: OpenGLES
Topic: OpenGL on Buster on both Pi 3 and Pi 4
Replies: 66
Views: 2734

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

Not sure that the Pi4 does actually have v3d mesa driver in place? I had to install libgles2-mesa-dev and after a bit of effort managed to get the Pi to work like any other stock Linux SBC, but the frame rate was appalling. I'm guessing that there is no actual hardware GPU driver available?
by Brian Beuken
Sun Jun 30, 2019 8:39 pm
Forum: OpenGLES
Topic: GLES3.0 :D at last
Replies: 24
Views: 807

Re: GLES3.0 :D at last

no worries, I think its pretty clear that currently there is no hardware access to the GPU, I just want to get that confirmed by someone at the foundation and an estimate of when hardware drivers will be available. Until then the Pi4 is no use to me.
by Brian Beuken
Sun Jun 30, 2019 8:25 pm
Forum: OpenGLES
Topic: GLES3.0 :D at last
Replies: 24
Views: 807

Re: GLES3.0 :D at last

I'll upload it to my site hang on but you'll need visualGDB to build it

actually no, the current demo is too messy trying to fix the Pi4 stuff. But you can get a general version here
http://www.scratchpadgames.net/Files/Un ... edtest.rar
by Brian Beuken
Sun Jun 30, 2019 8:01 pm
Forum: OpenGLES
Topic: GLES3.0 :D at last
Replies: 24
Views: 807

Re: GLES3.0 :D at last

its basically this demo with more models added and the camera at eye level

http://tinymonstersplayinggames.blogspo ... video.html
by Brian Beuken
Sun Jun 30, 2019 7:47 pm
Forum: OpenGLES
Topic: GLES3.0 :D at last
Replies: 24
Views: 807

Re: GLES3.0 :D at last

PeterO wrote:
Sun Jun 30, 2019 7:43 pm
Oh, hang on, you're doing this on a Pi3 ?
PeterO
no, I have this demo running on all Pi's only the zero suffers slow down. The 2's and 3's manage 50-60FPS, the Pi4 with mesa and X11 barely makes 5FPS
by Brian Beuken
Sun Jun 30, 2019 7:46 pm
Forum: OpenGLES
Topic: GLES3.0 :D at last
Replies: 24
Views: 807

Re: GLES3.0 :D at last

You are doing some thing wrong ! My (quite simple) demos are running at 60 fps and hardly any CPU load. What configuration have you changed ? (Hint: I've changed nothing). PeterO well the key point in that statment is "quite simple".... even emulating you can push a few dozen poly's around with no ...
by Brian Beuken
Sun Jun 30, 2019 7:42 pm
Forum: OpenGLES
Topic: GLES3.0 :D at last
Replies: 24
Views: 807

Re: GLES3.0 :D at last

Unless I've made a huge error.... it does seem that switching to mesa-> x11 means that your projects run with 0 hardware gpu at all? Its all emulated And that trying to build an older OpenGLES2.0 project with dispmanx and EGL will simply not run on a Pi 4 at this time? Can someone from tech confirm ...
by Brian Beuken
Sun Jun 30, 2019 7:37 pm
Forum: OpenGLES
Topic: GLES3.0 :D at last
Replies: 24
Views: 807

Re: GLES3.0 :D at last

My Maze hunt demo

I have it working now on the 4 but becuase there's literally no hardware acceleration, its emulating everything and runnig at 5 fps
by Brian Beuken
Sun Jun 30, 2019 7:03 pm
Forum: OpenGLES
Topic: GLES3.0 :D at last
Replies: 24
Views: 807

Re: GLES3.0 :D at last

ok I have mesa installed, but ....its all so slow...are there no drivers at all yet? Mesa seems to be running in full emulation mode and any decent graphics demo is overloading and overheating it. I get 5FPS on a game demo that runs at 60FPS on a P2/3 I hope this is just a case of the drivers are on...
by Brian Beuken
Sun Jun 30, 2019 6:23 pm
Forum: OpenGLES
Topic: Thread from Pi4 discussion
Replies: 80
Views: 4548

Re: Thread from Pi4 discussion

ok yes I did find an issue, I am building code with VisualGDB and it didn't start X, I had actually disabled it, oops once fixed things progressed a little more but, Now I am stumped on this libEGL warning: DRI2: failed to authenticate which is happening here // Initialize EGL if (!eglInitialize(dis...
by Brian Beuken
Sun Jun 30, 2019 4:10 pm
Forum: OpenGLES
Topic: Thread from Pi4 discussion
Replies: 80
Views: 4548

Re: Thread from Pi4 discussion

And to get the xwindow id of the window you are using to pass to egl. I have example code but I've just found a bug in it and I cant update github until I get home. PeterO This is where I am having issues, I can't get an XWindow x_display = XOpenDisplay(NULL); if (x_display == NULL) { printf("Sorry...
by Brian Beuken
Sun Jun 30, 2019 3:35 pm
Forum: OpenGLES
Topic: Thread from Pi4 discussion
Replies: 80
Views: 4548

Re: Thread from Pi4 discussion

PeterO wrote:
Sun Jun 30, 2019 3:10 pm

Yes, I'm just doing the same with my old demos.
PeterO
Should just be a case of treating it like a traditional linux build? I just have to make sure I'm including the correct mesa libs, not the raspberry libs which only work up to model 3.
by Brian Beuken
Sun Jun 30, 2019 2:54 pm
Forum: OpenGLES
Topic: Thread from Pi4 discussion
Replies: 80
Views: 4548

Re: Thread from Pi4 discussion

hmm I am having some issues, just trying to get gles2.0 projects that work on Pi3's to run. Are there dispmanx calls in there being passed to EGL? If so that's not how you do it with mesa libs. The native window given to EGL needs to be an X window handle., Im just trying to run my old GLES2.0 demo...
by Brian Beuken
Fri Jun 28, 2019 11:46 am
Forum: C/C++
Topic: Which Pi am I?
Replies: 9
Views: 495

Re: Which Pi am I?

Excellent thanks
by Brian Beuken
Fri Jun 28, 2019 11:18 am
Forum: C/C++
Topic: Which Pi am I?
Replies: 9
Views: 495

Re: Which Pi am I?

yup that works a treat... any similar tip for finding out memory size?
by Brian Beuken
Fri Jun 28, 2019 11:02 am
Forum: C/C++
Topic: Which Pi am I?
Replies: 9
Views: 495

Re: Which Pi am I?

excellent, thanks, I'll set up a read on init and parse the files.
by Brian Beuken
Fri Jun 28, 2019 10:44 am
Forum: C/C++
Topic: Which Pi am I?
Replies: 9
Views: 495

Which Pi am I?

Now that we have quite some range of Pi's available, the 4 is the 1st to give us some serious coding differences in its graphic systems that means we might have some divergence of target configs. If I want to maintain a project that runs on ES2 and ES3 I'll need a simple way to identify what kind of...
by Brian Beuken
Fri Jun 28, 2019 1:17 am
Forum: OpenGLES
Topic: Thread from Pi4 discussion
Replies: 80
Views: 4548

Re: Thread from Pi4 discussion

hmm I am having some issues, just trying to get gles2.0 projects that work on Pi3's to run.
It builds ok against mesa libs, but at different gl or egl commands it freezes.

Is there a step by step guide on how to configure the Pi4 to build GLES2.0 and GLES3.0 projects?

Go to advanced search