ShiftPlusOne
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 6195
Joined: Fri Jul 29, 2011 5:36 pm
Location: The unfashionable end of the western spiral arm of the Galaxy

Mesa 19.3.2 available for testing

Wed Jan 22, 2020 5:25 pm

Some of you may have seen the news of OpenGL ES 3.1 conformance:
https://blogs.igalia.com/itoral/2020/01 ... nformance/

We've updated Mesa to 19.3.2 to get all the new fixes and features, but this required updates to llvm-9, libclc, libdrm and libglvnd. Sometimes updating libraries like these can mess with packages which depend on them, so testers are definitely welcome.

If you would like to try it, edit /etc/apt/sources.list.d/raspi.list and add 'untested' to the line 'deb' line so that it looks like this:

Code: Select all

deb http://archive.raspberrypi.org/debian/ buster main ui untested
If you don't have "ui" in there, that's okay.

Then update and upgrade as usual:

Code: Select all

sudo apt update
sudo apt full-upgrade
reboot

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

Re: Mesa 19.3.2 available for testing

Wed Jan 22, 2020 5:35 pm

Trying it now ....
PeterO

My GLES 3.0 code is still working OK :-)

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

williamc
Posts: 5
Joined: Wed Jan 22, 2020 12:35 pm

Re: Mesa 19.3.2 available for testing

Thu Jan 23, 2020 2:23 am

I had installed the Debian Sid repositories and updated to get to Mesa 19.3.2 on Raspbian Buster. (Works fine as far as I can tell, by the way.) I can't edit sources.list and go back to the unstable Raspbian, right?

EDIT: I edited sources.list, and then made the addition in the OP to go to untested Raspbian Buster without any issues (as far I can tell). Mesa 19.3.2 still working pretty much the same as the last version.

EDIT: To clarify, I removed the debian sid repository and then added untested to Raspbian Buster.
Last edited by williamc on Thu Jan 23, 2020 3:47 am, edited 1 time in total.

ShiftPlusOne
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 6195
Joined: Fri Jul 29, 2011 5:36 pm
Location: The unfashionable end of the western spiral arm of the Galaxy

Re: Mesa 19.3.2 available for testing

Thu Jan 23, 2020 2:38 am

Mixing in Debian repos, especially from different releases, is not a good idea.

User avatar
Gavinmc42
Posts: 4339
Joined: Wed Aug 28, 2013 3:31 am

Re: Mesa 19.3.2 available for testing

Thu Jan 23, 2020 2:59 am

Cool,
I think this might be the first time Raspbian beat Gentoo64 on mesa versions?
Compute Shaders and OpenGLES 3.1.

Probably too early to see code examples?
I'm dancing on Rainbows.
Raspberries are not Apples or Oranges

williamc
Posts: 5
Joined: Wed Jan 22, 2020 12:35 pm

Re: Mesa 19.3.2 available for testing

Thu Jan 23, 2020 3:28 am

ShiftPlusOne wrote:
Thu Jan 23, 2020 2:38 am
Mixing in Debian repos, especially from different releases, is not a good idea.
I know. But it's too late. =/ I like to mess around and look for trouble. However, I feel that the Raspbian build of Mesa is better. Seems less laggy and I believe that it's actually adjusting the frame rate to the material. The Sid version was running at 60 fps the whole time but the Raspbian build adjusted to 23.976. Decoder is ff-hevc-mmal (HW), and it looks great.

EDIT: LOL. Mixing repositories came to bite me in the ass right away. Trying to install certain programs lead to errors. I had to remove the entire chain of dependencies until the offending package was removed before I could install programs.

EDIT: The Mesa 19.3.2 is much better than the 19.2. An H.265 4K stream was beautiful, as was an MPEG2 stream. Did you guys make the system actually sync frame rates to the display?

User avatar
Gavinmc42
Posts: 4339
Joined: Wed Aug 28, 2013 3:31 am

Re: Mesa 19.3.2 available for testing

Thu Jan 23, 2020 11:09 am

Just finished putting x11 with Openbox on Gentoo64 Lite, glxinfo reports 19.3.2 :o
GLES is 3.1
It looks like I owe Sakaki a big apology, Gentoo64 is still bleeding edge.
I think my full desktop Gentoo64 is broken, it is stuck on 19.2.4, time for a new one.
I'm dancing on Rainbows.
Raspberries are not Apples or Oranges

User avatar
ledow
Posts: 40
Joined: Thu Feb 02, 2012 12:55 pm

Re: Mesa 19.3.2 available for testing

Thu Jan 23, 2020 12:10 pm

There are reports that it can make some thing slower, and not support as many overclocking options, or lock up:

https://retropie.org.uk/forum/topic/245 ... nformant/6

Can anyone confirm?

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

Re: Mesa 19.3.2 available for testing

Thu Jan 23, 2020 12:44 pm

No idea. Try it on a new SD card as see? Sounds like that thread is at the bleeding edge - ask there?
Principal Software Engineer at Raspberry Pi (Trading) Ltd.
Contrary to popular belief, humorous signatures are allowed. Here's an example...
“I own the world’s worst thesaurus. Not only is it awful, it’s awful."

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

Re: Mesa 19.3.2 available for testing

Thu Jan 23, 2020 1:39 pm

ledow wrote:
Thu Jan 23, 2020 12:10 pm
There are reports that it can make some thing slower, and not support as many overclocking options, or lock up:

https://retropie.org.uk/forum/topic/245 ... nformant/6

Can anyone confirm?
I doubt that has anything to do with Mesa. I expect the poster also picked up new kernel and firmware when they upgraded mesa.

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

ShiftPlusOne
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 6195
Joined: Fri Jul 29, 2011 5:36 pm
Location: The unfashionable end of the western spiral arm of the Galaxy

Re: Mesa 19.3.2 available for testing

Thu Jan 23, 2020 1:45 pm

Just installed RetroPie - Getting 60fps from emulationstation and glxgears - matching the refresh rate.

30fps while the main screen is up

Downgraded mesa to 19.2.0 - Same results in emulationstation. glxgears framerate went down.

Can't reproduce the issues reported on the retropie forum.

WODAK
Posts: 15
Joined: Thu Jan 23, 2020 1:53 pm

Re: Mesa 19.3.2 available for testing

Thu Jan 23, 2020 2:07 pm

Is the latest firmware (rpi-update) related to the latest Mesa drivers? Can we just update the latest MESA drivers on older firmware without the rpi-update and not having any related problems?

I know that the RP team dosn't appreciate that but without the overclocking of the GPU we get a lot of stutter and can't reliably hit framerate in most of the games (Dreamcast, N64, Dolphin,...)

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

Re: Mesa 19.3.2 available for testing

Thu Jan 23, 2020 2:13 pm

Has this thread been moved ? I'm sure it wasn't in Gentoo before !
First post certainly has nothing to do with Gentoo !
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

ShiftPlusOne
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 6195
Joined: Fri Jul 29, 2011 5:36 pm
Location: The unfashionable end of the western spiral arm of the Galaxy

Re: Mesa 19.3.2 available for testing

Thu Jan 23, 2020 2:14 pm

Yeah, looks like somebody moved it for some reason. Moving back....

ShiftPlusOne
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 6195
Joined: Fri Jul 29, 2011 5:36 pm
Location: The unfashionable end of the western spiral arm of the Galaxy

Re: Mesa 19.3.2 available for testing

Thu Jan 23, 2020 2:25 pm

WODAK wrote:
Thu Jan 23, 2020 2:07 pm
Is the latest firmware (rpi-update) related to the latest Mesa drivers? Can we just update the latest MESA drivers on older firmware without the rpi-update and not having any related problems?

I know that the RP team dosn't appreciate that but without the overclocking of the GPU we get a lot of stutter and can't reliably hit framerate in most of the games (Dreamcast, N64, Dolphin,...)
Welcome

It's possible that some mesa changes also require recent kernel or firmware changes, but I'm not sure. You could try running older firmware and just upgrade mesa to check.

You should also be able to bump up v3d_freq and use over_voltage, which may help get the old performance back. hdmi_enable_4kp60 may help as well.

williamc
Posts: 5
Joined: Wed Jan 22, 2020 12:35 pm

Re: Mesa 19.3.2 available for testing

Thu Jan 23, 2020 8:51 pm

ShiftPlusOne wrote:
Thu Jan 23, 2020 1:45 pm
Just installed RetroPie - Getting 60fps from emulationstation and glxgears - matching the refresh rate.

30fps while the main screen is up

Downgraded mesa to 19.2.0 - Same results in emulationstation. glxgears framerate went down.

Can't reproduce the issues reported on the retropie forum.
When I upgraded to Mesa 19.3.2, I had to run raspi-config to switch back to fake KMS. It was using software decoding, and Kodi was laggy as heck.

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

Re: Mesa 19.3.2 available for testing

Thu Jan 23, 2020 10:03 pm

williamc wrote:
Thu Jan 23, 2020 8:51 pm
ShiftPlusOne wrote:
Thu Jan 23, 2020 1:45 pm
Just installed RetroPie - Getting 60fps from emulationstation and glxgears - matching the refresh rate.

30fps while the main screen is up

Downgraded mesa to 19.2.0 - Same results in emulationstation. glxgears framerate went down.

Can't reproduce the issues reported on the retropie forum.
When I upgraded to Mesa 19.3.2, I had to run raspi-config to switch back to fake KMS. It was using software decoding, and Kodi was laggy as heck.
Presumably you are not on a Pi4?
Principal Software Engineer at Raspberry Pi (Trading) Ltd.
Contrary to popular belief, humorous signatures are allowed. Here's an example...
“I own the world’s worst thesaurus. Not only is it awful, it’s awful."

darksavior
Posts: 10
Joined: Sat Jul 25, 2015 7:56 am

Re: Mesa 19.3.2 available for testing

Fri Jan 24, 2020 2:08 am

ShiftPlusOne wrote:
Thu Jan 23, 2020 1:45 pm
Just installed RetroPie - Getting 60fps from emulationstation and glxgears - matching the refresh rate.

30fps while the main screen is up

Downgraded mesa to 19.2.0 - Same results in emulationstation. glxgears framerate went down.

Can't reproduce the issues reported on the retropie forum.
I'm the poster from the retropie forum. Scrolling through menu is ~60fps before and ~30fps after. I reproduced it on three installs. Are you using the pi4 weekly dev image? https://files.retropie.org.uk/images/weekly/
I do not use rpi-update. Forcing resolution to 1080p. I only ran the instructions from the first post. I'll try rpi-update in a bit.

UPDATE: Ran rpi-update, no change. What I did notice, if I enter retropie-setup from the ES menu, then exit to the menu, it's ~60fps. Loading a game and then exiting or a reboot brings it back to ~30fps.

User avatar
Gavinmc42
Posts: 4339
Joined: Wed Aug 28, 2013 3:31 am

Re: Mesa 19.3.2 available for testing

Fri Jan 24, 2020 6:29 am

A bit more here and a glimpse into whats next.
https://www.hackster.io/news/raspberry- ... 5e7b31c625
I'm dancing on Rainbows.
Raspberries are not Apples or Oranges

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

Re: Mesa 19.3.2 available for testing

Fri Jan 24, 2020 8:18 am

Gavinmc42 wrote:
Fri Jan 24, 2020 6:29 am
A bit more here and a glimpse into whats next.
https://www.hackster.io/news/raspberry- ... 5e7b31c625
I can't see anything in there we didn't know already. What's the "what's next" bit ?
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

User avatar
Gavinmc42
Posts: 4339
Joined: Wed Aug 28, 2013 3:31 am

Re: Mesa 19.3.2 available for testing

Fri Jan 24, 2020 8:40 am

I did not see this a week ago
It is just more confirmation from the horse mouth for stuff we knew.

I assume those bugs were fixed in 19.3.2?
"We have an implementation of [geometry shading]," he writes, "but have paused [tessellation] while we look at other things."
Was that clear before or is this a rehash?
Anyway, going to be a busy weekend.

Check if geometry shading was or was not included?
I'm dancing on Rainbows.
Raspberries are not Apples or Oranges

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

Re: Mesa 19.3.2 available for testing

Fri Jan 24, 2020 9:40 am

Gavinmc42 wrote:
Fri Jan 24, 2020 8:40 am
I did not see this a week ago
It is just more confirmation from the horse mouth for stuff we knew.

I assume those bugs were fixed in 19.3.2?
"We have an implementation of [geometry shading]," he writes, "but have paused [tessellation] while we look at other things."
Was that clear before or is this a rehash?
Anyway, going to be a busy weekend.

Check if geometry shading was or was not included?
I don't believe that geometry shading is in the current release, but might be in the repos.
Principal Software Engineer at Raspberry Pi (Trading) Ltd.
Contrary to popular belief, humorous signatures are allowed. Here's an example...
“I own the world’s worst thesaurus. Not only is it awful, it’s awful."

User avatar
Gavinmc42
Posts: 4339
Joined: Wed Aug 28, 2013 3:31 am

Re: Mesa 19.3.2 available for testing

Fri Jan 24, 2020 11:19 am

I don't believe that geometry shading is in the current release, but might be in the repos.
Thanks, no hurry I expect compute shaders are going to keep me busy for months, perhaps a year.
There looks to be lots of AI/ML/NN code that might be able to use OpenGLES3.1 Compute shaders.
Lots of audio stuff too.
Even OpenVX can use it, looks like that PI3 reference design did not get done.
Some OpenCL stuff might be converted or have that option?

Recompile a bunch of games?
OpenGLES3.1 stuff can be as recent as 2015, not ancient history like ES2.0 :lol:
I wonder if the new multipass example can be converted to SSBO?
https://github.com/Blakkis/GLSL_Python
I'm dancing on Rainbows.
Raspberries are not Apples or Oranges

ShiftPlusOne
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 6195
Joined: Fri Jul 29, 2011 5:36 pm
Location: The unfashionable end of the western spiral arm of the Galaxy

Re: Mesa 19.3.2 available for testing

Fri Jan 24, 2020 12:39 pm

darksavior wrote: I'm the poster from the retropie forum. Scrolling through menu is ~60fps before and ~30fps after. I reproduced it on three installs. Are you using the pi4 weekly dev image? https://files.retropie.org.uk/images/weekly/
I do not use rpi-update. Forcing resolution to 1080p. I only ran the instructions from the first post. I'll try rpi-update in a bit.

UPDATE: Ran rpi-update, no change. What I did notice, if I enter retropie-setup from the ES menu, then exit to the menu, it's ~60fps. Loading a game and then exiting or a reboot brings it back to ~30fps.
I installed it using RetroPie-Setup on my normal Raspbian install. I'm seeing 30fps while scrolling through menus with or without the Mesa update. And 60fps in both cases just launching emulationstation without opening the menu.

User avatar
Gavinmc42
Posts: 4339
Joined: Wed Aug 28, 2013 3:31 am

Re: Mesa 19.3.2 available for testing

Fri Jan 24, 2020 7:56 pm

Has this thread been moved ? I'm sure it wasn't in Gentoo before !
First post certainly has nothing to do with Gentoo !
Sorry, I do most of my mesa and OpenGL stuff on Gentoo64 these days.

Once I turned the Compositor off on old 19.2.4 Gentoo64 vblank_mode=0 glxgears was s getting ~1430fps, with 19.3.2 it was ~1380fps.
My first test is showing 19.3.2 is a bit slower.
Will use the mesa demos for more testing, I think there was some compute shader examples?
I'm dancing on Rainbows.
Raspberries are not Apples or Oranges

Return to “Raspbian”