ChanServ changed the topic of #lima to: Development channel for open source lima driver for ARM Mali4** GPUs - Kernel driver has landed in mainline, userspace driver is part of mesa - Logs at https://oftc.irclog.whitequark.org/lima/
drod has quit [Remote host closed the connection]
Net147 has quit [Quit: Quit]
Net147 has joined #lima
camus1 has joined #lima
Net147 has quit [Quit: Quit]
Net147 has joined #lima
Net147 has quit []
Net147 has joined #lima
camus has quit [Ping timeout: 480 seconds]
camus has joined #lima
camus1 has quit [Ping timeout: 480 seconds]
camus has quit [Remote host closed the connection]
camus has joined #lima
asd has joined #lima
asd has quit []
camus1 has joined #lima
camus has quit [Read error: Connection reset by peer]
<Wizzup> enunes: following up, I found a way to reproduce the problem in apitrace, at least some of what I was seeing (I took a simpler case), and interestingly enough when replayed llvmpipe it looks fine, but not when I replay it on amdgpu, so perhaps the GL application is buggy, or there is some shared mesa bug
<Wizzup> I'm going bet on the former
<Wizzup> fwiw the traces are here and I also did a dump-images session: https://wizzup.org/dirlist/maemo-leste/lima/
<Wizzup> the trace is just me drag-selecting an empty terminal window
<Wizzup> of course the two traces aren't identical in the sense that I had to manually swipe and do some stuff, so the frame numbers per frame are different for dump images (I picked some at random)
drod has joined #lima
camus has joined #lima
<Wizzup> I do see gl errors in the lima trace that I do not see in the llvmpipe trace, even when replaying in amdgpu or llvmpipe
<enunes> Wizzup: hmm I played it but I'm still not sure what am I looking at
<enunes> best case would be if a single trace reproduces the bug when played on the lima device and does not reproduce it on e.g. intel
<Wizzup> hm, ok
<Wizzup> So the trace itself just shows swiping with a finger up and down on a terminal window, the black selection should follow the (to the replay) invisible finger
<Wizzup> at this point I suspect there is some corner case in the application rather than mesa that makes it work with llvmpipe and some binary driver(s), but not with various mesa drivers
camus1 has quit [Ping timeout: 480 seconds]
<Wizzup> enunes: btw, what about replaying maemo-summoner-hildon-desktop-llvmpipe.trace on lima?
<Wizzup> i.e. 'apitrace replay maemo-summoner-hildon-desktop-llvmpipe.trace' vs 'LIBGL_ALWAYS_SOFTWARE=1 apitrace replay maemo-summoner-hildon-desktop-llvmpipe.trace' shows the same problems for me on the pinephone
<Wizzup> (I tried to run apitrace on my powervr device where this works fine, but apitrace segfaulted, so I will have to try that another day.)
<Wizzup> in any case, don't break your head over it now (but if can confirm you're seeing the same as me would be nice), I'll try to see if I can find a bug in clutter 0.8's texture from pixmap code somehow
camus1 has joined #lima
camus has quit [Ping timeout: 480 seconds]
Danct12 has joined #lima
<Wizzup> I'm going to try to investigate more in the next few days but I found that both llvmpipe and nvidia render both traces correctly it looks like, but other mesa based renderers do not (amdgpu, lima)
<Wizzup> maybe it's some ambiguity in the spec, but it is suspect that other (non-mesa) implementations seem to mostly just work
<Wizzup> (in case it wasn't clear I added some images here https://wizzup.org/dirlist/maemo-leste/lima/dump-images/)
<Wizzup> frame 23 seems to be where the first visual difference are - glDrawArrays has wrong contents, glUniformMatrix4fv still has the same texture and framebuffer
<Wizzup> at least in the 'lima' trace: https://wizzup.org/check.png
<Wizzup> (one of those qapitrace instances is using llvmpipe)
camus has joined #lima
camus1 has quit [Remote host closed the connection]
camus1 has joined #lima
camus has quit [Read error: Connection reset by peer]
<anarsoul> Wizzup: looks like an app bug to me if you get the same result with lima and amdgpu
<Wizzup> anarsoul: yes, bit llvmpipe, nvidia and powervr are all correct
<Wizzup> s/bit/but/
<Wizzup> still looking into it, was just a bit surprising
<Wizzup> (thoughts very welcome though)
<anarsoul> it could be hitting some undefined behavior that gets you the result you expect with llvmpipe
<Wizzup> yeah
<Wizzup> Just for completion sake I am not sure if I get the exact same with lima as I am with amdgpu but I'll verify that later, right now it's easier for me (testing wise) to focus on amdgpu
<anarsoul> Wizzup: or nvidia and llvmpipe doing some explicit flush somewhere
<anarsoul> you can try running it with LIMA_DEBUG=singlejob
<anarsoul> that will disable multijob optimization and will result in a flush whenever you switch render target
<Wizzup> just tried, didn't seem to help, from what I have seen in apitrace, at some point the framebuffer contents start to differ between llvmpipe and amdgpu, so I am not sure if that would relate to flushes as well, but it could be something like that or a fence