#
…

2024-10-28

00:37linuxgemini is now known as Guest7678
00:37Guest7678 has quit [Read error: Connection reset by peer]
00:37linuxgemini has joined #asahi-gpu
00:48chrisl has joined #asahi-gpu
00:55lion328 has quit [Ping timeout: 480 seconds]
00:56chrisl has quit [Ping timeout: 480 seconds]
01:07shintyl has quit [Ping timeout: 480 seconds]
01:25pb17 has quit [Ping timeout: 480 seconds]
01:30chrisl has joined #asahi-gpu
01:38chrisl has quit [Ping timeout: 480 seconds]
01:56pb17 has joined #asahi-gpu
02:00KxCORP58940003455 has quit [Quit: Bye!]
02:00KxCORP58940003455 has joined #asahi-gpu
02:02kujeger has joined #asahi-gpu
02:07kujeger- has quit [Ping timeout: 480 seconds]
02:31chrisl has joined #asahi-gpu
02:39chrisl has quit [Ping timeout: 480 seconds]
02:55lion328 has joined #asahi-gpu
03:06ddxtanx has quit [Remote host closed the connection]
03:07ddxtanx has joined #asahi-gpu
03:11ddxtanx has quit [Remote host closed the connection]
03:12ddxtanx has joined #asahi-gpu
03:36yuyichao_ has quit [Ping timeout: 480 seconds]
03:37yuyichao_ has joined #asahi-gpu
03:40ddxtanx has quit [Remote host closed the connection]
03:53pb17 has quit [Ping timeout: 480 seconds]
04:01pb17 has joined #asahi-gpu
04:13marvin24 has joined #asahi-gpu
04:16marvin24_ has quit [Ping timeout: 480 seconds]
04:23chrisl has joined #asahi-gpu
04:26linuxgemini is now known as Guest7696
04:26Guest7696 has quit [Read error: Connection reset by peer]
04:26linuxgemini has joined #asahi-gpu
04:31chrisl has quit [Ping timeout: 480 seconds]
04:56linuxgemini is now known as Guest7699
04:56Guest7699 has quit [Read error: Connection reset by peer]
04:56linuxgemini has joined #asahi-gpu
05:22chrisl has joined #asahi-gpu
05:30chrisl has quit [Ping timeout: 480 seconds]
05:33chrisl has joined #asahi-gpu
05:41chrisl has quit [Ping timeout: 480 seconds]
05:56bpye has quit [Quit: Ping timeout (120 seconds)]
05:57bpye has joined #asahi-gpu
05:58pb17 has quit [Ping timeout: 480 seconds]
06:15pb17 has joined #asahi-gpu
06:23chrisl has joined #asahi-gpu
06:31chrisl has quit [Ping timeout: 480 seconds]
06:57aak has joined #asahi-gpu
07:25chrisl has joined #asahi-gpu
07:29ddxtanx has joined #asahi-gpu
07:33chrisl has quit [Ping timeout: 480 seconds]
07:36pb17 has quit [Ping timeout: 480 seconds]
07:47pb17 has joined #asahi-gpu
08:00aak has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
08:14glem810053 has joined #asahi-gpu
08:20glem81005 has quit [Ping timeout: 480 seconds]
08:20glem810053 is now known as glem81005
09:10chrisl has joined #asahi-gpu
09:16pb17 has quit [Ping timeout: 480 seconds]
09:18chrisl has quit [Ping timeout: 480 seconds]
09:19Halian has joined #asahi-gpu
09:28chrisl has joined #asahi-gpu
09:36chrisl has quit [Ping timeout: 480 seconds]
09:38pb17 has joined #asahi-gpu
09:38aak has joined #asahi-gpu
10:02ddxtanx_ has joined #asahi-gpu
10:08ddxtanx has quit [Ping timeout: 480 seconds]
10:27chrisl has joined #asahi-gpu
10:35chrisl has quit [Ping timeout: 480 seconds]
11:05Retr0id has quit [Remote host closed the connection]
11:08Retr0id has joined #asahi-gpu
11:11john-cabaj has joined #asahi-gpu
11:20oliverb has joined #asahi-gpu
11:42oliverb now. I just have some questions:
11:42oliverbalyssa: i know you do not support the mesa driver on mac, I want to try to get this working anyways. I've started to work on the basics in getting your asahi/gpu demo triangle to run on macos 15. Found some changes in the iokit calls as you've talked about in the past and tried to get them in line with what simple metal apps do. So far so good, now i am presented with successful iokit calls and a black window, but I call this success for
11:42oliverb * second: is the Linux uabi more or less compatible with what the iokit interface expects? Should it be possible to build a drm shim for mesa/asahi that just translates the drm calls to iokit calls or do you know of some major changes in what the kernel does in Mac/Linux?
11:42oliverb * first, the data in the command buf that gets submitted to the gpu, is that independed of the actual gpu? You where working with a G13G_B0 while I have a G13X gpu, can I just send the same data as you did in your triangle demo?
11:42oliverbThird: as a future outlook: If I follow through and get this actually working, there shouldn't be anything that blocks me from having opengl 4.6 working on a Mac, right? If this works somehow, would it be possible to get virgl/native context working too? As I understood it, it would do all the work in the VMs mesa and just forward the ioctl calls to the host, which could then be processed using my theoretical drm shim implementation, is
11:42oliverbthat correct?
11:43pb17 has quit [Ping timeout: 480 seconds]
12:00john-cabaj has quit [Ping timeout: 480 seconds]
12:13chrisl has joined #asahi-gpu
12:21chrisl has quit [Ping timeout: 480 seconds]
12:23pb17 has joined #asahi-gpu
12:57alyssaoliverb: great questiosn =D
12:58alyssa1. I don't know. I would assume it's similar, but it's entirely posible added a field in g13x or something like that. Apple doesn't guarantee stability on this interface.
13:00alyssa2. More or less, yeah. Should be possible. Timestamps are the one place that the uapi already/will diverge but you don't have to worry about that right now. I also assume sparse will be different but that only matters for DX12, also not a right now problem. (That's all the VM_BIND calls. I don't actually know if macOS has an equivalent. It might?)
13:01alyssa3. Effectively. There'd still be a pile of WSI code needed to get OpenGL working in Cocoa windows. For initial driver bring-up, I was just using XQuartz which is... not really what people want from their macOS graphics drivers!
13:01alyssaIronically Vulkan would be easier since the MoltenVK and lavapipe interfaces already exist.
13:02domben2 has joined #asahi-gpu
13:02alyssa4. native context is by far the spiciest question. I think that depends how you implement things. Honestly, that might be the *easiest* place to start though - trying to hack up virglrenderer to translate Linux virtualized UAPI into macOS UAPI
13:03chrisl has joined #asahi-gpu
13:03alyssathat way you don't have to touch Mesa at all yet, you can just run stock asahi/mesa in a UTM guest and then try to get "gl4.6+vk1.3+cl3.0+gles3.2 working inn inux guest on a macOS host"
13:03alyssain Linux
13:04alyssathat lets you hit all the interesting problems of UAPI translation, without hitting any of the really annoying problems of WSI or fixing Mesa macOS build breakages
13:04alyssa(and if that works, dropping the VM layer would be the obvious extension)
13:04alyssathis is what Faith did for Windows, effectively
13:06alyssaAs I'm sure you know, none of this is viable for shipping to end-users because macOS updates will break it
13:07alyssa(that is significantly less stable than Asahi Linux... where upgrading the dual booted macOS is generally safe for the Linux)
13:07alyssabut as a way to prove the haters wrong? go get 'em
13:08alyssa(also fair warning - I don't know if I'd merge the Mesa patches, they were a huge maintenance burden... virglrenderer patches might be easier to persuade me on though for the "Linux guest + macOS host" use case)
13:11chrisl has quit [Ping timeout: 480 seconds]
13:16domben2 has quit [Ping timeout: 480 seconds]
13:18chrisl has joined #asahi-gpu
13:20domben2 has joined #asahi-gpu
13:22aak has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
13:40domben2 has quit [Ping timeout: 480 seconds]
13:40domben2 has joined #asahi-gpu
13:41pb17 has quit [Ping timeout: 480 seconds]
13:42john-cabaj has joined #asahi-gpu
13:58pb17 has joined #asahi-gpu
14:09oliverbThank you for the answers!
14:09oliverbRegarding the first question: I meant the content within the cmdbuf or allocation. Isn't that OS independent and just forwarded to the GPU? Is that the same on the m1 and m2 gpus?
14:10oliverbI am not thinking about shipping anything yet, I am hoping to get something work in the first place. The virglrenderer idea sounds great, I'll probably have a look into that once I get my triangle.
14:12oliverbNot implementing a wsi sounds good, I have a six month old kid, so progress will be very slow anyways.
14:13alyssaoliverb: the content within the "cmdbuf" is kernel defined, it's a "kernel command buffer" in macOS land
14:13alyssaover on Linux we use the uapi structs for the same effect
14:14alyssathe content within the "encoder" is hardware and just pased to hardware and OS independent
14:14alyssaand is.. notably not a command buffer, it's a "control stream"
14:14alyssaif you look at old mesa that still supported macos, `magic.c` is the macOS stuff
14:26john-cabaj1 has joined #asahi-gpu
14:26john-cabaj has quit [Remote host closed the connection]
14:26domben2 has quit [Remote host closed the connection]
14:31oliverbThank you!
14:50DarkShadow44 has quit []
14:50DarkShadow44 has joined #asahi-gpu
15:20glem81005 has quit [Quit: Ping timeout (120 seconds)]
15:21glem81005 has joined #asahi-gpu
15:55aak has joined #asahi-gpu
16:23john-cabaj has quit [Remote host closed the connection]
16:51phire_ has joined #asahi-gpu
16:51phire is now known as Guest7779
16:51phire_ is now known as phire
16:54Guest7779 has quit [Ping timeout: 480 seconds]
17:26pb17 has quit [Ping timeout: 480 seconds]
17:34pb17 has joined #asahi-gpu
18:03lion328 has quit [Ping timeout: 480 seconds]
18:08lion328 has joined #asahi-gpu
18:23aak has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
18:52aak has joined #asahi-gpu
18:56aak has quit []
19:31pb17 has quit [Ping timeout: 480 seconds]
19:57pb17 has joined #asahi-gpu
21:02ddxtanx_ has quit [Remote host closed the connection]
21:07ddxtanx has joined #asahi-gpu
21:28pb17 has quit [Ping timeout: 480 seconds]
21:55pb17 has joined #asahi-gpu
22:24c10l has quit [Remote host closed the connection]
22:27c10l has joined #asahi-gpu
23:27DarkShadow44 has quit []
23:27DarkShadow44 has joined #asahi-gpu
23:47pb17 has quit [Ping timeout: 480 seconds]
23:54pb17 has joined #asahi-gpu
…