#
#asahi-dev · 2026-07-20 12:28
sofus(we would need to do this for vaapi/vk translation layer anyway)
#asahi-dev · 2026-07-20 12:28
sofusvk video does not seem to expose all the things we need. We would need to parse the bitstream
#asahi-dev · 2026-07-20 12:10
fl0_idchaos_princess thx, thought it must be sth like that
#asahi-dev · 2026-07-20 12:08
djoooh, got the trackpad working on m5 pro. power protocol is diff and so is the dart mapping
#asahi-dev · 2026-07-20 12:04
leiowhich should take care of some of the rust bindings
#asahi-dev · 2026-07-20 12:04
chaos_princessit is possible to access it, kinda. you order sep to load specific keys into the nvme controller, and then magic happens
#asahi-dev · 2026-07-20 12:04
leiofwiw, the NVK rust vulkan video driver draft MR was at https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/31867
#asahi-dev · 2026-07-20 12:03
fl0_idchaos_princess do you know if it would in principle be possible to access this encryption, or not, as it is part of the os / security separation and is something one might not want to mess with?
#asahi-dev · 2026-07-20 11:42
chadmedwe would not have to do or maintain anything else after that
#asahi-dev · 2026-07-20 11:42
chadmedwhich is why i would very much like an actual vk video driver
#asahi-dev · 2026-07-20 11:42
chadmedthis works in the opposite direction
#asahi-dev · 2026-07-20 11:42
chadmedhttps://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/31517
#asahi-dev · 2026-07-20 11:39
sofusie. we would not have to make it ourselfs
#asahi-dev · 2026-07-20 11:39
sofusi would rather make a vk translation layer as i suspect other people would be interested in that
#asahi-dev · 2026-07-20 11:38
chadmedyeah im not concerned about that, its the kind of workload the scheduler will force on to the ecores anyway
#asahi-dev · 2026-07-20 11:37
sofusfrom the little i tested the vaapi brigde thing it did not seem like it used much more power
#asahi-dev · 2026-07-20 11:35
chadmedits already shipped in fedora even though it's abandoned. we may need to fork it
#asahi-dev · 2026-07-20 11:35
chadmedyeah, the bootlin one might be nicer idk
#asahi-dev · 2026-07-20 11:35
chadmedand im sure some vaapi-to-vkv thing will end up in mesa or some such however we are then relying on two translation layers to DTRT
#asahi-dev · 2026-07-20 11:34
sofusim kinda thinking i should fix the og one
#asahi-dev · 2026-07-20 11:33
chadmedbut vk video is where desktop video offload is going so it's gonna have to happen at some point
#asahi-dev · 2026-07-20 11:33
chadmedits probably not as urgent, especially if the bridge can be made seamless and not janky
#asahi-dev · 2026-07-20 11:33
sofusleio: yes, although i kinda suspect its at least partially slop
#asahi-dev · 2026-07-20 11:32
leiowhere I'm heading is, do we want a vulkan video driver (written in rust) still?
#asahi-dev · 2026-07-20 11:31
leiothe v4l2-request bridge to vaapi worked btw?
#asahi-dev · 2026-07-20 11:31
chadmedsaves some cycles by having some of the stuff prefilled (e.g. statically allocate the ops for each variant, then once youve devm_kzalloced your driver data struct just avd->ops = &avd_v*_ops or whatever which is the usual pattern)
#asahi-dev · 2026-07-20 11:29
sofus... rust would have been nice for this
#asahi-dev · 2026-07-20 11:29
sofusis there a reason i should not fill the variant structs at probe time?
#asahi-dev · 2026-07-20 11:29
chadmedyeah ultimately it does not _really_ matter as long as it's readable and reasonably easy to add new variants
#asahi-dev · 2026-07-20 11:26
sofuschadmed: will do my best to make it generic, although based on changes between rev3 and rev4 im not really worried
#asahi-dev · 2026-07-20 11:22
chaos_princessright, you will need that too.
#asahi-dev · 2026-07-20 11:22
fl0_idchaos_princess well isn't the apfs part of the drive encrypted, even without filevault? that's at least what my experiments apfs-fuse and paragon apfs suggest. That they worked on drives I created manually, but not on system. There was also an error about sth sth keybag, so I assumed it was related to encryption that cannot be accessed from linux.
#asahi-dev · 2026-07-20 11:13
chadmedmy preference is typically toward generic/extensible solutions in most cases especially when we cannot know what horrors we will be subjected to by apple in the future
#asahi-dev · 2026-07-20 11:13
chaos_princesswhat key
#asahi-dev · 2026-07-20 11:12
chadmedmaybe just switch (avd->variant): case AVD_VARIANT_V2:... where necessary then?
#asahi-dev · 2026-07-20 11:11
sofusbut like the differences between variants are at most 3 if statments, i dont think thats enough for a seperate function
#asahi-dev · 2026-07-20 11:11
chadmednot necessarily, the approach can be extended to cover whatever
#asahi-dev · 2026-07-20 11:10
fl0_idchaos_princess the rw apfs driver might be feasible, but getting the key isn't... right?
#asahi-dev · 2026-07-20 11:10
sofusah, you are thinking about the addresses right? i would rather do ops->set_addr for that
#asahi-dev · 2026-07-20 11:07
chadmedavd->ops->generate_stream(...) where you then just set .generate_stream=avd_v*_generate_stream on probe
#asahi-dev · 2026-07-20 11:07
chadmedi think i suggested that a while ago, and i think it makes the most sense and makes it easier to reason about the code and add new variants
#asahi-dev · 2026-07-20 11:04
sofusmaybe making shared functions for the common stuff is simpler
#asahi-dev · 2026-07-20 10:58
sofusthe instruction sequence looks kinda like hdr -> codec_flags -> codec_bufs -> output -> ref_buffers -> slices/tiles
#asahi-dev · 2026-07-20 10:57
sofusre the avd rewrite, im also debating if i should make the instruction generation into a shared function and use function tables for the codec specifik things
#asahi-dev · 2026-07-20 10:38
JamesCalligeros[m]Which makes our slopdar’s job very easy
#asahi-dev · 2026-07-20 10:37
JamesCalligeros[m]The nice thing is that there’s scant prior art on this subject that isn’t our own
#asahi-dev · 2026-07-20 10:34
sven*we’ll only place one in m1n1
#asahi-dev · 2026-07-20 10:33
svenwe’ll only
#asahi-dev · 2026-07-20 10:33
Sobek[m](Have you put the Agents.md file in that driver too, to protect against slop agents ?)
#asahi-dev · 2026-07-20 10:33
Sobek[m]sven: I'm sorry Sven, but I can't do that.

plus ›