04:46 soreau: Can anyone using radeonsi on wayland run the command at the bottom of the issue and tell me if it reproduces a flickering problem? https://gitlab.freedesktop.org/mesa/mesa/-/issues/9830
07:05 MrCooper: soreau: don't see any flicker here with mutter on a Vega based APU
07:08 soreau: MrCooper: I can reproduce under weston, sway and wayfire here on radeonsi with RX580
07:08 soreau: what llvm version are you using btw?
07:09 MrCooper: 16
07:09 MrCooper: do you use any unusual build flags for Mesa, e.g. LTO?
07:09 soreau: hm, 15 here
07:09 soreau: no
07:10 soreau: -Dglvnd=true -Dgallium-drivers=radeonsi,zink,swrast -Dgallium-vdpau=enabled -Dgallium-va=enabled -Dvulkan-drivers=amd -Dvideo-codecs=vc1dec,h264dec,h264enc,h265dec,h265enc
08:17 MrCooper: soreau: have you tried if the issue is reproducible with valgrind, and if so whether that reports any errors?
08:20 soreau: no, but when does valgrind not report any errors? :)
08:20 soreau: I just tried, it reports some things but can't really make heads or tails of it
08:39 soreau: but yes, it is reproducible with valgrind
08:52 MrCooper: can you pastebin its output?
08:57 soreau: MrCooper: just valgrind or with some option(s)?
08:58 soreau: here's the default http://pastie.org/p/5mR5NywStLKY9Cy5EdOPZg/raw
09:00 MrCooper: nothing pointing at Mesa
09:01 soreau: yea
09:03 soreau: I did sprinkle some printf's around in si_clear.c and noticed this line https://gitlab.freedesktop.org/mesa/mesa/-/blob/main/src/gallium/drivers/radeonsi/si_clear.c#L708
09:04 soreau: the flickering seems to happen when resized across this barrier, at least with wl-gears
09:04 soreau: not sure that's helpful though
09:35 soreau: MrCooper: but I am right, this patch fixes the issue completely http://ix.io/4GHQ
09:42 soreau: basically disables/bypasses fast clear afaict
09:44 soreau: so I think if it clears a small texture and does slow/normal clear first followed directly by a fast clear with a larger size texture, the texture isn't rendered at all for some reason.. maybe the slow clear path is cached and it happens after the texture is rendered or something?
09:46 soreau: well, clears the fb with scissor set to small first and then large
09:48 MrCooper: hmm, I wonder if fast clear can work with scissor anyway
09:54 soreau: what do you mean?