04:46soreau: 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:05MrCooper: soreau: don't see any flicker here with mutter on a Vega based APU
07:08soreau: MrCooper: I can reproduce under weston, sway and wayfire here on radeonsi with RX580
07:08soreau: what llvm version are you using btw?
07:09MrCooper: 16
07:09MrCooper: do you use any unusual build flags for Mesa, e.g. LTO?
07:09soreau: hm, 15 here
07:09soreau: no
07:10soreau: -Dglvnd=true -Dgallium-drivers=radeonsi,zink,swrast -Dgallium-vdpau=enabled -Dgallium-va=enabled -Dvulkan-drivers=amd -Dvideo-codecs=vc1dec,h264dec,h264enc,h265dec,h265enc
08:17MrCooper: soreau: have you tried if the issue is reproducible with valgrind, and if so whether that reports any errors?
08:20soreau: no, but when does valgrind not report any errors? :)
08:20soreau: I just tried, it reports some things but can't really make heads or tails of it
08:39soreau: but yes, it is reproducible with valgrind
08:52MrCooper: can you pastebin its output?
08:57soreau: MrCooper: just valgrind or with some option(s)?
08:58soreau: here's the default http://pastie.org/p/5mR5NywStLKY9Cy5EdOPZg/raw
09:00MrCooper: nothing pointing at Mesa
09:01soreau: yea
09:03soreau: 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:04soreau: the flickering seems to happen when resized across this barrier, at least with wl-gears
09:04soreau: not sure that's helpful though
09:35soreau: MrCooper: but I am right, this patch fixes the issue completely http://ix.io/4GHQ
09:42soreau: basically disables/bypasses fast clear afaict
09:44soreau: 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:46soreau: well, clears the fb with scissor set to small first and then large
09:48MrCooper: hmm, I wonder if fast clear can work with scissor anyway
09:54soreau: what do you mean?