#
✕ nick:DarkShadow44
#asahi-gpu · 2021-04-11 18:29
DarkShadow44bloom: Say, do you know if isaspec from mesa can be used to create an assembler? Because from reading their docs it seems like this is not yet the case
#asahi-gpu · 2021-04-11 18:24
DarkShadow44downloading that is kinda savage indeed, but I like the idea ^
#asahi-gpu · 2021-04-11 18:24
DarkShadow44cool, I kinda thought once it's uploaded you can't access it anymore
#asahi-gpu · 2021-04-11 18:22
DarkShadow44...if you want to run them in the first place
#asahi-gpu · 2021-04-11 18:22
DarkShadow44so if you try to run them, you better check they load/store data at the right offsets :P
#asahi-gpu · 2021-04-11 18:22
DarkShadow44they're compiled as "functions" (for lack of a better word) instead of a standalone program
#asahi-gpu · 2021-04-11 18:21
DarkShadow44glibc: One more thing I forgot: Keep in mind that the metallib way of getting a shader produces different bytecode from loading a shader normally
#asahi-gpu · 2021-04-11 18:19
DarkShadow44bloom: You can extract shaders from GPU memory after they've been uploaded?
#asahi-gpu · 2021-04-11 18:16
DarkShadow44heh, wishing you the best of luck! :)
#asahi-gpu · 2021-04-11 18:10
DarkShadow44I take it, you're also trying to re the ISA?
#asahi-gpu · 2021-04-11 18:04
DarkShadow44FWIW, I just copied that - but also integrated it into my tool - so you can just feed it source and it outputs disassembly
#asahi-gpu · 2021-04-11 17:57
DarkShadow44glibc: Alright, otherwise I could have offered you my version. Do you also use this code https://github.com/DarkShadow44/AsahiLinux-gpu/blob/asmtool/asmtool/asmtool/metallib.c ?
#asahi-gpu · 2021-04-11 17:33
DarkShadow44glibc: What exactly do you want to do?
#asahi-gpu · 2021-04-11 01:52
DarkShadow44directly or using an IR?
#asahi-gpu · 2021-04-11 01:48
DarkShadow44bloom: compiler, like in from NIR to bytecode?
#asahi-gpu · 2021-04-11 01:29
DarkShadow44but making something useful in the process would be nice too :P
#asahi-gpu · 2021-04-11 01:28
DarkShadow44heh, sure
#asahi-gpu · 2021-04-11 01:26
DarkShadow44would be good to have feedback before I implment too much though, don't wanna duplicate the effort
#asahi-gpu · 2021-04-11 01:22
DarkShadow44Because I still have my propsed architecture from my asmtool
#asahi-gpu · 2021-04-11 01:21
DarkShadow44bloom: okay then
#asahi-gpu · 2021-04-11 00:27
DarkShadow44bloom: Even for assemling shaders?
#asahi-gpu · 2021-04-10 18:26
DarkShadow44Would you mind taking a look at this: https://pastebin.com/0f6ey9vu
#asahi-gpu · 2021-04-10 18:26
DarkShadow44dougall: I found some issue with your documentation
#asahi-gpu · 2021-04-10 17:06
DarkShadow44doesn't work for computer shader yet?
#asahi-gpu · 2021-04-10 17:06
DarkShadow44bloom: Using pandecode_cmdstream after a computer shader?
#asahi-gpu · 2021-04-10 16:59
DarkShadow44bloom: Out of curiousity, how does one get those test numbers? I'd be interested in the result of (for example) 800
#asahi-gpu · 2021-04-10 16:30
DarkShadow44hm interesting
#asahi-gpu · 2021-04-10 16:26
DarkShadow44jn__: mind showing?
#asahi-gpu · 2021-04-10 15:50
DarkShadow44bloom: Would you mind sharing a shader that uses that? Would be helpful to understand that.
#asahi-gpu · 2021-04-08 23:13
DarkShadow44I see
#asahi-gpu · 2021-04-08 23:07
DarkShadow44how so?
#asahi-gpu · 2021-04-08 22:58
DarkShadow44the command stream structure for parsing the shaders out
#asahi-gpu · 2021-04-08 22:53
DarkShadow44bloom: Say, what are you currently doing to get that figured out?
#asahi-gpu · 2021-04-04 18:25
DarkShadow44Should get easier from here on, next comes integer operations and bitops
#asahi-gpu · 2021-04-04 18:25
DarkShadow44Finally should have a solid base for emulating load/store - all known formats should work properly now
#asahi-gpu · 2021-04-04 16:39
DarkShadow44bloom: mesa has two functions without a table as well, that's AFAIK how srgb is defined
#asahi-gpu · 2021-04-04 16:38
DarkShadow44after all, I need both directions
#asahi-gpu · 2021-04-04 16:38
DarkShadow44It's easier to reverse the calculation without a table
#asahi-gpu · 2021-04-04 16:15
DarkShadow44dougall: FWIW, I implemented it with the mesa code and adjusted the tests to ignore small floating point differences
#asahi-gpu · 2021-04-04 02:57
DarkShadow44ah, that does make sense
#asahi-gpu · 2021-04-04 02:56
DarkShadow44Isn't that more fitting inside a shader, why does a framebuffer need that?
#asahi-gpu · 2021-04-04 02:49
DarkShadow44bloom: What does that mean, swizzle?
#asahi-gpu · 2021-04-04 02:43
DarkShadow44not quite sure how useful that would be eventually, but currently I just wanna xD
#asahi-gpu · 2021-04-04 02:42
DarkShadow44btw, my end goal would be having regression tests and an emulator to run full shaders (their bytecode) on the CPU
#asahi-gpu · 2021-04-04 02:41
DarkShadow44snrkt?
#asahi-gpu · 2021-04-04 02:40
DarkShadow44I can't stand their defaults
#asahi-gpu · 2021-04-04 02:40
DarkShadow44bloom: first thing I did was change the macOS keybindings :D
#asahi-gpu · 2021-04-04 02:38
DarkShadow44latest adventure: arbitrary precision floats, 10 and 11 bits of size? Why I don't know, but it's interesting
#asahi-gpu · 2021-04-04 02:38
DarkShadow44yeah, those instructions are pretty complex and it helps me to understand what exactly happens ^^
#asahi-gpu · 2021-04-04 02:35
DarkShadow44thank you

plus ›