#asahi-gpu · 2023-10-10 00:02
alyssashrug#asahi-gpu · 2023-10-10 00:01
i509vcbalyssa: probably of interest for us with agxv: https://gitlab.freedesktop.org/mesa/mesa/-/issues/9920#asahi-gpu · 2023-10-09 01:31
i509vcbVK_EXT_external_memory_host on agx? yay or nay?#asahi-gpu · 2023-10-07 01:46
i509vcb(Or more likely via -Z codegen-backend like embark is doing)#asahi-gpu · 2023-10-07 01:42
i509vcb(specifically referring to this: https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25498)#asahi-gpu · 2023-10-07 01:41
i509vcbTake the CLC magic, have rust output LLVM IR and pipe that into the LLVM to CLC thing to run Rust on agx itself#asahi-gpu · 2023-10-07 01:40
i509vcbNow I do feel Rust could have a very cool use idea#asahi-gpu · 2023-10-07 01:40
i509vcbI mean you *don't* have to use an allocator but that would likely be rejected from Mesa or need a really good justification#asahi-gpu · 2023-10-07 01:39
i509vcbbut it is ugly#asahi-gpu · 2023-10-07 01:39
i509vcbI do recall there was an example somewhere of using Box with some from_raw hackery to effectively have an allocator#asahi-gpu · 2023-10-06 19:32
ella-0yeah probably not but I still want to experiment#asahi-gpu · 2023-10-06 19:31
alyssaI'm not sure I'd recommend Rust for VK drivers right now, tbh.#asahi-gpu · 2023-10-06 19:11
ella-0:(( allocator_api isn't stablised yet in rust so I can not use it for representing allocation callbacks#asahi-gpu · 2023-10-04 20:15
i509vcbLargely a question on kmsro devices in Vulkan#asahi-gpu · 2023-10-04 20:14
i509vcbalyssa: https://gitlab.freedesktop.org/mesa/mesa/-/issues/9920 (when you return)#asahi-gpu · 2023-10-03 01:16
i509vcb🦀#asahi-gpu · 2023-10-02 23:53
ella-0Ya know what I'm doing it. Gonna try rewriting that stubb agxv_event.c file in rust and seeing what happens.#asahi-gpu · 2023-10-01 13:24
alyssaChaosPrincess: yes#asahi-gpu · 2023-10-01 11:17
ChaosPrincesshas anyone started working on geometry shaders already?#asahi-gpu · 2023-09-30 23:10
ella-0I didn't think you needed anything else really wo write proc macros#asahi-gpu · 2023-09-30 22:52
i509vcb(although needing to build tokio for mesa just sounds like an npm nightmare)#asahi-gpu · 2023-09-30 22:51
i509vcbAlthough the kernel figured it out so *shrug*#asahi-gpu · 2023-09-30 22:50
i509vcbWell for writing proc macros#asahi-gpu · 2023-09-30 22:29
ella-0Wouldn't have thought so; It's included in rust-src#asahi-gpu · 2023-09-30 22:24
i509vcbAlthough if someone wanted to use proc-macro in mesa then it would be pain#asahi-gpu · 2023-09-30 21:15
ella-0as for crates it might make sense to vendor ash (because it doesn't really have any other subdepednencies) but I personally wouldn't want to depend on much else; the dependency hell that crates can cause if one is not careful makes my other job (maintaing Iglunix) a bit of a pain.#asahi-gpu · 2023-09-30 21:11
i509vcbalyssa probably has an opinion how to do this #asahi-gpu · 2023-09-30 21:06
ella-0the other option is just a basic compute job that handles vkevent which I think v3dv does#asahi-gpu · 2023-09-30 21:05
ella-0i509vcb: i think vkevent might need some uapi changes? at least what's currently used for implementing explicit synchronisation could be exposed more for implementing vkevent to some degree.#asahi-gpu · 2023-09-30 06:32
chadmedthey have been attacked by fusarium :)#asahi-gpu · 2023-09-30 05:37
i509vcbhmm now to figure out why the palm trees are uhh weird https://usercontent.irccloud-cdn.com/file/TGYv01le/Screenshot_20230930_003310.png#asahi-gpu · 2023-09-30 02:44
i509vcbI'm tempted to throw a hack commit to just make it work and revisit in the future #asahi-gpu · 2023-09-30 02:34
i509vcbSpeaking of which the vk_meta discussion for layer_id seemed inconclusive from what I recall?#asahi-gpu · 2023-09-30 02:32
i509vcbMainly ash#asahi-gpu · 2023-09-30 02:32
i509vcbOn Rust until meson supports crates from cargo we'd probably need to vendor some rust stuff...#asahi-gpu · 2023-09-30 02:18
i509vcbSelf contained things like a vk_meta implementation could be a cool idea but you'd probably end up writing hundreds of lines of unsafe Rust with ash which wouldn't be much better than C#asahi-gpu · 2023-09-30 02:13
i509vcbNot sure how VkEvent would be implemented. Assuming there isn't special stuff in agxv I'd guess a buffer you write to after some stage finishes?#asahi-gpu · 2023-09-29 21:09
Maryagxv in rust would be cute for sure ^^#asahi-gpu · 2023-09-29 21:04
alyssagfxstrand will have opinions#asahi-gpu · 2023-09-29 20:44
ella-0I mean no one's touched vkevent yet afaik so maybe that could be done in rust?#asahi-gpu · 2023-09-27 18:21
ella-0yeah that i'm not totally sure about#asahi-gpu · 2023-09-27 18:18
i509vcbAlthough what would we test write in Rust for agxv is the big question#asahi-gpu · 2023-09-27 18:15
ella-0I've been tempted for a while now just to add a bit of rust code to agxv to see how it goes#asahi-gpu · 2023-09-27 17:03
i509vcb(And probably quite a lot of work given how much stuff that would need to be bound...)#asahi-gpu · 2023-09-27 16:59
i509vcbAlthough that's still unclear#asahi-gpu · 2023-09-27 16:59
i509vcbif agxv is being rewritten in rust I'm definitely intrigued#asahi-gpu · 2023-09-27 15:32
eric_engestrom(also, I love that gif xD)#asahi-gpu · 2023-09-27 15:31
eric_engestromhold on, are you rewriting agxv in rust? 🦀🤩#asahi-gpu · 2023-09-27 15:30
alyssaeric_engestrom: https://i.pinimg.com/originals/4e/4d/cc/4e4dccffac0ba0a213134dd3aaa75847.gif#asahi-gpu · 2023-09-27 14:34
ella-0cool