#
…

2025-12-23

00:00hdbngr has quit [Ping timeout: 480 seconds]
00:06pb17 has joined #asahi-dev
00:09hdbngr has joined #asahi-dev
00:29hdbngr has quit [Ping timeout: 480 seconds]
00:29mixi has quit [Ping timeout: 480 seconds]
00:32chadmedi dont think we'll need one just to make dcp DTRT since it all happens in firmware and we just feed it constants to select a colour space and transfer function
00:33chadmedthe colourimetry for the builtin displays is definitely wrong through and setting the right DisplayP3 profile does not fix it in the slightest
00:38hdbngr has joined #asahi-dev
00:39mixi has joined #asahi-dev
00:47hdbngr has quit [Ping timeout: 480 seconds]
00:53hdbngr has joined #asahi-dev
01:02hdbngr has quit [Ping timeout: 480 seconds]
01:09hdbngr has joined #asahi-dev
01:18hdbngr has quit [Ping timeout: 480 seconds]
01:26hdbngr has joined #asahi-dev
01:34hdbngr has quit [Ping timeout: 480 seconds]
01:43hdbngr has joined #asahi-dev
01:51hdbngr has quit [Ping timeout: 480 seconds]
01:59hdbngr has joined #asahi-dev
02:08hdbngr has quit [Ping timeout: 480 seconds]
02:15hdbngr has joined #asahi-dev
02:20zumi has quit [Remote host closed the connection]
02:24hdbngr has quit [Ping timeout: 480 seconds]
02:32hdbngr has joined #asahi-dev
02:41hdbngr has quit [Ping timeout: 480 seconds]
02:41hightower3 has joined #asahi-dev
02:48hightower4 has quit [Ping timeout: 480 seconds]
02:48hdbngr has joined #asahi-dev
02:57hdbngr has quit [Ping timeout: 480 seconds]
03:01pb17 has quit [Ping timeout: 480 seconds]
03:05pb17 has joined #asahi-dev
03:05hdbngr has joined #asahi-dev
03:14hdbngr has quit [Ping timeout: 480 seconds]
03:21hdbngr has joined #asahi-dev
03:27tobhe has joined #asahi-dev
03:30hdbngr has quit [Ping timeout: 480 seconds]
03:34tobhe_ has quit [Ping timeout: 480 seconds]
03:38hdbngr has joined #asahi-dev
03:47hdbngr has quit [Ping timeout: 480 seconds]
03:54hdbngr has joined #asahi-dev
04:01ralim has joined #asahi-dev
04:03hdbngr has quit [Ping timeout: 480 seconds]
04:12hdbngr has joined #asahi-dev
04:21hdbngr has quit [Ping timeout: 480 seconds]
04:30hdbngr has joined #asahi-dev
04:38hdbngr has quit [Ping timeout: 480 seconds]
04:40hdbngr has joined #asahi-dev
04:45pb17 has quit [Ping timeout: 480 seconds]
04:46nora_ has joined #asahi-dev
04:48nora has quit [Ping timeout: 480 seconds]
04:49hdbngr has quit [Ping timeout: 480 seconds]
04:56rosalyntg has joined #asahi-dev
04:58hdbngr has joined #asahi-dev
05:02rosalyntg has quit [Remote host closed the connection]
05:05pb17 has joined #asahi-dev
05:09hdbngr has quit [Ping timeout: 480 seconds]
05:18hdbngr has joined #asahi-dev
05:25rosalyntg has joined #asahi-dev
05:27hdbngr has quit [Ping timeout: 480 seconds]
05:31hdbngr has joined #asahi-dev
06:42hdbngr has quit [Ping timeout: 480 seconds]
06:50hdbngr has joined #asahi-dev
06:52jannauthe mbp 14-inch display wasn't far off when I measured it (2023 / 2024) assuming I did not screw up the measurement and interpreted the results correctly
07:02hdbngr has quit [Ping timeout: 480 seconds]
07:12hdbngr has joined #asahi-dev
07:25hdbngr has quit [Ping timeout: 480 seconds]
07:27hdbngr has joined #asahi-dev
07:40hdbngr has quit [Ping timeout: 480 seconds]
07:44hdbngr has joined #asahi-dev
07:45chadmedeven with ctm-based night light on?
07:49jannauno. why would anyone turn that on if accurate colors are desired. I wanted to test if ctm has the intended effect but never did
07:52hdbngr has quit [Ping timeout: 480 seconds]
08:00hdbngr has joined #asahi-dev
08:06chadmedwell it should at the very minimum make my screen orange and not green :P
08:06chadmedit does this intermittently so we might not be the problem
08:10hdbngr has quit [Ping timeout: 480 seconds]
08:10jannauI don't test it often and have it disabled but in tests it always made the screen orange/red with higher color temperatures. I'm just not sure if it it the right amount since I'm unsure when and in which color space the ctm is applied
08:13chadmedi havent tried explicitly setting a colourspace for our surfaces other than whatever "native" is
08:21hdbngr has joined #asahi-dev
08:21jannauunrelated to the color space set for the surface. if the CTM applies post blending and dcp uses a differrent colorspace post blending it might not have the desired effect (but should not cause a green tint in any case)
08:29hdbngr has quit [Ping timeout: 480 seconds]
08:37hdbngr has joined #asahi-dev
08:46hdbngr has quit [Ping timeout: 480 seconds]
08:48hdbngr has joined #asahi-dev
09:02hdbngr has quit [Ping timeout: 480 seconds]
09:12hdbngr has joined #asahi-dev
09:20hdbngr has quit [Ping timeout: 480 seconds]
09:29hdbngr has joined #asahi-dev
09:38hdbngr has quit [Ping timeout: 480 seconds]
09:46hdbngr has joined #asahi-dev
09:55hdbngr has quit [Ping timeout: 480 seconds]
09:55hdbngr has joined #asahi-dev
10:03chadmedtheres still something up with the 14/16" machines not reliably running at 120 hz. kwin still wants to sit at 60 hz but will intermittently go up to 120
10:04hdbngr has quit [Ping timeout: 480 seconds]
10:04chadmedive made atomic_flush non-blocking and it helps with pacing but kwin is still sitting at 60hz until it decides not to
10:05chaos_princessare you doing something or just sitting at desktop?
10:06chadmedwebgl aquarium, glxgears, vkgears
10:07rany has quit [Ping timeout: 480 seconds]
10:07chadmedaquarium never goes above 60 and it takes ~10-15 seconds for the gears to get up to 120 fps
10:08chadmedthis does not happen on external monitors
10:12hdbngr has joined #asahi-dev
10:12hightower4 has joined #asahi-dev
10:19hightower3 has quit [Ping timeout: 480 seconds]
10:20hdbngr has quit [Ping timeout: 480 seconds]
10:28hdbngr has joined #asahi-dev
10:29rany has joined #asahi-dev
10:36hdbngr has quit [Ping timeout: 480 seconds]
10:44hdbngr has joined #asahi-dev
10:54hdbngr has quit [Ping timeout: 480 seconds]
10:56hdbngr has joined #asahi-dev
11:08hdbngr has quit [Ping timeout: 480 seconds]
11:15rany has quit [Ping timeout: 480 seconds]
11:18hdbngr has joined #asahi-dev
11:22jannauI haven't seen that but I only tested briefly with firefox/testufo. kwin was fine but cosmic-comp didn't get 120Hz. we might need to adjust the hacky page flip time hackery
11:24snuck has quit []
11:26hdbngr has quit [Ping timeout: 480 seconds]
11:27chadmedive made it asynchronous so that atomic_flush notifies that its done after putting the iomfb swap request on a workqueue but that didnt help
11:28chadmedwe never send a vblank unless a swap fails and i cant see anything else time-sensitive userspace should care about
11:29hdbngr has joined #asahi-dev
11:33rany has joined #asahi-dev
11:36mazfl0_id: I've just pushed a branch updated to SDK 2.2.0. on a sample of one, it seems to work fine.
11:36jannauthat's not how atomic commits work and shouldn't matter as compositors base their timing on the page flip event and not on when their commit returns
11:37jannauDRM_CAP_ATOMIC_ASYNC_PAGE_FLIP might help (especially with cursor updates) but implementing it could be hard and require further dcp RE
11:37hdbngr has quit [Ping timeout: 480 seconds]
11:38chadmedoh yeah i see the thing in dcp.c
11:38chadmedthis is uhhh
11:45hdbngr has joined #asahi-dev
11:48jannauthis is required because every compositor has its on guess on when exactly before the page flip it needs to commit the update. There are talks of adding a hint to the KMS interface so that the driver can communicate its guess
11:49chadmedyeah and kwin just reduced its own
11:56hdbngr has quit [Remote host closed the connection]
11:56hdbngr has joined #asahi-dev
11:57sofus has joined #asahi-dev
12:04hdbngr has quit [Ping timeout: 480 seconds]
12:05hdbngr has joined #asahi-dev
12:09chadmedin more positive news it does seem like dcp supports the agx tiled formats after all, but i havent got any good ideas for setting the required metadata in a way that isnt awful
12:18sofusHi, i made a small driver for the actuator, with it i can send commands that change the up/down haptics, trigger a haptic event and a "click handoff" event
12:18hdbngr has quit [Ping timeout: 480 seconds]
12:19pb17 has quit [Ping timeout: 480 seconds]
12:22sofusi think it only works on m2 devices
12:24pb17 has joined #asahi-dev
12:26hdbngr has joined #asahi-dev
12:32chadmed has quit [Quit: Konversation terminated!]
12:34chadmed has joined #asahi-dev
12:35hdbngr has quit [Ping timeout: 480 seconds]
12:43hdbngr has joined #asahi-dev
12:52hdbngr has quit [Ping timeout: 480 seconds]
12:57hdbngr has joined #asahi-dev
13:06hdbngr has quit [Ping timeout: 480 seconds]
13:15chadmedi dont think the timing hack is the issue here. i tried handling cases up to 5ms between swap_start and now and nothing really helped
13:15chadmedand even so theres seriously no way a page flip takes 5ms... right?
13:15hdbngr has joined #asahi-dev
13:19jannauif you miss vblank it waits until the next one which is is usually more than 5s
13:20jannauyou could look at dcp's tracing
13:20jannauwhat do we need to pass on as metadata?
13:21chadmedthe "compression" and tile format information
13:22jannausofus: great. I believe the HID interface on M1* machines is similar but hid transport might miss some things
13:25jannauchadmed: how does it look exactly? the compression metadata is in a separate chunkt of the buffer? do we need per tile information without compression?
13:32hdbngr has quit [Ping timeout: 480 seconds]
13:40sofus has quit [Ping timeout: 480 seconds]
13:40chadmedjannau: the compression info is a list of structs describing the compression format with a bunch of magic numbers. the "plane" info one is the same (see my dcp/scanout branch) but seems to do double duty for tiled formats with fields for tile size/stride/etc
13:40hdbngr has joined #asahi-dev
13:43chadmedive traced a few different video formats being scanned out directly from avd and general desktop stuff and the not-avd surfaces definitely have different plane/compression info
13:43chadmedand definitely are not linear
14:07hdbngr has quit [Ping timeout: 480 seconds]
14:15hdbngr has joined #asahi-dev
14:24hdbngr has quit [Ping timeout: 480 seconds]
14:25hdbngr has joined #asahi-dev
14:30alxdrl has joined #asahi-dev
14:32alxdrl has quit []
14:35hightower4 has quit [Ping timeout: 480 seconds]
14:35hdbngr has quit [Ping timeout: 480 seconds]
14:40nnym has quit [Read error: No route to host]
14:40nnym has joined #asahi-dev
14:40hdbngr has joined #asahi-dev
14:49hdbngr has quit [Ping timeout: 480 seconds]
14:56hdbngr has joined #asahi-dev
14:58sofus has joined #asahi-dev
14:58sofus has quit []
15:01opticron_ is now known as opticron
15:08hdbngr has quit [Ping timeout: 480 seconds]
15:19hdbngr has joined #asahi-dev
15:31alxdrl has joined #asahi-dev
15:33hdbngr has quit [Ping timeout: 480 seconds]
15:35sofus has joined #asahi-dev
15:36jannauchadmed: we should create our own plane struct, embed drm_plane and dcp_surface and fill the dcp surface in apple_plane_atomic_update()
15:37pb17 has quit [Ping timeout: 480 seconds]
15:37jannauit started this was because there was only a single plane anyway
15:41hdbngr has joined #asahi-dev
15:46sofusjannau: from my understanding m1 machines dont use dockchannel?
15:48sofusim pretty sure something similar could also work for non silicon macs with haptics, based on an out off tree driver i found
15:50hdbngr has quit [Ping timeout: 480 seconds]
15:51sofus has quit [Quit: Lost terminal]
15:51pb17 has joined #asahi-dev
15:56michaelrostom has joined #asahi-dev
15:57hdbngr has joined #asahi-dev
16:08hdbngr has quit [Ping timeout: 480 seconds]
16:15BlueMatt has quit []
16:15BlueMatt has joined #asahi-dev
16:16hdbngr has joined #asahi-dev
16:16alxdrl has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
16:17alxdrl has joined #asahi-dev
16:25hdbngr has quit [Ping timeout: 480 seconds]
16:32hdbngr has joined #asahi-dev
16:41hdbngr has quit [Ping timeout: 480 seconds]
16:45hdbngr has joined #asahi-dev
16:48michaelrostom has quit [Ping timeout: 480 seconds]
16:50chadmed has quit [Quit: Konversation terminated!]
16:51chadmed has joined #asahi-dev
16:56michaelrostom has joined #asahi-dev
16:59michaelrostom has quit []
17:00michaelrostom has joined #asahi-dev
17:01hdbngr has quit [Remote host closed the connection]
17:01croissant has quit [Quit: Leaving]
17:01hdbngr has joined #asahi-dev
17:03alxdrl has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
17:10hdbngr has quit [Ping timeout: 480 seconds]
17:17michaelrostom has quit [Quit: Konversation terminated!]
17:17hdbngr has joined #asahi-dev
17:26hdbngr has quit [Ping timeout: 480 seconds]
17:31hdbngr has joined #asahi-dev
17:40hdbngr has quit [Ping timeout: 480 seconds]
17:47hdbngr has joined #asahi-dev
17:54michaelrostom has joined #asahi-dev
17:58hdbngr has quit [Ping timeout: 480 seconds]
18:02hdbngr has joined #asahi-dev
18:11jannausofus: no they use SPI to transport the HID packets but the HID interface should be the same or very similar
18:12jannauchadmed: the annoying part of dcp_surface is that it's firmware version dependent
18:13hdbngr has quit [Ping timeout: 480 seconds]
18:13michaelrostom has quit [Ping timeout: 480 seconds]
18:14michaelrostom has joined #asahi-dev
18:14hdbngr has joined #asahi-dev
18:18vimproved has quit [Ping timeout: 480 seconds]
18:21vimproved has joined #asahi-dev
18:22catred2 has quit [Ping timeout: 480 seconds]
18:25catred has joined #asahi-dev
18:42catred2 has joined #asahi-dev
18:45croissant has joined #asahi-dev
18:46catred has quit [Ping timeout: 480 seconds]
18:57hdbngr has quit [Ping timeout: 480 seconds]
18:58pb17 has quit [Ping timeout: 480 seconds]
19:02hdbngr has joined #asahi-dev
19:08pb17 has joined #asahi-dev
19:12hdbngr has quit [Ping timeout: 480 seconds]
19:12michaelrostom has quit [Quit: Konversation terminated!]
19:19hdbngr has joined #asahi-dev
19:21vimproved has quit [Remote host closed the connection]
19:21vimproved has joined #asahi-dev
19:22michaelrostom has joined #asahi-dev
19:28hdbngr has quit [Ping timeout: 480 seconds]
19:36hdbngr has joined #asahi-dev
19:45hdbngr has quit [Ping timeout: 480 seconds]
19:45alxdrl has joined #asahi-dev
19:52hdbngr has joined #asahi-dev
20:00nnym has quit [Remote host closed the connection]
20:01nnym has joined #asahi-dev
20:08hdbngr has quit [Ping timeout: 480 seconds]
20:10hdbngr has joined #asahi-dev
20:13nnym_ has joined #asahi-dev
20:13nnym has quit [Read error: No route to host]
20:23fl0_idmaz compiles for me. cannot test flashing or functionality atm
20:25hdbngr has quit [Ping timeout: 480 seconds]
20:28fl0_idi'll prob be at 39c3 from 27th and will bring a setup for debugging / testing m3 max things. still looking for accomodation so if somebody has a couch or whatever to offer I'm all ears
20:29fl0_id(I would also be ok with sleeping in the gym, but as I'm not coming from home I have a bit more luggage and I cannot leave that there afaik)
20:32roxfan2 has joined #asahi-dev
20:33hdbngr has joined #asahi-dev
20:36roxfan has quit [Ping timeout: 480 seconds]
20:42hdbngr has quit [Ping timeout: 480 seconds]
20:44jnn has joined #asahi-dev
20:46jn has quit [Ping timeout: 480 seconds]
20:50hdbngr has joined #asahi-dev
20:59hdbngr has quit [Ping timeout: 480 seconds]
21:07hdbngr has joined #asahi-dev
21:11nnym has joined #asahi-dev
21:11nnym_ has quit [Read error: Connection reset by peer]
21:17michaelrostom has quit [Ping timeout: 480 seconds]
21:17hdbngr has quit [Ping timeout: 480 seconds]
21:25hdbngr has joined #asahi-dev
21:28michaelrostom has joined #asahi-dev
21:32veloek has quit [Remote host closed the connection]
21:38hdbngr has quit [Ping timeout: 480 seconds]
21:46hdbngr has joined #asahi-dev
21:54hdbngr has quit [Ping timeout: 480 seconds]
22:04hdbngr has joined #asahi-dev
22:13hdbngr has quit [Ping timeout: 480 seconds]
22:17hdbngr has joined #asahi-dev
22:26hdbngr has quit [Ping timeout: 480 seconds]
22:34hdbngr has joined #asahi-dev
22:38michaelrostom_ has joined #asahi-dev
22:38michaelrostom has quit [Quit: Konversation terminated!]
22:46michaelrostom_ has quit [Quit: Konversation terminated!]
22:51hdbngr has quit [Ping timeout: 480 seconds]
22:53hdbngr has joined #asahi-dev
23:07hdbngr has quit [Ping timeout: 480 seconds]
23:16hdbngr has joined #asahi-dev
23:21michaelrostom_ has joined #asahi-dev
23:25hdbngr has quit [Ping timeout: 480 seconds]
23:34hdbngr has joined #asahi-dev
23:45hdbngr has quit [Ping timeout: 480 seconds]
23:53hdbngr has joined #asahi-dev
23:59Mrmaxmeier1 has quit [Quit: The Lounge - https://thelounge.chat]
23:59Mrmaxmeier1 has joined #asahi-dev
…