Login
Username:

Password:

Remember me



Lost Password?

Register now!

Sections

Who's Online
61 user(s) are online (3 user(s) are browsing News)

Members: 0
Guests: 61

more...

Support us!

Headlines


Recent Replied Topics
Software News : Mesa for AmigaOS4
Posted by kas1e on 2026/8/20 22:36:56 (1290 reads) News by the same author
Software News

MESA for AmigaOS4

--- Introduction:

Yes, you read that correctly: full-blown MESA for AmigaOS4! And no, this is not a software-based, half-working version. It is fully hardware-accelerated Mesa, supporting OpenGL up to version 4.6 and OpenGL ES up to version 3.2.
And yes, Gallium, RadeonSI, NIR, ACO, and everything else are included.

Resized Image

And it is FREE! No payment for the time spent on this port is requested,
there is no charge for updates, there is no need to register your interest,
and there are no pre-orders or pointless PDFs. FREE as it should be! Check
this out and pump up the volume!





This port is based on Mesa 26.1.5 (2026-07-15). It completely bypasses
ogles2.library and warp3dnova.library and works directly with the Radeon
drivers. To make this possible, I had to disassemble the RadeonRX and
RadeonHD drivers, discover how to use them and which APIs they provide, and
write Mesa's winsys bridge to connect it to A-EON's drivers.

This also means that you still need A-EON's Radeon drivers until free
replacements become available.


--- What has been done? Is it bug-free? Is it stable?

The current version has been tested on the X1000, X5000, Sam460, and
Pegasos2 through a PCI-to-PCIe bridge. Tested RadeonHD cards cover Oland,
Cape Verde, Pitcairn, and Tahiti, including the R7 240, R7 250, and R9 280.
Tested RadeonRX cards cover Polaris 10, 11, and 12, including the RX 550, RX
560, RX 570, and RX 580. Beta testing was performed by four testers, so the
first release should be in good shape.

The complete list of changes is long. These are the most important parts:

-- a native "winsys" bridge for direct use of A-EON's RadeonRX and
RadeonHD drivers
-- support for Resource Manager API: v3 in RadeonRX 2.12 and RadeonHD
5.20, and API v1 in RadeonHD 3.7
-- a native mesa.library shared by all GL and OpenGL ES clients, with
support for multiple simultaneous clients
-- a private resident heap for Mesa and C++ allocations
-- ACO and NIR shader compilation without LLVM
-- correct little-endian ACO shader-code and relocation uploads
-- extensive big-endian fixes for vertex descriptors, formats, inputs,
index handling, and other GPU data paths
-- adaptation of RadeonSI's address32 GPU-VA optimisation
-- avoidance of unnecessary full 64-bit GPU-address handling
-- GART-preferred memory with a validated non-GART fallback
-- a runtime-selected cache policy for better performance
-- a native Exec/DOS threading implementation for GCC gthreads and
Mesa's pthread and C11 threading
-- a fast GLAPI current-context path that bypasses slow GCC emuTLS on
hot OpenGL entrypoints
-- native PPC32 assembly GLAPI dispatch entrypoints
-- a worker-free CPU queue mode for our single core systems
-- RadeonHD-specific compatibility and state-restoration fixes
-- RadeonHD Oland fixes for texture tiling and GPU hangs
-- and much more

Of course, work of this scale is unlikely to be entirely bug-free, and some
issues will certainly need to be addressed in future versions. However, the
port in its current form is mature enough to be used by both users and
developers. I hope you will help me shake out the remaining bugs. With your
reports, we can continue making it better. I am sure there is still plenty
to improve.


--- Speed:

The first question you may ask is: what about speed? The answer is that it
is faster. When emulating the fixed-function pipeline (which is what GL4ES
provides on top of ogles2.library and warp3dnova.library), Mesa is usually
faster, sometimes about the same, and much faster in some areas. As an
example, with identical settings, Quake 3 reaches 125 FPS with the GL4ES
build and 155 FPS with the Mesa build. That is not a huge difference, at
least for now, but it is still an improvement.

But fixed-function pipeline belongs to the old OpenGL 2.x era. When it comes
to OpenGL 3 / 4 and shaders use, Mesa brings much more. Shader compatibility
is far better than with the old Warp3D Nova shader compiler. The tested
shader paths are no longer limited by its SGPR and VGPR restrictions,and the
related ring hangs have been eliminated. Some shaders run two,three, or even
four times faster.

This Mesa port uses all the things available to it,including cache coherency,
GART, fences, and asynchronous GPU submission and presentation. For the best
performance, use the latest public drivers:

RadeonRX => 2.12
RadeonHD => 5.20 (RadeonHD 3.7 also works, but is _NOT_ recommended)

Yes, some people still prefer RadeonHD 3.7 because of working warm reboot.
However, version 3.7 has no usable GART path and can be much slower than
RadeonHD 5.20. On the X1000, it is three to four times slower in some areas.
Mesa still can work with RadeonHD 3.7, but it is much slower than with 5.20.
You have been warned!

Also, none of A-EON's public RadeonHD or RadeonRX drivers provides a working
GART path on the Sam460. Mesa port therefore uses a non-GART fallback on the
systems which don't have working GART,which is not as bad as it might sound.

For Mesa on AmigaOS4, cards with more compute units and texture units will
generally perform better. Of all the RadeonHD and RadeonRX cards tested so
far, the fastest was:

Radeon RX 580 (Polaris 10), with 36 active CUs and 144 texture units
(four texture units per CU)

The fastest tested RadeonHD card was:

Radeon R9 280X Dual-X (Tahiti), with 28 active CUs and 112 texture units

A RadeonHD card therefore also works well when used with the RadeonHD 5.20
driver. RadeonRX is still somewhat faster, but both ranges are competitive.

Another video demonstrates the speed of Shadertoy shaders on a Radeon RX 570
with 32 active CUs and 128 texture units. Most of these shaders did not
compile with the Warp3D Nova shader compiler. Those that did were often many
times slower than with the current Mesa port:






--- What is missing, and what is planned for future versions?

-- a persistent on-disk shader cache
-- further bug fixes, endian fixes, and optimisations


--- Outro:

That is it. The Mesa archive includes an SDK, so you can use it right away.
It also includes several tests, such as standalone Shadertoy examples and
the glmark2 benchmark suite. In C: you will also find a program that queries
and displays information about your RadeonHD or RadeonRX card.

Grab it from OS4Depot while it is hot, and never say never!

(c) kas1e 2026.08.20

Printer friendly page Send this story to a friend
The comments are owned by the author. We aren't responsible for their content.
Author Thread
Helloworld
Published: 2026/8/20 23:36  Updated: 2026/8/20 23:36
Just popping in
Joined: 05/28/2016
From: Amigaland
Comments: 98
 Re: Mesa for AmigaOS4
holy sh!t.

I said that a couple of times reading this in public transport. holy sh!t.



long live kas1e
328gts
Published: 2026/8/21 1:09  Updated: 2026/8/21 1:09
Home away from home
Joined: 07/07/2009
From: Man Cave, Canada
Comments: 3546
 Thanks!
Much appreciated great news !!!
davec555
Published: 2026/8/21 1:37  Updated: 2026/8/21 1:37
Just popping in
Joined: 12/07/2022
From: Los Angeles
Comments: 64
 Re: Mesa for AmigaOS4
Absolutely amazing.
Is there a sdl2/sdl3 context for it?
Petrol
Published: 2026/8/21 5:52  Updated: 2026/8/21 5:52
Just popping in
Joined: 05/18/2017
From: Audruicq, France
Comments: 212
 Re: Mesa for AmigaOS4
WOW!
Skateman
Published: 2026/8/21 6:00  Updated: 2026/8/21 6:00
Not too shy to talk
Joined: 10/28/2017
From: Netherlands
Comments: 369
 Re: Mesa for AmigaOS4
Wow!! Well done kas1e !!

Good to see news like this popup.
Keep up the good work.
afxgroup
Published: 2026/8/21 6:31  Updated: 2026/8/21 6:31
Amigans Defender
Joined: 12/02/2006
From: Taranto, Italy
Comments: 1504
 FINALLY!
AHHHHHHHHHHHHH!! YOU ARE THE MAN! WELL DONE!
BSzili
Published: 2026/8/21 6:45  Updated: 2026/8/21 6:45
Quite a regular
Joined: 10/17/2013
From: Hungary
Comments: 781
 amazin'
This is what AmigaKit should have done from the start instead of reinventing the wheel with a proprietary API, which spawned a 100 different wrappers and workarounds to have OpenGL working. Props for releasing it on OS4Depot instead of making the users jump through hoops.
Capehill
Published: 2026/8/21 6:58  Updated: 2026/8/21 6:58
Just can't stay away
Joined: 07/14/2007
From: Lothric
Comments: 1827
 Which shaders?
Does it also support compute shaders?
PEB
Published: 2026/8/21 9:03  Updated: 2026/8/21 9:09
Not too shy to talk
Joined: 11/29/2006
From:
Comments: 476
 Thank You, kas1e
Thanks for all your hard work in bringing quality software to OS4!

When I try to run the glmark2 test program, I get the following output:
Quote:
Error: Failed to create the mesa.library desktop OpenGL via MesaGetProcAddress surface: MesaMakeCurrent failed with status 12
Error: CanvasGeneric: Invalid EGL state
Error: main: Could not initialize canvas


(I've got a Radeon RX Polaris12 board in my SAM460.)
smf
Published: 2026/8/21 9:46  Updated: 2026/8/21 9:46
Not too shy to talk
Joined: 11/29/2006
From:
Comments: 284
 Re: Mesa for AmigaOS4
Way to cool!
nubechecorre
Published: 2026/8/21 10:19  Updated: 2026/8/21 10:19
Just can't stay away
Joined: 11/24/2006
From: Sanremo
Comments: 1970
 Amazing!
You are amazing! Kudos!!!!!! We all own you a Big Pizza and also a Fiorentina with Chianti (Do you plan to come and visit Italy??)
kas1e
Published: 2026/8/21 13:06  Updated: 2026/8/21 13:10
Home away from home
Joined: 09/11/2007
From: Russia
Comments: 9711
 thanks!
@Everyone
Thanks!

@BSZili
Probably Mattew were in wish to go uniq way.. but really, it was just Hans alone for almost everything, in compare with thousand of amd/mesa/etc developers.. Strange that it was at least in the form as it was..

@Capehill
Yes, all works. For now porting: https://github.com/pablode/flut , it works, through slow like hell. I need to dig it what wrong with, is it bad code, or something to improve in mesa port. But at least all compute shaders compiles, renders, etc.

@PEB
At least first bug report ! Thanks ! Can you plz say me that:

1). is it only glmark, or those 7 shader test cases fail too ?
2). what screenmode and depth you use
3). what version of OS, kernel and graphics.library
4). what version of radeonrx driver

Also if you can, run plz from c:radeon_gpu_info binary and post output there too.

ps. if you can write me at kas1e@yandex.ru, we can work faster then to fix it.

Thanks!
BSzili
Published: 2026/8/21 14:09  Updated: 2026/8/21 14:09
Quite a regular
Joined: 10/17/2013
From: Hungary
Comments: 781
 Re: thanks!
Of course, I'm not blaming Hans. It wasn't his call and he did his best as a sole developer. If AmigaKit wasn't suffering from the "Not invented here" syndrome he could have focused more of his energy on improving the drivers.
Maijestro
Published: 2026/8/21 16:21  Updated: 2026/8/21 16:21
Just can't stay away
Joined: 04/07/2023
From: Deutschland
Comments: 1721
 Good job
That's pretty cool; I hope I can use it to do some crazy stuff.
sofistisoftware
Published: 2026/8/21 17:32  Updated: 2026/8/21 17:32
Just popping in
Joined: 01/01/2007
From: Latina, Italy
Comments: 212
 Re: Mesa for AmigaOS4
Thanks Roman !
khayoz
Published: 2026/8/21 17:54  Updated: 2026/8/21 17:54
Quite a regular
Joined: 01/10/2007
From: Stockholm Sweden
Comments: 555
 Wow!
@kas1e This is amazing news! Thank you!
Breed
Published: 2026/8/21 18:24  Updated: 2026/8/21 18:24
Just popping in
Joined: 10/23/2013
From: Kuusamo, Finland
Comments: 122
 Thank you
What a great surprise, thank you Kas1e 👍
Antique
Published: 2026/8/21 21:21  Updated: 2026/8/21 21:21
Home away from home
Joined: 11/30/2006
From: Norway
Comments: 2656
 Re: Mesa for AmigaOS4
Amazing work. :-)
kishigo
Published: 2026/8/21 22:12  Updated: 2026/8/21 22:12
Just popping in
Joined: 03/25/2024
From: California, United States
Comments: 58
 Awesome! One Question Though
Can/should we use gl helpers like glad? If so, how would we use them? Thank you and great work!
PEB
Published: 2026/8/21 23:41  Updated: 2026/8/21 23:41
Not too shy to talk
Joined: 11/29/2006
From:
Comments: 476
 Problem Solved
kas1e figured out what the problem was. (I was running a 16bit screen, and mesa is currently hard-coded to run only in 32bit.)

He plans on adding 16bit support in the next release, but in the meantime, if you run into the same problem, that's the explanation.
turbo41
Published: 2026/8/22 9:28  Updated: 2026/8/22 9:28
Just popping in
Joined: 11/16/2025
From: Germany
Comments: 9
 amazing
thank you for your fantastic work....go on..
VooDoo
Published: 2026/8/22 14:11  Updated: 2026/8/22 14:11
Quite a regular
Joined: 11/29/2006
From: Croatia
Comments: 625
 Re: Mesa for AmigaOS4
Amazing work! Thanks for that!!
skygecko
Published: 2026/8/22 14:34  Updated: 2026/8/22 14:34
Just popping in
Joined: 03/24/2023
From: Germany
Comments: 46
 The GART part
I didn't understood the part about the non-GART fallback. Will the SAM460 benefit as well?
kas1e
Published: 2026/8/22 17:10  Updated: 2026/8/22 17:10
Home away from home
Joined: 09/11/2007
From: Russia
Comments: 9711
 thanks all again
@skygecko
All public SAM460 AEON's drivers be it RadeonHD or RadeonRX do not have GART support at all. The same as older RadeonHD 3.7 drivers didn't GART support anywhere too. So for those situations when no GART available by any of reasons, i fallback to "no GART" ways, which slower. Usable, but still slower.

That for example reason why some 3d stuff done for gl4es / ogles2.library / warp3dnova.library slower than sam460, and there we can't do anything about while drivers for SAM460 will not have GART support.

I do have in TODO to patch current public RadeonRX drivers for same and add GART support there (as i know what to do, because Max from Acube share with me how to setup GART on sam460) , so can release a patch which users can run to patch their RadeonRX drivers for SAM, but that not today/tomorrow :)
Cageman
Published: 2026/8/24 1:30  Updated: 2026/8/24 1:30
Just popping in
Joined: 03/08/2022
From: Sweden
Comments: 171
 Re: Mesa for AmigaOS4
Wow! Great work!
Goos
Published: 2026/8/24 9:51  Updated: 2026/8/24 9:51
Just popping in
Joined: 09/19/2009
From:
Comments: 25
 WOW
Wow, Roman, great job! This takes the 3D performance on our system to a whole new level.
kas1e
Published: 2026/8/24 10:23  Updated: 2026/8/24 10:23
Home away from home
Joined: 09/11/2007
From: Russia
Comments: 9711
 thanks!
@Goos
Not the latest motivation factor was your games which always were in needs to hard patch to avoid Nova's issues, like broken shader compiler , missing switches and co :) But mesa port for sure have where to growup and need stability fixes anyway. Hope you with Thomas can help to catch more bugs :)
Hans
Published: 2026/8/25 9:37  Updated: 2026/8/25 9:37
Home away from home
Joined: 01/26/2007
From: New Zealand
Comments: 2897
 Re: thanks!
@kas1e

Congrats on getting this fully working. Having full MESA is great.

@BSzili

To be fair to A-EON, back when I started the AMDGPU shader compiler was based on the monster that is LLVM. That's why I ended up writing my own compiler instead of using theirs. More recently they switched to a new compiler that's based on mesa3d's own compiler infrastructure. This makes porting it much more possible. Switching the RadeonHD/RX Warp3D Nova drivers from the DIY compiler to AMD's new mesa one was on my to-do list.

Not needed any more, though.

Hans
SinanSam460
Published: 2026/8/25 14:02  Updated: 2026/8/25 14:02
Not too shy to talk
Joined: 07/16/2012
From: Istanbul
Comments: 487
 Re: thanks!
@kas1e

Great achievement :)

HunoPPC's ports (especially Doom3) will benefit from your MESA port ? Did you have any contact with him ?

Thanks.
Mr_DBUG
Published: 2026/8/25 14:10  Updated: 2026/8/25 14:10
Just popping in
Joined: 05/09/2007
From:
Comments: 4
 Re: Mesa for AmigaOS4
AWESOME !
TSK
Published: 2026/8/25 23:22  Updated: 2026/8/25 23:22
Just can't stay away
Joined: 02/23/2007
From: The land of thousands of lakes, Santa, sauna, sisu and salmiakki
Comments: 1229
 Re: Mesa for AmigaOS4
Amazing. kas1e for president! And congrats!
kas1e
Published: 2026/8/26 3:54  Updated: 2026/8/26 3:55
Home away from home
Joined: 09/11/2007
From: Russia
Comments: 9711
 doom3
@Sinan

> HunoPPC's ports (especially Doom3) will benefit from your MESA port ? Did you have any contact with him ?

I think Huno no needs any contacts for as he can use mesa with no probs, and maybe if he will rebuild it over mesa and added his patchs on top of it, it may be a little bit better, but, with doom3 we can't expect miracles because limitation is our hardware. At least, if we see there:

https://forum.hyperion-entertainment.c ... topic.php?t=4645&start=10

25fps is maximum on origina mesa over PPC linux on x5000/040

But if we see old original PC benchmarks witch machines better than ours and which not big-endian ones (so no needs for conversion), then:

https://hardforum.com/threads/official ... -benchmark-thread.786540/

So results hardly reach 60 fps for them too..

Anyway, i ported doom3 to mesa too, and in UltaMaximum quality with everything enabled (shadows, lights, whatever), it gives just ~25fps in timedemo. Maybe not that bad as well, but not 60 :) See:



mcleppa
Published: 2026/8/26 15:27  Updated: 2026/8/26 15:27
Just popping in
Joined: 05/25/2009
From: Norway
Comments: 134
 @Kas1e
Amazing news, great work!
jabirulo
Published: 2026/9/1 13:16  Updated: 2026/9/1 13:16
Just can't stay away
Joined: 02/06/2007
From: Donostia (SPAIN)
Comments: 1243
 Re: thanks all again
@kas1e:
...I do have in TODO to patch current public RadeonRX drivers for same and add GART support there (as i know what to do, because ...

Ohhh yesssss!!!! Sounds very very good man!!!!!
General
Site sponsors
 
Contact us on discord to advertise here.

Site statistics
Registered members
  1772
Logged in last:
  24 hours, 73
  7 days, 146
  30 days, 212

Random Photo
Another World

New Articles List

New Members
Flynn
Flynn 08/21/2026
slacko1
slacko1 07/24/2026
RetroMike
RetroMike 07/21/2026
AmigaAmbassador
AmigaAmbassador 07/12/2026
Opus
Opus 07/12/2026
kaffeine
kaffeine 06/12/2026
fidelware
fidelware 06/01/2026
Kirirur
Kirirur 05/31/2026
MTAmiga
MTAmiga 04/28/2026
akleinert
akleinert 04/26/2026


Powered by XOOPS 2.0 © 2001-2024 The XOOPS Project