#asahi-gpu · 2021-03-27 00:06
DarkShadow44For details I refered to https://github.com/dougallj/applegpu/blob/main/applegpu.py#L3875#asahi-gpu · 2021-03-27 00:04
DarkShadow44chrisf: Packed format field? You mean to specify what format the data has? AFAIK that's all Fx:F#asahi-gpu · 2021-03-27 00:04
DarkShadow44Probably#asahi-gpu · 2021-03-26 20:52
DarkShadow44or do you mean something else?#asahi-gpu · 2021-03-26 20:52
DarkShadow44that's usually an adress stored in u0_u1#asahi-gpu · 2021-03-26 20:51
DarkShadow44but the base address of the buffer is already handled with Ah:Al, no?#asahi-gpu · 2021-03-26 20:34
DarkShadow44if no, I'll just ignore them until we know more#asahi-gpu · 2021-03-26 20:33
DarkShadow44anyone knows what the "u1 - u5" values in device_load do? Because that's the last missing thing for that instruction#asahi-gpu · 2021-03-25 21:47
DarkShadow44bloom: Now that I finally figured out how device_load/store work, definitely :)#asahi-gpu · 2021-03-25 20:59
DarkShadow44Just need to flesh out the architekture, then I consider asking for integration#asahi-gpu · 2021-03-25 20:57
DarkShadow44AFAIK there's no assembler project (in C) yet#asahi-gpu · 2021-03-25 20:57
DarkShadow44well, my goal would also be to get the code upstreamed eventually#asahi-gpu · 2021-03-25 20:49
DarkShadow44layer in what sense?#asahi-gpu · 2021-03-25 20:49
DarkShadow44that's why I don't understand why you dislike that approach#asahi-gpu · 2021-03-25 20:48
DarkShadow44yeah, that's my IR#asahi-gpu · 2021-03-25 20:46
DarkShadow44So you'd turn NIR code directly into G13 bytecode?#asahi-gpu · 2021-03-25 20:44
DarkShadow44hmm depends on how much it changes#asahi-gpu · 2021-03-25 20:42
DarkShadow44As another abstraction, to make bytecode generation via NIR easier and more flexible when the architecture changes, e.g. with the next chips#asahi-gpu · 2021-03-25 20:41
DarkShadow44See https://github.com/DarkShadow44/AsahiLinux-gpu/blob/asmtool/asmtool/asmtool/gpu.h#L76#asahi-gpu · 2021-03-25 20:41
DarkShadow44main part of that will be an immediate representation in form of structs that represent the operations the GPU can do#asahi-gpu · 2021-03-25 20:40
DarkShadow44or whatever we end up using in the end#asahi-gpu · 2021-03-25 20:40
DarkShadow44and 2) to make an assembler for usage with mesa/nir#asahi-gpu · 2021-03-25 20:40
DarkShadow44well, I'm trying to 1) have a disassembler that can turn bytecode into readable assembly (for debugging)#asahi-gpu · 2021-03-25 20:24
DarkShadow44Does this sound like a useful undertaking to you?#asahi-gpu · 2021-03-25 20:24
DarkShadow44Most of understanding is based on dougallj#asahi-gpu · 2021-03-25 20:20
DarkShadow44Still in its early stages though...#asahi-gpu · 2021-03-25 20:19
DarkShadow44Main goal will be having a shader assembler/disassembler in C, that could be plugged into LLVM for bytecode generation#asahi-gpu · 2021-03-25 20:19
DarkShadow44For who's interested: My current project is on Github at https://github.com/DarkShadow44/AsahiLinux-gpu#asahi-gpu · 2021-03-23 21:35
DarkShadow44hopefully, because kernel stuff is finicky#asahi-gpu · 2021-03-23 21:35
DarkShadow44hopefully, because kernel stuff is finicky#asahi-gpu · 2021-03-23 21:30
DarkShadow44assuming there is a kernel layer beneath all that#asahi-gpu · 2021-03-23 21:30
DarkShadow44assuming there is a kernel layer beneath all that#asahi-gpu · 2021-03-23 21:30
DarkShadow44still wondering how exactly we get to the kernel part of things, btw#asahi-gpu · 2021-03-23 21:30
DarkShadow44still wondering how exactly we get to the kernel part of things, btw#asahi-gpu · 2021-03-23 21:26
DarkShadow44it's good enough for me to test the ISA though#asahi-gpu · 2021-03-23 21:26
DarkShadow44it's good enough for me to test the ISA though#asahi-gpu · 2021-03-23 21:26
DarkShadow44not really, no. I just use the github code to inject arbitrary shaders onto the gpu - replacing the original shader at a fixed offset...#asahi-gpu · 2021-03-23 21:26
DarkShadow44not really, no. I just use the github code to inject arbitrary shaders onto the gpu - replacing the original shader at a fixed offset...#asahi-gpu · 2021-03-23 21:24
DarkShadow44the shader infrastructure doesn't sound too far either, y'all seem to have done some amazing work already#asahi-gpu · 2021-03-23 21:24
DarkShadow44the shader infrastructure doesn't sound too far either, y'all seem to have done some amazing work already#asahi-gpu · 2021-03-23 21:22
DarkShadow44okay#asahi-gpu · 2021-03-23 21:22
DarkShadow44okay#asahi-gpu · 2021-03-23 21:18
DarkShadow44eh, depends on what we're given. When we get already inlined bytecode, even easier#asahi-gpu · 2021-03-23 21:18
DarkShadow44eh, depends on what we're given. When we get already inlined bytecode, even easier#asahi-gpu · 2021-03-23 21:17
DarkShadow44similar to what dougallj/applegpu is doing, but all in C and within one single process#asahi-gpu · 2021-03-23 21:17
DarkShadow44similar to what dougallj/applegpu is doing, but all in C and within one single process#asahi-gpu · 2021-03-23 21:16
DarkShadow44what's kinda nice: The buffer for the shaders can be reused multiple times, meaning I could upload and run ten different shaders without having to restart the program#asahi-gpu · 2021-03-23 21:16
DarkShadow44what's kinda nice: The buffer for the shaders can be reused multiple times, meaning I could upload and run ten different shaders without having to restart the program#asahi-gpu · 2021-03-23 21:15
DarkShadow44just moving the uniforms to the required registers is enough for the .metallib shaders to work#asahi-gpu · 2021-03-23 21:15
DarkShadow44just moving the uniforms to the required registers is enough for the .metallib shaders to work