yours3lf22
Posts: 2
Joined: Sun Jun 24, 2018 4:37 pm

New RPi-VK-Driver low level driver

Fri Jun 19, 2020 6:01 pm

Hi,

after working on it in my free time for more than 2 years I'm incredibly proud to announce that RPi-VK-Driver is now released. It's the first low-level GPU driver for the Broadcom Videocore IV GPU powering the Raspberry Pi 0 1, 2, and 3.

Please find it here:
https://github.com/Yours3lf/rpi-vk-driv ... s/tag/v1.0

You can also try out a port of vkQuake3 that uses the new low level driver here:
https://github.com/Yours3lf/vkQuake3/releases/tag/v1.0

It runs at a great frame rate:
https://twitter.com/i/status/1274012749174013954

enjoy!

jdb
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 2393
Joined: Thu Jul 11, 2013 2:37 pm

Re: New RPi-VK-Driver low level driver

Sat Jun 20, 2020 5:10 pm

B u m p

This looks shiny.
For the uninitiated: this is a Vulkan driver for Videocore IV - BCM2835/6/7.
Rockets are loud.
https://astro-pi.org

jimbojones
Posts: 27
Joined: Sun Apr 15, 2018 2:33 pm

Re: New RPi-VK-Driver low level driver

Sat Jun 20, 2020 10:24 pm

Looks really interesting. Would this driver benefit other graphical tasks, such as using Kodi, for example?

Phoronix article https://www.phoronix.com/scan.php?page ... -VK-Driver

HackerNews discussion https://news.ycombinator.com/item?id=23584415

cjan
Posts: 841
Joined: Sun May 06, 2012 12:00 am

Re: New RPi-VK-Driver low level driver

Sat Jun 20, 2020 11:34 pm

yours3lf22 wrote:
Fri Jun 19, 2020 6:01 pm
Please find it here:
https://github.com/Yours3lf/rpi-vk-driv ... s/tag/v1.0
2. run install.sh (as root) in the Vulkan-Loader folder, but folder is empty?

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

Re: New RPi-VK-Driver low level driver

Sun Jun 21, 2020 2:09 am

Oh wow, this is impressive.
Need to dust off my Pi3B+'s and other older Pi's now.
I was expecting vkQuake to show up on the Pi4 first.

Going to need a 2nd or third lockdown to learn all this now.

How many of the Vulkan Examples work?
I'm dancing on Rainbows.
Raspberries are not Apples or Oranges

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

Re: New RPi-VK-Driver low level driver

Sun Jun 21, 2020 7:35 am

Very impressive work!
Principal Software Engineer at Raspberry Pi (Trading) Ltd.
Contrary to popular belief, humorous signatures are allowed.
I've been saying "Mucho" to my Spanish friend a lot more lately. It means a lot to him.

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

Re: New RPi-VK-Driver low level driver

Sun Jun 21, 2020 8:45 am

Compiled all fine but reached my limits of knowledge to use it.
Maybe a path error?
Could not create Vulkan instance :
ERROR_EXTENSION_NOT_PRESENT
Yet another way to do Vulkan?
https://github.com/KhronosGroup/Vulkan-Docs/pull/1292

All the stars must be aligning.

This Kernel 5.4.45 is not bad on a Pi 3B+, I do miss the second screen.
I'm dancing on Rainbows.
Raspberries are not Apples or Oranges

hex007
Posts: 11
Joined: Mon Mar 19, 2018 9:22 pm

Re: New RPi-VK-Driver low level driver

Mon Jun 22, 2020 6:37 am

Can someone post detailed instructions on how to get this working ? 8-)
Last edited by hex007 on Wed Jun 24, 2020 12:34 am, edited 1 time in total.

User avatar
AkulaMD
Posts: 60
Joined: Fri Jun 19, 2020 6:51 am

Re: New RPi-VK-Driver low level driver

Mon Jun 22, 2020 6:47 am

This is great.

It the Pi 3+ can run at 100+ fps. I wonder what kind of performance would we get from our Pi 4B when Igalia finished with the development of the driver.

Other than in game like this, any possibility for us to benefit from the driver in other kind of applications?
Raspberry Pi OS (32-bit) with desktop and recommended software
Raspberry Pi 4 Model B 8GB at stock speed (never overclock)

Never overclock your Pi.
Encourage optimization instead.

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

Re: New RPi-VK-Driver low level driver

Mon Jun 22, 2020 7:14 am

Other than in game like this, any possibility for us to benefit from the driver in other kind of applications?
Games are good , maybe we will get $$ games ported to Pi's?
Godot 4 will have Vulkan support so kids and older folks can learn to code games on Pi's.

3D visualization of data could be faster.
The Pi don't is not have the fastest graphics, tiny improvements make something barely usable into ok now.
I'm dancing on Rainbows.
Raspberries are not Apples or Oranges

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

Re: New RPi-VK-Driver low level driver

Mon Jun 22, 2020 7:35 am

AkulaMD wrote:
Mon Jun 22, 2020 6:47 am
This is great.

It the Pi 3+ can run at 100+ fps. I wonder what kind of performance would we get from our Pi 4B when Igalia finished with the development of the driver.

Other than in game like this, any possibility for us to benefit from the driver in other kind of applications?
Anything that uses 3d acceleration now could benefit. Desktop for example. Blender. Anything that uses 3d in its GUI.
Principal Software Engineer at Raspberry Pi (Trading) Ltd.
Contrary to popular belief, humorous signatures are allowed.
I've been saying "Mucho" to my Spanish friend a lot more lately. It means a lot to him.

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

Re: New RPi-VK-Driver low level driver

Mon Jun 22, 2020 10:02 am

Anything that uses 3d acceleration now could benefit. Desktop for example. Blender. Anything that uses 3d in its GUI.
Blender is stuck at 2.79 due to OpenGL 2.1
Not sure if later versions can use Vulkan?

Desktop :o That's interesting, a faster desktop?
I had been trying to make an OpenVG based WM when the Pi4 came out.
A Vulkan based one will one is more future proof.
Start here?
https://github.com/jaelpark/chamferwm
I'm dancing on Rainbows.
Raspberries are not Apples or Oranges

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

Re: New RPi-VK-Driver low level driver

Mon Jun 22, 2020 11:49 am

Gavinmc42 wrote:
Mon Jun 22, 2020 10:02 am
Anything that uses 3d acceleration now could benefit. Desktop for example. Blender. Anything that uses 3d in its GUI.
Blender is stuck at 2.79 due to OpenGL 2.1
Not sure if later versions can use Vulkan?

Desktop :o That's interesting, a faster desktop?
I had been trying to make an OpenVG based WM when the Pi4 came out.
A Vulkan based one will one is more future proof.
Start here?
https://github.com/jaelpark/chamferwm
The Pi desktop is accelerated using the Mesa stack, it's used for compositing IIRC.

OpenVG is entirely deprecated, so probably best not to use it.

I suppose Vulkan would in some ways be more future proof, but OpenGL will be around for some time yet.
Principal Software Engineer at Raspberry Pi (Trading) Ltd.
Contrary to popular belief, humorous signatures are allowed.
I've been saying "Mucho" to my Spanish friend a lot more lately. It means a lot to him.

laurent
Posts: 341
Joined: Thu Jul 26, 2012 11:24 am

Re: New RPi-VK-Driver low level driver

Mon Jun 22, 2020 1:22 pm

Impressive work !
2 questions though:
- is there any chance this work could be used by Igalia to offer a Vulkan support for VC4 alongside their VC6 work in a single driver ?
- as not every application supports Vulkan yet, how can Vulkan support can be useful for everyday user experience (I heard about Zink for supporting OpenGL ontop of Vulkan) ?

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

Re: New RPi-VK-Driver low level driver

Mon Jun 22, 2020 5:00 pm

laurent wrote:
Mon Jun 22, 2020 1:22 pm
Impressive work !
2 questions though:
- is there any chance this work could be used by Igalia to offer a Vulkan support for VC4 alongside their VC6 work in a single driver ?
- as not every application supports Vulkan yet, how can Vulkan support can be useful for everyday user experience (I heard about Zink for supporting OpenGL ontop of Vulkan) ?
I don't think a monolithic driver would be the way to go - you;d just have a loads of code loaded that wasn't used. Better to have two different drivers.

As for point 2, using drivers is down to people writing code that uses the drivers. If you currently use OpenGL, just continue to use it. No point in implementing OpenGL over the top of Vulkan, that will just slow it down. Just use native GL drivers.
Principal Software Engineer at Raspberry Pi (Trading) Ltd.
Contrary to popular belief, humorous signatures are allowed.
I've been saying "Mucho" to my Spanish friend a lot more lately. It means a lot to him.

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

Re: New RPi-VK-Driver low level driver

Mon Jun 22, 2020 11:18 pm

Vulkan over framebuffer will be interesting for baremetal, not just for Pi's either.
Lots of SoC chips with video/graphics/HDMI only do framebuffer drivers.
Probably some performance loss but that might not matter for the applications they get used in.

Vulkan based GUIs for instrumentation/industrial etc means a Vulkan toolset can be used.
Even a subset like these new drivers < ver 1.0 will be useful.
Vulkan is now available for many OS's, that's good for those reskilling too? "learn to code".

Been catching up on Blender improvements since 2.80, wow if they will work on Pi4's :D
Might need that 8GB Pi'4 :lol:
I'm dancing on Rainbows.
Raspberries are not Apples or Oranges

Return to “General discussion”