#
#asahi-gpu · 2021-04-14 22:50
bloomwithout any derived code from applegpu I don't think
#asahi-gpu · 2021-04-14 22:50
bloomdougall: Leaning towards a Python code gen thing
#asahi-gpu · 2021-04-14 03:18
bloomwhich unblocks compiler work
#asahi-gpu · 2021-04-14 03:18
bloomGot a varying working in the cmdstream demo
#asahi-gpu · 2021-04-13 07:07
marcannice nice :)
#asahi-gpu · 2021-04-12 17:42
dhewgwoot, sounds like a milestone to me!
#asahi-gpu · 2021-04-12 16:39
bloom:)
#asahi-gpu · 2021-04-12 16:38
chrisfbloom: you seem to be making a ton of progress
#asahi-gpu · 2021-04-12 03:56
bloomhave ld_var emitted but some cmdbuf work remains to use it in the demo..
#asahi-gpu · 2021-04-12 03:15
bloomthanks :)
#asahi-gpu · 2021-04-12 03:15
bloomld_vary is up next at which point I can start writing real shaders and implementing the heaps of ALU needed for anything interesting
#asahi-gpu · 2021-04-12 03:15
dougallhaha awesome!
#asahi-gpu · 2021-04-12 03:08
bloomnot bad seeing as I started writing the compiler yesterday :p
#asahi-gpu · 2021-04-12 03:08
bloomFirst shader compiled from GLSL with mesa running successfully on the hardware
#asahi-gpu · 2021-04-12 03:06
bloomYep, there it is.
#asahi-gpu · 2021-04-12 03:04
bloomofc I don't know the regalloc field for FS...
#asahi-gpu · 2021-04-12 03:02
bloomok, now it doesn't fault but there are crazy colours, guessing I screwd up the register alloc
#asahi-gpu · 2021-04-12 03:01
bloomok, stop/trap implemented
#asahi-gpu · 2021-04-12 02:58
bloomAlso, while obviously I can't enforce this, I kindly ask y'all not to make a splash about that before I can get around to blogging ;-P
#asahi-gpu · 2021-04-12 02:52
bloomGlaring problems include missing a stop instruction :-p
#asahi-gpu · 2021-04-12 02:52
bloomIt does not work. Down the debug hole.
#asahi-gpu · 2021-04-12 02:44
bloomdoing all that dev on linux, let's see if it works on macos too :-p
#asahi-gpu · 2021-04-12 02:42
bloomit's gl_FragColor = vec4(1.0, 0.0, 0.0, 1.0), don't get too excited :p
#asahi-gpu · 2021-04-12 02:41
dougall:o
#asahi-gpu · 2021-04-12 02:41
bloomI've just compiled my first shader (from GLSL down to AGX machine code) with Mesa :)
#asahi-gpu · 2021-04-12 02:34
bloomtbd
#asahi-gpu · 2021-04-12 02:31
chrisfis just the shader epilog that's affected?
#asahi-gpu · 2021-04-12 02:30
chrisfmay be feasible to patch it?
#asahi-gpu · 2021-04-12 02:26
bloomchrisf: still means a lot more recompiles if the app swaps things in the pipeline
#asahi-gpu · 2021-04-12 02:25
chrisfonly trouble for GL. we know this upfront for vulkan too
#asahi-gpu · 2021-04-12 01:29
dougallah, that makes sense, thanks
#asahi-gpu · 2021-04-12 01:28
bloomApple has gone the other end... why? well, because they can - Metal requires all this info at pipeline create time anyway, so why not use it? /s
#asahi-gpu · 2021-04-12 01:28
blooma number of architectures are specificalluy designed to eliminate all shader variants in e.g. core OpenGL ES
#asahi-gpu · 2021-04-12 01:27
bloom("shader variants")
#asahi-gpu · 2021-04-12 01:27
bloomrather you have to wait until the app is actually drawing things and potentially have to recompile many times with different shader "keys" - combinations of "leaky" state
#asahi-gpu · 2021-04-12 01:26
bloomThat means you *can't* compile shaders up front,
#asahi-gpu · 2021-04-12 01:26
bloomlikewise the code of the fragment shader depends on the format of the framebuffer
#asahi-gpu · 2021-04-12 01:26
bloomThe code of the vertex shader depends on the format of the vertex attributes,
#asahi-gpu · 2021-04-12 01:24
dougallwhat does 'keyed to formats' mean?
#asahi-gpu · 2021-04-12 01:24
bloomI am not ok with this
#asahi-gpu · 2021-04-12 01:24
bloomalso, I still can't get over the fact the shaders are keyed to formats
#asahi-gpu · 2021-04-12 01:20
bloomno clue on the extended fields, although IIRC you have a clever way to determine those that I don't :p
#asahi-gpu · 2021-04-12 01:20
bloomthanks!
#asahi-gpu · 2021-04-12 01:14
dougalllooks great!
#asahi-gpu · 2021-04-12 01:05
bloomPatches sent
#asahi-gpu · 2021-04-12 00:44
bloompatches incoming
#asahi-gpu · 2021-04-12 00:32
dougallhaha nice!
#asahi-gpu · 2021-04-12 00:30
bloomdougall: https://gitlab.freedesktop.org/mesa/mesa/-/blob/master/src/panfrost/bifrost/bifrost_compile.c#L1471-1517 this was fun to write
#asahi-gpu · 2021-04-12 00:29
dougallbut yeah, it's a nice self-contained challenge for anyone interested in numerics if people want to try :)
#asahi-gpu · 2021-04-12 00:29
bloomThe lowering for Bifrost is super cute

plus ›