#asahi-gpu · 2022-06-20 08:02
linaNow I just need a version of grep that ignores ANSI color sequences... wonder if anyone has written that yet or I should#asahi-gpu · 2022-06-20 08:02
linaAhaha, thanks! I keep telling people that investing in tooling up front always pays off! ^^#asahi-gpu · 2022-06-20 08:01
tophevich[m]It worked well so far :) Also I love how your logging turned out, such a nice job on coloring, naming, indenting/spacing of those. Puts many a debugger to shame :D#asahi-gpu · 2022-06-20 07:56
linaFor now I plan on doing that silly tight memory-polling trick to watch structures update during a render, and hopefully get a better picture of what happens.#asahi-gpu · 2022-06-20 07:56
linatophevich[m]: I still have very little idea how to do lifecycle management properly, concurrency, barriers, all that... so if any of what I wrote so far rings any bells from the point of view of other GPUs please do tell! ^^#asahi-gpu · 2022-06-20 07:54
linaBut the version I pushed after that does have a lot of global s/// to make some names more reasonable, so now I can wrap up the wiki docs#asahi-gpu · 2022-06-20 07:53
lina(What actually happened is I was working on it on a laptop away from home and I didn't have my worktree with the latest field names... oops.)#asahi-gpu · 2022-06-20 07:53
linaThanks! Still not quite there yet... I need to finish writing the 3D command walkthrough#asahi-gpu · 2022-06-20 07:51
tophevich[m]*lina#asahi-gpu · 2022-06-20 07:51
tophevich[m]line: nice job on the python driver cleanup and wiki documentation on it#asahi-gpu · 2022-06-20 07:47
linaUp to you userspace people, whenever anyone starts looking at the blit commands at the IOGPU layer I'll be happy to help work out the kernel side ^^#asahi-gpu · 2022-06-20 07:46
linaI figure working out the blit commands won't be too much work, but it's probably still worth pushing for common code that can do it using the 3D pipeline?#asahi-gpu · 2022-06-20 07:46
Ella[m]lina: oh thanks, had a quick look at mvk and it uses this :)#asahi-gpu · 2022-06-20 07:44
linaOh, alyssa left :<#asahi-gpu · 2022-06-20 07:44
linaBut it probably maps pretty closely to that Metal thing#asahi-gpu · 2022-06-20 07:43
linaAnd I've seen blit commands somewhere I think, though I haven't started reverse engineering them#asahi-gpu · 2022-06-20 07:43
linaalyssa/Ella[m]: The blit stuff is documented in Metal, e.g. https://developer.apple.com/documentation/metal/textures/generating_mipmap_data#asahi-gpu · 2022-06-19 18:25
alyssanod#asahi-gpu · 2022-06-19 18:22
Ella[m]uploaded an image: (10KiB) < https://matrix.org/_matrix/media/r0/download/chat.iglunix.org/KPNeJia5GXgPVj4h9NEowyOzDKiKxpjw/image.png >#asahi-gpu · 2022-06-19 18:22
Ella[m]it's meant to be like this#asahi-gpu · 2022-06-19 18:22
Ella[m]yup i'll probably do that at first :) idk first thing is getting my triangle thingy to render properly.#asahi-gpu · 2022-06-19 18:17
alyssarealistically if that's an option for agxv you'll want that for the first draft of the driver at least, more pressing matters.#asahi-gpu · 2022-06-19 18:17
alyssafor panvk, I'd really like the v3dv meta pipeline approach to be generalized to common code#asahi-gpu · 2022-06-19 18:17
Ella[m]alyssa: oh cool, i think i was gonna do something similar to what v3dv has (which i think some of the other drivers also have) with meta pipelines blitting (v3dv_meta_copy, v3dv_meta_clear, ...) i'll poke around a bit to see if i come across any hardware support for this stuff tho.#asahi-gpu · 2022-06-19 18:13
alyssathere's also maybe hardware support for some(?) blits and copies, lina thinks she saw something relevant in the kernel, but I haven't looked at all because on the gl side I don't really care#asahi-gpu · 2022-06-19 18:12
alyssaElla[m]: Also, to actually implement those copies and things, there's a bit of talk around building a "vk_blitter" like we have u_blitter in gallium, but this is nontrivial unfortunately :(#asahi-gpu · 2022-06-19 18:12
alyssaUnlike in OpenGL (where the driver can "stop the world" at any time, split the render pass, and do some work on the CPU, and ping pong back), Vulkan really requires everything to happen on the GPU (except where the API specifically happens on the CPU)#asahi-gpu · 2022-06-19 18:11
alyssafor the benefit of others reading backlog#asahi-gpu · 2022-06-19 18:11
Ella[m]i just haven't removed it#asahi-gpu · 2022-06-19 18:11
alyssagot it will shut up :)#asahi-gpu · 2022-06-19 18:11
alyssaUnlike in OpenGL (where the driver can "stop the world" at any time and takeover --#asahi-gpu · 2022-06-19 18:11
Ella[m]oh that's old :) i already know#asahi-gpu · 2022-06-19 18:10
alyssaYou have the idea of "CPU jobs" for copies and such...? I know it's not implemented but I have bad news -- that won't work even if it is implemented.#asahi-gpu · 2022-06-19 18:10
alyssaElla[m]: Ok, something I notice off the bat:#asahi-gpu · 2022-06-19 18:07
Ella[m]warning: it's cursed and messy :) no cleanup at all#asahi-gpu · 2022-06-19 18:06
Ella[m]<alyssa> "Would appreciate getting a peak..." <- ight https://gitlab.freedesktop.org/Ella-0/mesa/-/tree/agxv-mega-wip#asahi-gpu · 2022-06-19 18:03
yunirelatable#asahi-gpu · 2022-06-19 18:01
Ella[m]oh well this is embarrassing. last time i pushed was from my linux install. I don't even have my ssh keys on macos #asahi-gpu · 2022-06-19 18:00
alyssaawesome :-)#asahi-gpu · 2022-06-19 18:00
Ella[m]but yah i'll push my unclean code now to a wip progress branch :3#asahi-gpu · 2022-06-19 18:00
Ella[m]the only other driver dev experience i've had is with relatively small contributions to v3dv#asahi-gpu · 2022-06-19 17:59
alyssaadmittedly I don't know much VK driver dev yet myself ...#asahi-gpu · 2022-06-19 17:59
alyssaWould appreciate getting a peak -- there are lots of ways to screw up driver dev and maybe I can keep you from going down a bad path or two#asahi-gpu · 2022-06-19 17:58
Ella[m]i have a habit of forgetting to push stuff 😩#asahi-gpu · 2022-06-19 17:57
alyssa👀#asahi-gpu · 2022-06-19 17:57
Ella[m]haven't pushed in a while since my current changes need lots of cleanup#asahi-gpu · 2022-06-19 17:57
Ella[m]alyssa: i have a very old commit is at https://gitlab.freedesktop.org/Ella-0/mesa/-/tree/agxv#asahi-gpu · 2022-06-19 17:56
alyssaMaybe create an account on https://gitlab.freedesktop.org/ and push to a Mesa fork?#asahi-gpu · 2022-06-19 17:55
Ella[m]uhhh currently locally on my machine :3#asahi-gpu · 2022-06-19 17:55
alyssaElla[m]: btw, where's the vk driver code living?