#asahi-gpu · 2022-06-09 06:00
phirebut prehaps it's simpler to do it in kernel#asahi-gpu · 2022-06-09 06:00
phiremy gut would be to put as many things in userspace as possible. since it's looking like it's going to be a pretty big kernel driver.#asahi-gpu · 2022-06-09 05:58
linaI didn't see anything that looked like a special event#asahi-gpu · 2022-06-09 05:58
linaI was just talking with alyssa earlier about whether we should do it in the kernel or userspace (both are ugly in their own way...).#asahi-gpu · 2022-06-09 05:58
phirepotenitally the firmware decides when some threshold is met and sends an event telling the kernel to reconfigure?#asahi-gpu · 2022-06-09 05:57
linaI'm not sure how it decides to do it yet; it's not reading the obvious "number of partial draws" counters, but there's probably some other field elsewhere that tells it what it needs to know.#asahi-gpu · 2022-06-09 05:57
linaIt can add pages to the buffer manager and trigger a reconfigure#asahi-gpu · 2022-06-09 05:57
linaphire: The kernel handles that, I already looked at it in the last stream#asahi-gpu · 2022-06-09 05:52
phireactually, IMO it would make even more sense to be handled by userspace, but we know it isn't#asahi-gpu · 2022-06-09 05:51
phirelina: so the firmware handles the partial rendering itself, but does it also handle the auto-buffer resize behavour that alyssa described? That would make more sense to be in the kernel.#asahi-gpu · 2022-06-08 20:42
Tramtristよくできましたリナヽ(^。^)ノ#asahi-gpu · 2022-06-08 20:42
Tramtristよかったうさぎーちゃん#asahi-gpu · 2022-06-08 18:10
linaSobek[m]: She wrote the software I'm using, so she probably has a backdoor...#asahi-gpu · 2022-06-08 15:33
Sobek[m]Hmm, sounds like the FoxGirl VTuber is going to hijack Lina’s stream to eat the rabbit, in all likelihood ?#asahi-gpu · 2022-06-08 13:47
boulabiar[m]Looks like that now the GPU part of the RE will be very interesting with a lot of fun#asahi-gpu · 2022-06-08 13:34
yunilina: Nice job on the bunny =D#asahi-gpu · 2022-06-05 11:12
lina1tri won't work since it hardcodes t8103-specific data in lots of places right now. Lots of power management / hardware related constants change for each SoC.#asahi-gpu · 2022-06-05 11:12
linaI think someone did and it worked with some issues, so some numbers probably need tweaking...#asahi-gpu · 2022-06-05 10:38
jannauis there value in trying agx_1tri.py on t6000? has anyone already tried the mesa driver on macOS t6000?#asahi-gpu · 2022-06-05 08:27
chadmedbut ICtCp fits BT2020 into -1 to 1 for luma and -0.5 to 0.5 for chroma information so it cant be those anyway #asahi-gpu · 2022-06-05 08:26
chadmedso the coefficients would be wrong until you apply the HLG transfer function and whatever special sauce dolby use #asahi-gpu · 2022-06-05 08:26
chadmedrkjnsn keep in mind that those matrices are transformed from the LMS colour space, not RGB #asahi-gpu · 2022-06-05 08:25
rkjnsnI'm afraid I don't know too much about it. I just remembered reading that Macs support Dolby Vision and (separately) that Profile 5 Dolby Vision uses IPTPQc2. The Wikipedia page (https://en.wikipedia.org/wiki/ICtCp) has some matrices.#asahi-gpu · 2022-06-05 08:25
chadmedyeah#asahi-gpu · 2022-06-05 08:25
linaDoesn't sound like that then...#asahi-gpu · 2022-06-05 08:25
chadmedif its ICtCp then the valid inputs are [0,1] for I and [-0.5,0.5] for Ct and Cp#asahi-gpu · 2022-06-05 08:22
linaIt seems to use limited range luma but with a different offset, since you get negative RGB at Y=16/256#asahi-gpu · 2022-06-05 08:17
linarkjnsn: Do you have the coefficients for that? Check #6 here: https://gist.github.com/asahilina/2a80fe5e4476de56412508ec78245b9b#asahi-gpu · 2022-06-05 08:16
linayuni: I saw that!! ^^#asahi-gpu · 2022-06-05 03:48
rkjnsnRandom thought: I think I recall seeing something a couple of days ago about a blob that turned out to be YUV <-> RGB conversion matrices, but there was still part that was unidentified. Since the Macs support Dolby Vision playback, could the last part be for converting from the ICtCp or IPTPQc2 color space?#asahi-gpu · 2022-06-05 01:08
alyssablu#asahi-gpu · 2022-06-05 00:54
TramtristJust saw that about 10 minutes ago. Congrats lina 😻#asahi-gpu · 2022-06-05 00:51
alyssablurgh#asahi-gpu · 2022-06-05 00:51
yunialyssa: Wow, swooping in to paste a link instead of letting people do one Google search ...#asahi-gpu · 2022-06-05 00:50
alyssahttps://www.phoronix.com/scan.php?page=news_item&px=Asahi-Linux-First-Triangle#asahi-gpu · 2022-06-05 00:50
yunilina: I'm still upset about the golem thing, but Phoronix gave you credit for your acheivement :)#asahi-gpu · 2022-06-04 23:46
phiresorry, bad joke#asahi-gpu · 2022-06-04 23:45
phireif preformance is the the priority, code the driver in raw assembly :P #asahi-gpu · 2022-06-04 23:45
alyssaphire: wha?#asahi-gpu · 2022-06-04 23:27
phireso raw assembly then?#asahi-gpu · 2022-06-04 16:19
alyssabluuuuuuuuuuuuurgh#asahi-gpu · 2022-06-04 16:07
boulabiar[m]The faster the better ? Then maybe someday it will be rewritten into rust#asahi-gpu · 2022-06-04 15:51
alyssablurrrrrrrgh#asahi-gpu · 2022-06-03 18:07
alyssalina: and how much time you'd like to spend fighting with bindgen ...#asahi-gpu · 2022-06-03 16:06
linaI think at that point the answer to "Rust at all or not" is up to us, and the answer to "Rust all the way or not" depends on the DRM subsystem folks.#asahi-gpu · 2022-06-03 16:05
linaChances are high that the Rust support will be merged by the time I actually start on the kernel driver...#asahi-gpu · 2022-06-03 15:59
Sobek[m]So, I saw tweets related to « rust or not rust » for Asahi drivers esp. The GPU one has there been some answers to that question ?#asahi-gpu · 2022-06-03 07:49
linaYeah, I don't think it's worth committing that. That code will be at the very least refactored to load arbitrary dumps very soon, and then directly integrate into mesa later.#asahi-gpu · 2022-06-02 23:40
alyssaRight -- even more reason to not have the big blobs hang around the .git forever#asahi-gpu · 2022-06-02 23:38
phireit will quicly become irrelivent once lina hooks m1n1 upto mesa