#asahi-gpu · 2022-01-16 17:10
alyssarebases#asahi-gpu · 2022-01-16 17:08
alyssaTruly#asahi-gpu · 2022-01-16 17:07
alyssaBroadway is being piped into my brain. Let's go!#asahi-gpu · 2022-01-16 17:07
alyssainserts headphones#asahi-gpu · 2022-01-16 17:06
alyssaIf marcan is being productive, so should I :>#asahi-gpu · 2022-01-16 17:06
alyssaOkay. No point laying about for hours feeling tired, let's write some Asahi GPU code#asahi-gpu · 2022-01-16 15:07
alyssadoesn't know what M1 GPU stuff to do#asahi-gpu · 2022-01-16 15:07
alyssaI should do M1 GPU stuff#asahi-gpu · 2021-12-15 13:28
alyssayeah, probably#asahi-gpu · 2021-12-15 03:51
alyssathe list was that + discard fails over the summer I've been doing not-M1-Mesa#asahi-gpu · 2021-12-15 03:51
alyssaunless your exams started a year ago?#asahi-gpu · 2021-12-14 21:51
alyssaMostly broken depth/stencil attachments and missing cube map / mipmap support#asahi-gpu · 2021-12-14 21:50
alyssa^ current fails list with my patches for discard#asahi-gpu · 2021-12-14 21:50
alyssahttp://backtick.town/~bloom/failures.csv#asahi-gpu · 2021-12-14 21:23
alyssaunfortunately something in -bideas is triggering gpu faults so it's still not really working#asahi-gpu · 2021-12-14 21:22
alyssaglmark2 -bideas now discards correctly anyhow#asahi-gpu · 2021-12-14 21:20
alyssaNot at all convinced the impl is right but hey#asahi-gpu · 2021-12-14 21:20
alyssapassing the gles2 tests#asahi-gpu · 2021-12-14 21:20
alyssaOkay, I have discard implemented in mesa#asahi-gpu · 2021-12-14 20:37
alyssaIt's a large instruction though .. wonder what else it's doing besides sample mask writes.#asahi-gpu · 2021-12-14 20:32
alyssaThis is notably not an ALU source -- copying a uniform to the samepl mask requires an intermediate move#asahi-gpu · 2021-12-14 20:18
alyssa0x100 can't be done with an immediate. so it's bits [16, 22] and [26, 27]#asahi-gpu · 2021-12-14 20:17
alyssaat least 0xff, with bits in [16, 22] but also up top [26, ...]#asahi-gpu · 2021-12-14 20:16
alyssaactually the immediate is larger and discontiguous, as is AGX tradition#asahi-gpu · 2021-12-14 20:14
alyssanot obvious where the reg is, since r0l is all zero anyway#asahi-gpu · 2021-12-14 20:13
alyssabit...23?#asahi-gpu · 2021-12-14 20:13
alyssasorry no#asahi-gpu · 2021-12-14 20:13
alyssaso bit 15 is the immediate? flag#asahi-gpu · 2021-12-14 20:13
alyssaand bit 15 is cleared and the immediate is zeroed#asahi-gpu · 2021-12-14 20:13
alyssathis turns into `mov r0l, 65535`#asahi-gpu · 2021-12-14 20:13
alyssanext up is trying an all-1's sample mask#asahi-gpu · 2021-12-14 20:10
alyssa`if (foo) { gl_SampleMask = 0; } gl_SampleMask = 1;`#asahi-gpu · 2021-12-14 20:10
alyssa`if (foo) { discard(); }` is implemented as#asahi-gpu · 2021-12-14 20:10
alyssaSo now the discard sequence isn't so mysterious, it's getting lowered to sample mask writes#asahi-gpu · 2021-12-14 20:07
alyssaan immediate one, I mean#asahi-gpu · 2021-12-14 20:07
alyssaright so bits [16, ???] are a sample mask#asahi-gpu · 2021-12-14 20:06
alyssawith the exact same sequence of ops as comes after the else, hah!#asahi-gpu · 2021-12-14 20:05
alyssaAh ha. Yep yep. TODO.discard is also used to write out a sample mask of 0x1#asahi-gpu · 2021-12-14 20:01
alyssaer coverage masks I mean#asahi-gpu · 2021-12-14 20:01
alyssaNow, discard is closely related to alpha-to-coverage ... if Metal supports that, it's my next thing to look at#asahi-gpu · 2021-12-14 20:00
alyssaNotice, curiously, discard() gets executed /twice/#asahi-gpu · 2021-12-14 20:00
alyssahttps://backtick.town/~bloom/discard.txt#asahi-gpu · 2021-12-14 20:00
alyssaasm looks like this#asahi-gpu · 2021-12-14 20:00
alyssahttps://backitkc.town/~bloom/discard.txt#asahi-gpu · 2021-12-14 19:53
alyssaIt's kinda messy on AGX, not sure why#asahi-gpu · 2021-12-14 19:53
alyssais looking at discard;#asahi-gpu · 2021-11-14 00:29
alyssathis is how a one-pony project can happen at all in open source (this would be virtually impossible doing it the closed way)#asahi-gpu · 2021-11-14 00:28
alyssathe calculus for open source drivers is very different from closed src,#asahi-gpu · 2021-11-14 00:28
alyssaso it's moot#asahi-gpu · 2021-11-14 00:28
alyssain practice, Mesa has already done the hard parts of mapping from opengl to a low level api (Gallium)