00:52 fdobridge_: <e​nigma9o7> And again.
00:53 fdobridge_: <e​nigma9o7> https://cdn.discordapp.com/attachments/1034184951790305330/1185384076073500762/shot-2023-12-15_16-39-48.png?ex=658f69f3&is=657cf4f3&hm=8a86306d9a8c119e5283498e5fb1355d1747ca5c5bce706691241723eb1c18b9&
00:55 soreau: enigma9o7: Are you able to possibly try another OS with 3D drivers enabled to see if it might be bad hw?
00:55 fdobridge_: <e​nigma9o7> It never locks up when using nvidia-340 prop driver.
00:56 fdobridge_: <e​nigma9o7> Goes for months, only have to reboot when I wanna update kernel normally.
00:57 fdobridge_: <e​nigma9o7> (However, I'm using old OS to keep that nvidia-340 supported and want to update; plus nouveau has better EGL support, and works in TTY which nvidia-340 doesn't)
00:59 fdobridge_: <e​nigma9o7> I self-built the 6.6 kernel to test to see if perhaps newer version solved problems, which would give me confidence to upgrade OS.
00:59 fdobridge_: <e​nigma9o7> On the 5.4 kernel, it only freezes every day or two.... this 6.6 is doing it every few hours or less.
02:14 fdobridge_: <k​arolherbst🐧🦀> @gfxstrand fyi, the `.I` on `CCTL` means instruction and `.C` means constant
02:14 fdobridge_: <k​arolherbst🐧🦀> `.U` is an alias for `.D` and means data
02:16 fdobridge_: <k​arolherbst🐧🦀> ohhh.. mhh
02:16 fdobridge_: <k​arolherbst🐧🦀> mhhhh
02:16 fdobridge_: <k​arolherbst🐧🦀> it looks like the min latencies are only needed if `CCTL` is executed without a target address
02:18 fdobridge_: <k​arolherbst🐧🦀> ehh those are the `.*ALL*` flags
02:18 fdobridge_: <k​arolherbst🐧🦀> pain
02:19 fdobridge_: <k​arolherbst🐧🦀> some invalid combinations of `CCTL` won't generate `ILLEGAL_INSTRUCTION_ENCODING` errors, but just act as `NOPs`...
02:19 fdobridge_: <k​arolherbst🐧🦀> anyway...
04:35 fdobridge_: <g​fxstrand> @karolherbst Yeah, there's some plumbing we need to do in NIR before we can use addresses. It's on my TODO list but IDK when it'll happen.
04:36 fdobridge_: <g​fxstrand> I also need to spend some time thinking through things. I honestly don't know if it will result in valid memory-model-correct code if we put them on instructions.
04:36 fdobridge_: <g​fxstrand> Like sure it's great to make the one store available but I'm not sure if that's vk_mm correct or not
05:41 fdobridge_: <g​fxstrand> @asdqueerfromeu Is there an easy link to your AUR for Arch? I'm putting together an NVK Holiday Update blog post and would like to provide a link for folks wanting to try NVK out early.
05:42 fdobridge_: <g​fxstrand> @airlied If you wanted to add it to your copr, I'll add a link for that as well.
05:42 fdobridge_: <g​fxstrand> @airlied Also, do you mind if I mention our Fedora 40 plans?
07:01 fdobridge_: <e​sdrastarsis> https://aur.archlinux.org/packages/vulkan-nouveau-git and https://aur.archlinux.org/packages/lib32-vulkan-nouveau-git
08:13 fdobridge_: <!​DodoNVK (she) 🇱🇹> DXVK should be all good with features once variableMultisampleRate is supported and Vulkan 1.3 is advertised (there's FL12 stuff but that's basically vkd3d, not DXVK)
08:23 fdobridge_: <e​sdrastarsis> pipeline caching would be nice as well
09:19 fdobridge_: <e​sdrastarsis> @gfxstrand The item `VK_EXT_multi_draw` should be marked here: https://gitlab.freedesktop.org/mesa/mesa/-/issues/9477
10:30 fdobridge_: <!​DodoNVK (she) 🇱🇹> I have a MMU fault now after fixing the segfaults in the pipeline caching patch
10:48 fdobridge_: <!​DodoNVK (she) 🇱🇹> Could umr be ported to nouveau? :nouveau:
15:26 fdobridge_: <g​fxstrand> UMR?
15:27 fdobridge_: <p​ixelcluster> debugging tool for amd GPUs
15:27 fdobridge_: <p​ixelcluster> Porting it would probably come close to rewriting
15:29 fdobridge_: <g​fxstrand> Yeah, IDK what our tools story is going to look like. GSP has been a bit of a regression there, sadly. 🫤
15:54 fdobridge_: <g​fxstrand> Variable multisample rate is probably happening soon.
15:54 fdobridge_: <g​fxstrand> January
16:11 xiphmont: airlied: Finally sent you a small FreeCAD model that is a reliable trigger here for the nv50 IB-mode DMA bug.
16:22 fdobridge_: <!​DodoNVK (she) 🇱🇹> I might have to disable it for now (until @ phomes or someone else rebases it)
16:43 fdobridge_: <g​fxstrand> FYI: I'm planning to rewrite all the pipeline code in January, at which point we'll get all the caching toys.
16:44 fdobridge_: <!​DodoNVK (she) 🇱🇹> Will it make that part of the code cleaner?
16:48 fdobridge_: <g​fxstrand> Yes
16:48 fdobridge_: <g​fxstrand> And it'll move most of it into common code.
16:49 fdobridge_: <g​fxstrand> The plan is to basically just implement VK_EXT_shader_object in the driver and implement pipelines on top of that in the common runtime.
16:50 fdobridge_: <g​fxstrand> And the common implementation will have GPL and all the pipeline caching features.
16:50 fdobridge_: <!​DodoNVK (she) 🇱🇹> GPL in the common code? 🤔
16:50 fdobridge_: <g​fxstrand> Similar to how we implement render passes on top of dynamic rendering today
16:51 fdobridge_: <g​fxstrand> VK_KHR_graphics_pipeline_library, not GNU General Public License.
16:52 fdobridge_: <!​DodoNVK (she) 🇱🇹> I of course meant the extension (I definitely made some jokes from this ambiguous initialism before)
16:52 fdobridge_: <g​fxstrand> hehe
16:52 fdobridge_: <g​fxstrand> It's good to clarify sometimes.
16:53 fdobridge_: <!​DodoNVK (she) 🇱🇹> So what will Vulkan drivers need to implement to have EXT_GPL support after the EXT_GPL common implementation stuff? 🤔
16:53 fdobridge_: <g​fxstrand> Well, they can either implement GPL themselves or they can switch to the common framework and then it just happens.
16:55 fdobridge_: <r​hed0x> does Nvidia need any driver heroics for shader_objects or is it a straightforward fit for the hardware?
16:55 fdobridge_: <g​fxstrand> It's just how the hardware works
16:56 fdobridge_: <g​fxstrand> Our fragment shader key has exactly two bits (force per-sample and Z/S self-dep) and everything else is totally stateless.
16:57 fdobridge_: <g​fxstrand> There will be a bit of pain around task/mesh, too
16:57 fdobridge_: <m​arysaka> (For mesh/task shaders we only need one bit too)
16:57 fdobridge_: <g​fxstrand> But nothing compared to what AMD or Intel have to deal with.
16:57 fdobridge_: <m​arysaka> well that and the extra GS header :vReiAgony:
16:57 fdobridge_: <r​hed0x> seems like NV is the easiest hardware to write drivers for
16:57 fdobridge_: <g​fxstrand> It kinda is...
16:59 fdobridge_: <m​arysaka> btw I did a attempt a rebase yesterday on top of your cbuf changes and had new failures, is there anything I need to hook up for that to work fine?
17:02 fdobridge_: <g​fxstrand> Mostly we need to make sure that we have competent stage->group mappings.
17:02 fdobridge_: <g​fxstrand> Right now, I'm using `gl_shader_stage` as the group but we'll need a proper remap table for task/mesh.
17:02 fdobridge_: <!​DodoNVK (she) 🇱🇹> How well do mesh shaders work in CTS/tests?
17:05 fdobridge_: <m​arysaka> Only targeting mesh shader with no task support for the first MR but:
17:05 fdobridge_: <m​arysaka> ``Pass: 722, Fail: 1, Crash: 40, Skip: 28800, Duration: 23, Remaining: 0``
17:05 fdobridge_: <m​arysaka> knowing that the crashes are related to a regression caused by some int64 changes (ipa failing)
17:05 fdobridge_: <m​arysaka> and the failure is going to be fun to deal with, but will try to deal with it at the start of next week hopefully
17:06 fdobridge_: <m​arysaka> With task shader enabled (I only touched that part for an hour):
17:06 fdobridge_: <m​arysaka> ```Pass: 1220, Fail: 204, Crash: 81, Skip: 28058, Duration: 51, Remaining: 0```
17:06 fdobridge_: <m​arysaka> With task shader enabled (I only touched that part for an hour):
17:06 fdobridge_: <m​arysaka> ``Pass: 1220, Fail: 204, Crash: 81, Skip: 28058, Duration: 51, Remaining: 0`` (edited)
17:07 fdobridge_: <m​arysaka> I see, my other guess was around my MME macros but I guess I will dig into that on monday
17:10 fdobridge_: <m​arysaka> knowing that the crashes are related to a regression caused by some int64 changes (ipa failing on frag with int64 loads) (edited)
17:13 fdobridge_: <!​DodoNVK (she) 🇱🇹> This could be nice for supporting GL_NV_mesh_shader but the zink developers NACKed it to oblivion: https://gitlab.freedesktop.org/mesa/mesa/-/issues/7192
17:14 fdobridge_: <m​arysaka> I don't think VK_EXT_mesh_shader map very well with the NV specific extension
17:15 fdobridge_: <m​ohamexiety> It doesn't yeah
17:15 fdobridge_: <!​DodoNVK (she) 🇱🇹> So should nouveau OpenGL driver support GL_NV_mesh_shader directly? 🍩
17:15 fdobridge_: <m​ohamexiety> The comments on that issue go into it
17:15 fdobridge_: <d​adschoorse> I think nobody wants to add NV_mesh code back to NIR
17:17 fdobridge_: <m​ohamexiety> NV_mesh was supported in the past? \:o
17:19 fdobridge_: <r​hed0x> to prepare for a cross vendor ext
17:19 fdobridge_: <m​ohamexiety> Ahh I see. I was surprised because nothing used it iirc
17:23 fdobridge_: <!​DodoNVK (she) 🇱🇹> https://cdn.discordapp.com/attachments/1034184951790305330/1185633406915195010/Screenshot_20231216_192248.png?ex=65905228&is=657ddd28&hm=03fd2e3e3d3eac73598f0e54b3ff061666e8a232e835200e4d95888cc19bf253&
17:25 fdobridge_: <!​DodoNVK (she) 🇱🇹> So a ~23% gain compared to the last time I ran this benchmark on NVK
17:48 fdobridge_: <k​arolherbst🐧🦀> probably the UBO stuff, no?
17:48 fdobridge_: <k​arolherbst🐧🦀> ohh and did loop unrolling land?
17:48 fdobridge_: <!​DodoNVK (she) 🇱🇹> i think so
17:52 fdobridge_: <t​riang3l> Will drivers be strongly discouraged from using their own pipeline implementations when that happens, by the way, or will it still be fine to take advantage of them? Like on AMD many rasterization state setters modify fields of the same PA_SU_SC_MODE_CNTL dword, and thus in my driver I just generate clear/set bits for the whole register based on all related non-dynamic state in the pipeline instead of marking a lot of state as dirty for the
17:53 fdobridge_: <!​DodoNVK (she) 🇱🇹> Is it possible to implement ESO on TeraScale? 🪳
17:53 fdobridge_: <d​adschoorse> ofc, you can even implement ESO on top of vulkan 1.0. it just doesn't make sense 🐸
17:54 fdobridge_: <g​fxstrand> @airlied @karolherbst If one of you wanted to give another crack at copr, I can build with system packages only with https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26726
17:55 fdobridge_: <t​riang3l> In R600g, vertex shader compilation accepts the geometry shader for VS>GS ring buffer data layout, but I think the universal solution of adding one layer of indirection can help here too. Aside from that, it seems like shader stages can be fully independent
17:56 fdobridge_: <g​fxstrand> I've got an e-mail thread going with Fabio to try and get us into the Oibaf PPA as well.
17:57 fdobridge_: <!​DodoNVK (she) 🇱🇹> I can't seem to find Rust packages on Arch
17:58 fdobridge_: <t​riang3l> In R600g, vertex shader compilation accepts the geometry shader for VS>GS ring buffer data layout, but I think the universal solution of adding one layer of indirection can help here too. Aside from that, it seems like shader stages can be fully independent. GCN-style pixel shader epilogs are also not needed as the export format is configured in a context register (edited)
18:14 fdobridge_: <d​adschoorse> unless you have to you have to deal with descriptors, then AMD is the simplest
18:16 fdobridge_: <!​DodoNVK (she) 🇱🇹> Let's see if I can hang my CPU again :triangle_nvk:
18:20 fdobridge_: <!​DodoNVK (she) 🇱🇹> vkd3d-proton tests completed again
18:20 fdobridge_: <!​DodoNVK (she) 🇱🇹> https://cdn.discordapp.com/attachments/1034184951790305330/1185647596207870073/message.txt?ex=65905f5f&is=657dea5f&hm=76f2b7fe4164b412fec3e3d53a43afb1b1a2016bc41bcb73fc44cbb70c940492&
18:36 fdobridge_: <!​DodoNVK (she) 🇱🇹> Most Wanted 2012 instantly did it 💥
18:38 fdobridge_: <!​DodoNVK (she) 🇱🇹> I wonder what happened here?: `Dec 16 20:00:26 RenoirBeast kernel: nouveau 0000:01:00.0: gsp: cli:0xc1d00002 obj:0x00730000 ctrl cmd:0x00731341 failed: 0x0000ffff` (this isn't related to the CPU hang)
18:57 fdobridge_: <g​fxstrand> Descriptors are really easy on NV. It's descriptor buffer that's impossible.
18:58 fdobridge_: <g​fxstrand> IDK how to parse those yet. 😭
19:01 fdobridge_: <d​adschoorse> with amd everything you could come up with is possible 🐸
19:02 fdobridge_: <d​adschoorse> mantle for example had crazy things like linked list of descriptor sets, and that works just fine without extra indirection on amd
19:03 fdobridge_: <d​adschoorse> mantle for example had crazy things like linked lists of descriptor sets, and that works just fine without extra indirection on amd (edited)
19:09 fdobridge_: <!​DodoNVK (she) 🇱🇹> Maybe Dave knows more about this?
19:10 fdobridge_: <!​DodoNVK (she) 🇱🇹> *Only with GSP though
19:17 fdobridge_: <t​riang3l> And with NGG