#
#asahi-gpu · 2021-03-18 16:29
modwizcodeThere's already a glossary page, want me to make a seperate one?
#asahi-gpu · 2021-03-18 16:28
marcanI should start listing these engines on a wiki page somewhere. e.g. AOP is "hey siri" and other sensor stuff, PMP is power, ISP is the camera stuff, DCP is the displayport/display stuff, AVE is the encoder, ANE is neural engine
#asahi-gpu · 2021-03-18 16:27
danielsany idea if it's in-house or licensed?
#asahi-gpu · 2021-03-18 16:26
marcancould be
#asahi-gpu · 2021-03-18 16:26
danielsjust a big old userspace blob
#asahi-gpu · 2021-03-18 16:26
danielsmarcan: presumably it's a stateless impl -> very possibly no firmware?
#asahi-gpu · 2021-03-18 16:24
marcanI actually can't find the video decoder firmware, and now I wonder if it's in the SEP. because DRM.
#asahi-gpu · 2021-03-18 16:22
daniels(yes it's a lot of out-of-band storage, but cheaper in power than keeping DDR lit up full)
#asahi-gpu · 2021-03-18 16:21
danielskeep an internal camera -> ISP -> codec pipeline which spits out a downscaled YUV/RGB frame for display, and then the codec goes straight to H.264/HEVC/whatever, ideally without touching sysmem
#asahi-gpu · 2021-03-18 16:20
danielsbut given that your phone doesn't have a 4K display, rather than compressing 4K output, the secret is to just ... not have it
#asahi-gpu · 2021-03-18 16:20
bloomAlas
#asahi-gpu · 2021-03-18 16:19
daniels(I've also not seen it in the wild)
#asahi-gpu · 2021-03-18 16:19
danielsArm never got their media-codec IP in any shipping SoC TTBOMK, but they will license AFBC to you if you want to do that
#asahi-gpu · 2021-03-18 16:19
bloom4k on mobile is rather painful withot compression, so
#asahi-gpu · 2021-03-18 16:17
bloom(IIRC Arm has this too, also not shipping afaik)
#asahi-gpu · 2021-03-18 16:17
bloomLikewise, can the video decoder recompress to the native format on the fly?
#asahi-gpu · 2021-03-18 16:17
bloomI know Arm has camera stuff feeding into AFBC but I don't know if it (or anything like it) ever shipped.
#asahi-gpu · 2021-03-18 16:16
marcanthere's a separate image processor, presumably for that stuff
#asahi-gpu · 2021-03-18 16:16
modwizcodedon't they use off the shelf camera parts tho?
#asahi-gpu · 2021-03-18 16:16
marcangood question
#asahi-gpu · 2021-03-18 16:16
marcanha :)
#asahi-gpu · 2021-03-18 16:16
bloom(at least on the iPhones with fancy 4k@60..)
#asahi-gpu · 2021-03-18 16:16
bloomBetter question is if the cameras support the compression scheme too
#asahi-gpu · 2021-03-18 16:15
marcanso yes
#asahi-gpu · 2021-03-18 16:15
marcanbloom: there is plenty of mention of tiling/compression in these blobs
#asahi-gpu · 2021-03-18 16:14
modwizcodeI mean if you're making both you might as well reuse your hdl c;
#asahi-gpu · 2021-03-18 16:14
bloombut again Apple is far too competent to not have their display controller ingest their compression scheme as well
#asahi-gpu · 2021-03-18 16:13
bloomAdmittedly I don't nknow what the display controller ingests, I just saw this in flight from app<-->compositor
#asahi-gpu · 2021-03-18 16:13
modwizcodeahh heh
#asahi-gpu · 2021-03-18 16:12
bloomApple has managed to excise every mention of a compression scheme from public docs/source.
#asahi-gpu · 2021-03-18 16:12
bloomGotta hand it to Apple, even Arm and Qualcomm brag about AFBC/UBWC despite keeping the internals proprietary.
#asahi-gpu · 2021-03-18 16:11
bloomM1 has full support for tiled compressed framebuffers, documented absolutely nowhere
#asahi-gpu · 2021-03-18 16:11
danielsbut yeah, enabling things like PSR is a seriously frustrating long-tail effort
#asahi-gpu · 2021-03-18 16:10
daniels(not surprising that Apple actually did it properly, but it is sadly uncommon for GPU render targets and display controller fetch to share tiling formats ...)
#asahi-gpu · 2021-03-18 16:10
bloom^ seconding what daniels said, given how optimized for power efficiency the rest of the apple soc's are, and how cheap an extra overlay plane is, this would be a really bizarre place to skimp on gates
#asahi-gpu · 2021-03-18 16:09
marcanmakes sense
#asahi-gpu · 2021-03-18 16:08
danielsrealistically you don't need too many more if you do the HWC thing of using the GPU to flatten your static-ish content to a single buffer, then using the display controller for the more dynamic content
#asahi-gpu · 2021-03-18 16:07
danielsmarcan: 3 is plenty: one for system UI, one for browser chrome, one for Netflix content
#asahi-gpu · 2021-03-18 16:07
svenoh... that mailbox probably explains why the framebuffer only sometimes broke when i wrote different values to the area called "piodma" that is mapped after the framebuffer
#asahi-gpu · 2021-03-18 16:06
modwizcodefor compositing tiles would be plenty
#asahi-gpu · 2021-03-18 16:05
modwizcodeeven the OLPC people implemented a basic display controller level redraw handling thing, it's hardly cutting edge.
#asahi-gpu · 2021-03-18 16:05
marcanbut so far I've seen mentions of 3 layers in here, so I don't think they delegate much compositing to the display controller
#asahi-gpu · 2021-03-18 16:04
marcanthey used a tiling architecture and the framebuffer is also tiled, so it would make sense for them to do a dirty tiles thing for updates, instead of compositing the entire frame
#asahi-gpu · 2021-03-18 16:04
modwizcodeI'm surprised that more of that isn't done honestly
#asahi-gpu · 2021-03-18 16:03
danielsgiven their battery life figures, I have a hard time believing that they're using the GPU to composite every frame (at least when not doing fullscreen desktop)
#asahi-gpu · 2021-03-18 16:03
danielschrisf: if I had to guess, more complex than desktop, less complex than Qualcomm
#asahi-gpu · 2021-03-18 16:02
modwizcodeI didn't realize where iBoot2 resides
#asahi-gpu · 2021-03-18 16:02
modwizcodeohhhh
#asahi-gpu · 2021-03-18 16:02
marcanalong with all the firmware blobs it loads
#asahi-gpu · 2021-03-18 16:01
marcanit does, but iBoot2 is part of the "OS" install, so we need to put it there if we're doing a from-scratch install

plus ›