00:00 orowith2os: MrCooper: I'm adding a vtable entry for the tearing hint, just as a heads up. Not sure if there's anything you think I should look out for.
01:34 alyssa: robclark: https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/46753#note_3815976
01:34 alyssa: isn't that vtn_bindgen2?
01:34 alyssa: (or at least. that's literally what the original vtn_bindgen was written for, lol)
01:38 alyssa: nir_precompiled is specifcially for compute kernels, vtn_bindgen2 is general nir lowering passes
01:38 alyssa: (although anv & nvk uses it for compute kernels because I didn't do the integration work for nir_precomp)
01:39 robclark: it's not far off
01:40 robclark: hmm, you are using vb2 for lowering things in addition to builtin shaders?
01:44 alyssa: absolutely
01:44 alyssa: robclark: https://gitlab.freedesktop.org/mesa/mesa/-/blob/main/src/asahi/libagx/texture.cl?ref_type=heads#L11-63 is a good example of that
01:44 alyssa: associated nir pass: https://gitlab.freedesktop.org/mesa/mesa/-/blob/main/src/asahi/compiler/agx_nir_lower_texture.c?ref_type=heads#L72-111
01:45 alyssa: (incidentally that could be cleaned up a bunch with newer nir features, that's older code)
01:45 alyssa: everything in that file is for texture lowering
01:47 alyssa: poly makes heavy use of this as well
01:47 alyssa: e.g. https://gitlab.freedesktop.org/mesa/mesa/-/blob/main/src/poly/cl/tessellation.cl?ref_type=heads
01:47 robclark: can it do anything that can't be represented in clc (ie. bunch of math/flow-control/etc with some nir instructions mixed in?
01:47 alyssa: sure, that's what lower_builtins is for
01:48 alyssa: libagx_image_texel_address() in that file uses nir_interleave()
01:48 alyssa: which is the interleave nir alu instruction, not part of opencl c
01:49 alyssa: which is the guts of the nir_intrinsic_bindless_image_texel_address lowering
01:49 alyssa: (also in the linked nir pass)
01:49 alyssa: (well file, different pass)
01:50 alyssa: (this all stacks together to implement image atomics on AGX, lowered to global atomics + descriptor load + math + interleave instruction)
01:50 robclark: that could be interesting..
01:58 alyssa: it's all there :p
02:10 robclark: prob still want tex instructions.. but if I have to map things in librusticl to spv'ish things and then do downstream lowering to something closer to hw, this sounds like the answer to that part of it
02:13 alyssa: sure
02:14 alyssa: lower_builtins could grow tex support, I just didn't have a use case
02:14 alyssa: or your inline asm MR
02:33 robclark: yeah, we should still do inline asm.. just a question of how to wire it up and use in librusticl.cl
09:57 orowith2os:yells at karolherbst
10:16 karolherbst: orowith2os: I'm innocent
11:02 orowith2os: @karolherbst: you're never innocent.