#asahi · 2025-10-05 14:50
chadmedyeah exactly#asahi · 2025-10-05 14:49
svenas painful as that rpc interface is I feel like implementing all that crap like link training for the various modes would be worse #asahi · 2025-10-05 14:23
chadmediomfb is a little bit crap and slow but eh#asahi · 2025-10-05 14:23
chadmedit is really nice that we can essentially just ask dcp nicely to do everything hard via rtkit #asahi · 2025-10-05 12:49
jannaudcp conveniently also programs the DP to HDMI converters which we would take over as well#asahi · 2025-10-05 12:47
jannauI'd rather not deal with DP link training, that seems to be already cursed enough with dptx#asahi · 2025-10-05 12:42
svenyeah, that too. not impossible but unlikely#asahi · 2025-10-05 12:40
leioand if dcp doesn't use it, how likely it is you'll find it?#asahi · 2025-10-05 12:39
svenwhich i'd be happy to see ofc but i don't have high hopes someone signs up for that on the off-chance it unlocks something useful ;)#asahi · 2025-10-05 12:38
linkmauveRight.#asahi · 2025-10-05 12:38
svenmaybe, but then we'd need someone to reverse engineer and re-implement all the stuff dcp does #asahi · 2025-10-05 12:38
linkmauvesven, and are there missing features in dcp that could be unlocked by going that MMIO route?#asahi · 2025-10-05 12:37
chaos_princessthe pre-dcp controller that is used for the touchbar has (at least) two planes.#asahi · 2025-10-05 12:36
svenwe can still access the display controller mmio from the main core as well, at least on m1/m2#asahi · 2025-10-05 12:36
svenif you look at the dcp <-> xnu firmware interface it very much looks like they cut their previous display controller driver in half#asahi · 2025-10-05 12:34
linkmauveDid they composite every frame on the GPU?#asahi · 2025-10-05 12:33
linkmauveHow was their display controller before these devices? Like on earlier iPhone and such?#asahi · 2025-10-05 12:18
chadmedit actually really annoyed me that we couldnt just plumb avservice into the existing hdmi audio stuff#asahi · 2025-10-05 12:16
chadmedas it is, however, neither are true #asahi · 2025-10-05 12:16
chadmedi would expect a "designed for apple tv" thing to properly handle bitstream audio, and i would then expect the apple tv to support bitstream formats#asahi · 2025-10-05 12:15
chadmedprobably makes more sense than apple tv considering audio seems to just be bolted on as an afterthought#asahi · 2025-10-05 12:15
chadmedthat would make sense too#asahi · 2025-10-05 12:15
svenespecially for that always-on display#asahi · 2025-10-05 12:14
svenweren't there some rumors that dcp was originally introduced to reduce power consumption on the apple watch?#asahi · 2025-10-05 12:14
chadmedyeah hence "this seems to only really be designed for OSDs"#asahi · 2025-10-05 12:13
linkmauveOh wow.#asahi · 2025-10-05 12:13
chadmedfor context, the plane does not allow your destination rectangle to ever clip screen space. if you try to clip screen space, the firmware will crash#asahi · 2025-10-05 12:13
chadmedlinkmauve: yeah id expect compositors/mpv to handle that stuff no worries. it was more just that the constraints imposed by only considering that one use case made it really difficult to get cursors to work properly#asahi · 2025-10-05 12:11
jannauI had a version which copied the pointer framebuffer to internal frame buffer with appropriate padding. We would need user space to allocate the frame buffer with enough padding#asahi · 2025-10-05 12:11
linkmauveIt’s used by GNOME’s new video player, Showtime.#asahi · 2025-10-05 12:11
linkmauveGTK also supports that usecase using this widget: https://docs.gtk.org/gtk4/class.GraphicsOffload.html#asahi · 2025-10-05 12:10
linkmauveOnce you want to play with that, it could be a good testcase.#asahi · 2025-10-05 12:10
linkmauvechadmed, mpv --vo=dmabuf-wayland supports that TV use case, it uses a wl_subsurface for the OSD when displayed on top of the video (which includes the UI as well as subtitles).#asahi · 2025-10-05 12:07
chadmedwhich i could not do in linux without making dcp crash. its also just a really disgusting hack and i hated it#asahi · 2025-10-05 12:07
chadmedleio: macos never uses more than two planes afaik. additionally the cursor used to fall back to software near the edge of the screen just like kwin, but iirc in macos 13 they started just mangling the cursor framebuffer#asahi · 2025-10-05 12:05
chadmeddcp _seems_ to have been designed partially with the apple tv in mind. the overlay plane is almost tailor made for displaying an OSD/media playback controls and not a whole lot else#asahi · 2025-10-05 12:04
chadmedso not really going to be useful until avd is working #asahi · 2025-10-05 12:04
chadmedfor video scanout, i want to (eventually, when i figure out how and get the time to do so) wire up all the YUV and HDR formats supported by the primary plane, however the hardware only seems to support framebuffers compressed with apple-proprietary formats#asahi · 2025-10-05 12:03
chadmedlinkmauve: the overlay plane is only useful as a cursor plane if there is compositor support for it (i.e. it will _immediately_ fall back to sw compositing if a cursor swap fails, like kwin does)#asahi · 2025-10-05 10:45
jannauyes, it has YUV support#asahi · 2025-10-05 10:45
jannauI think the 1st layer supports only a limited set of formats but is more power efficient#asahi · 2025-10-05 10:45
linkmauveSo it would support some YUV format(s) as well?#asahi · 2025-10-05 10:43
chaos_princessfor safari to directly feed dcp from avd, bypassing the gpu#asahi · 2025-10-05 10:43
leiopreparing the frame after or something?#asahi · 2025-10-05 10:43
leioI still don't understand how macos uses the extra planes then if can only blend 2 layers; like what's it used for, why do they exist#asahi · 2025-10-05 10:34
jannaucurrently only XRGB2101010 and X/ARGB8 are exposed. hw supports more but needs more work#asahi · 2025-10-05 10:32
jannauit can only blend 2 layers/planes though#asahi · 2025-10-05 10:32
jannaumacos switches between hw blending and sw blending to work around this issue#asahi · 2025-10-05 10:32
chaos_princessmultiple, right? iirc 4?#asahi · 2025-10-05 10:32
jannauthere is a overlay plane. it has some quirks which makes it unusable as cursor plane