14:51fdobridge: <esdrastarsis> Nice, Ben updated the gsp branch
18:45fdobridge: <georgeouzou> @airlied using "NIR_PASS(progress, nir, nir_opt_peephole_select, 2, true, true) " makes all tests (tessellation, clipping) happy
18:46fdobridge: <georgeouzou> A limit above 2 makes some tests fail...
18:46fdobridge: <airlied> that is very narrow peephole 🙂
18:47fdobridge: <airlied> @gfxstrand any ideas why peephole selection might blow stuff up later?
19:12fdobridge: <esdrastarsis> @gfxstrand I think the vk_format_get_plane_count definition is duplicated in the last nvk commit
19:22fdobridge: <gfxstrand> Looks like. I messed up the merge. I'll fix it.
19:22fdobridge: <gfxstrand> Gotta wait for my internet to come back first, though. 🙄
21:08fdobridge: <gfxstrand> Fixed. Sorry about that.
21:08fdobridge: <gfxstrand> Is it blowing stuff up? I mean, it can increase pressure a bit in theory.
21:31fdobridge: <esdrastarsis> np
21:47fdobridge: <airlied> @gfxstrand tests start to fail that didn't fail before peephole, but also other tests don't pass unless we do it 🙂
21:49fdobridge: <gfxstrand> Whoops! 🙃
21:51fdobridge: <airlied> setting peephole size to 2 seems to win, we could do that with a big revisit this once NAK lands 🙂
21:52fdobridge: <airlied> though I suppose I should try and figure out what the backend does wrong
21:52fdobridge: <airlied> or even if it is the backend
22:08fdobridge: <mhenning> there are some known issues in nv50/codegen that I could imagine affecting things with peephole_select
22:09fdobridge: <mhenning> one is that we never reconverge threads on gv100+, so some shaders might need peephole_select to prevent divergence for correctness
22:09fdobridge: <mhenning> on the other hand, if you're trying to do a select on a 64-bit value, I think that will become a SPLIT, SLCT, SLCT, MERGE, and RA doesn't handle merge/select correctly
22:09fdobridge: <mhenning> so that could be suspect
22:10fdobridge: <mhenning> those are just off the top of my head though
22:10fdobridge: <gfxstrand> Yeah, I'm wholesale replacing the NIR optimization loop when NAK lands.
22:12fdobridge: <karolherbst🐧🦀> mhh.. I think I have some patches around to converge those threads...
22:12fdobridge: <karolherbst🐧🦀> https://gitlab.freedesktop.org/karolherbst/mesa/-/commits/nv_volta_barriers/
22:12fdobridge: <airlied> also it mostly seems to affect tess eval shaders
22:12fdobridge: <karolherbst🐧🦀> some of it already landed though
22:13fdobridge: <airlied> if that helps narrow it down
22:13fdobridge: <karolherbst🐧🦀> do those use barriers?
22:14fdobridge: <karolherbst🐧🦀> but maybe tess shader need more advanced barrier stuff.. dunno
22:15fdobridge: <airlied> yeah I'd guess there's barriers involved somewhere
22:17fdobridge: <karolherbst🐧🦀> mhhh
22:17fdobridge: <karolherbst🐧🦀> mind dumping the generated IR?
22:21fdobridge: <airlied> in a meeting, will leave it here when I get a chance
22:31fdobridge: <gfxstrand> barriers are something codegen doesn't really do right now
22:38fdobridge: <karolherbst🐧🦀> maybe I should really just clean up the patches and upstream it, but there was something funky going on with how converging threads works inside codegen
22:38fdobridge: <karolherbst🐧🦀> at least for older gens
22:47fdobridge: <mhenning> @karolherbst glancing at those patches, "nv50/ir/nir: insert joins for loops as well " isn't what we want on older gens - the break/prebreak and cont/precont stuff already reconverge so there's no need for a join/joinat (at least, this is what I observe on kepler)
22:48fdobridge: <mhenning> I have some reconvergence stuff for older gens that I also never got to a point where I could upstream it
22:49fdobridge: <karolherbst🐧🦀> yeah...
22:51fdobridge: <mhenning> granted, I'm not sure codegen is worth the effort to fix in general - at this point I'm mostly just trying to avoid regressions
22:53fdobridge: <airlied> yeah we should probably just land tess with workarounds then let @faith sort it out 😛
22:56fdobridge: <karolherbst🐧🦀> yeah...
23:17fdobridge: <gfxstrand> I'm fine with that plan.
23:17fdobridge: <gfxstrand> If the only thing that's failing is barriers, oh well.