uvos has quit [Ping timeout: 240 seconds]
sunshavi has joined #maemo-leste
Pali has quit [Ping timeout: 256 seconds]
joerg has quit [Ping timeout: 240 seconds]
joerg has joined #maemo-leste
macros__ has quit [Ping timeout: 240 seconds]
macros_ has joined #maemo-leste
mardy has joined #maemo-leste
<rafael2k> Wizzup: crazy re-drawings in firefox... it looks like its dimensions keep changing, even not scrolling the page the ui elements are drawn in wrong places, then in correct places, then in wrong again...
<rafael2k> Wizzup: dont really know how to try glamor with llvmpipe...
rafael2k has quit [Ping timeout: 252 seconds]
rafael2k has joined #maemo-leste
alex1216 has joined #maemo-leste
joerg has quit [Read error: Connection reset by peer]
joerg has joined #maemo-leste
uvos has joined #maemo-leste
<Wizzup> rafael2k: ok, yes
<Wizzup> rafael2k: I am also not seeing that anymore with apitrace
mepy_ is now known as mepy
rafael2k has quit [Quit: [BX] Man and mouse alike, both end up in pussy]
alex1216 has quit [Ping timeout: 256 seconds]
<uvos> glamor refuses to enable on llvmpipe, you have to comment out that check in the source
<uvos> not sure why you would want to in this case tho
<uvos> the problem seams not to be glamor
<Wizzup> uvos: ok, I just want to be able to communicate that to them somehow, they didn't ask if it was glamor
<Wizzup> uvos: but if the major problem goes away in apitrace ...
<uvos> apitrace slows things down so i gues that helps somehow
<uvos> :(
<Wizzup> yes, to which the guy who responded to me said 'we have never seen timing problems so that seems unlikely to me'
<Wizzup> I guess I can make a video for them
<uvos> Wizzup: if you want to try llvm on glamor anyhow: https://gitlab.freedesktop.org/xorg/xserver/-/blob/master/glamor/glamor_egl.c#L1056
<uvos> just set GALLIUM_DRIVER to llvmpipe for xorg
<uvos> then you have llvm for glamor and lima for everything else
<uvos> but if api trace helps
<uvos> that might help to just because glamor will block forever copying the window pixmap to cpu
<uvos> so im not sure how usefull it is
<uvos> runing just hildon/clutter toys on llvm seams more likely to provide information
<Wizzup> I am not sure what you are suggesting exactly
<uvos> run hildon (or better some simple application that shows the problem on its own) on llvmpipe while glamor is lima acceleratated
<uvos> result: glamor exonerated
<uvos> (problem dissapears)
<Wizzup> ok
<uvos> who is they btw
<uvos> do we have a open bug report?
<Wizzup> no, I went to #lima on OFTC (you need to register and verify to talk) and asked how to best submit a bug report
Pali has joined #maemo-leste
<Wizzup> so running h-d with LIBGL_ALWAYS_SOFTWARE=1 GALLIUM_DRIVER=llvmpipe makes it slow (as expected) and the issues seem to disappear as well
<uvos> yeah as expected
<Wizzup> did you also see the gl errors I reported btw?
<uvos> i did
<uvos> dont really know what to make of it tho
<Wizzup> they seem to be related to textures
<uvos> yes
<uvos> it makes sense (with the issues you see)
<uvos> it/that
<Wizzup> I think I found a way to reproduce the issue in apitrace
<uvos> ok
<uvos> anoter reason why checking if you can find some simpler clutter applicaiton that shows this is good is because
<uvos> maybe this is somehting clutter fixed a long time ago
<Wizzup> so just 'selecting' stuff in osso-xterm reproduces it
<uvos> Wizzup: ok
<Wizzup> want to see the traces?
<uvos> cant hurt, but really i dont know mutch about gl.
<Wizzup> just to confirm they seem sensible to you
<Wizzup> hm it looks weird on llvmpipe too doesn't it... in the replay at least?
<Wizzup> I wish apitrace would be able to introduce a delay per frame
<Wizzup> uvos: so frame per frame the trace of llvmpipe looks good to me
<Wizzup> but the replay is a mess
<Wizzup> actually it's also a mess if I don't replay with LIBGL_ALWAYS_SOFTWARE on my *amd* gpu
<uvos> so dose dump-images show the issue on lima
<uvos> on that trace?
rafael2k has joined #maemo-leste
<Wizzup> well even my amdgpu driver shows it apparently :)
<Wizzup> uvos: can you try to use apitrace and look at frame 47 and show me the contents?
<Wizzup> of the llvmpipe one
<Wizzup> qapitrace*
<Wizzup> I'll do ump images
<rafael2k> what should do / patch to get battery level indication?
<Wizzup> rafael2k: I linked you the patch
<Wizzup> something like thisd
<rafael2k> tks!
<Wizzup> but it's a hack
<rafael2k> what isnt...
<rafael2k> ; )
<Wizzup> uvos: ok let me get you dump-images commands
<uvos> oh yeah
<uvos> it looks wrong
<uvos> even on amdgpu
<Wizzup> now try LIBGL_ALWAYS_SOFTWARE=1
<Wizzup> in front of qapitrace
<uvos> right thats fine
<uvos> yeah so there seams to be a problem in clutter
<Wizzup> or in various mesa drivers
<uvos> the gallium statetracker maybe
<uvos> since thats shared
<uvos> but seams pretty unlikely
<uvos> amdgpu gets into extreamly well tested teritorry
<rafael2k> which kernel should I start from? https://github.com/maemo-leste/pine64-kernel/ ?
<rafael2k> (I mean, which branch )
<Wizzup> uvos: I mean supposedly this is good news
<uvos> so is hildon-desktop clutter 1.0 something thats realtively easy to test
<uvos> ie dose it compile and work mostly?
<Wizzup> not super easy
<uvos> ok hmm
<rafael2k> from which brach the actual kernel in the repo is coming from (for pp)?
<Wizzup> rafael2k: sorry I saw the message but we're debugging the lima stuff and it's taking up my attention
<Wizzup> rafael2k: the best thing always to do for maemo-leste repos is open the maemo/beowulf or maemo/beowulf-devel branch
<Wizzup> look at the debian/changelog file and see what tag it references
<Wizzup> that tag should lead you right to the branch
<Wizzup> keep in mind that -devel and non-devel can have different versions
<uvos> kinda wierd that the lima trace has mesa complain about a bounch of errors
<uvos> but renders ok
<uvos> and llvm trace is opisit
<Wizzup> hm? both amdgpu renders seem off, of either trace, no?
<uvos> amdgpu/radionsi rendering the lima trace is fine here
<uvos> dont see anything wrong
<Wizzup> do you see cmd.txt in there?
<Wizzup> care to run that and compare?
<Wizzup> oh
<Wizzup> I messed up the numbers there
<Wizzup> fck
<Wizzup> sec
<rafael2k> Wizzup: go ahead - lima++
<rafael2k> ; ))
<Wizzup> uvos: care to look at cmd.txt now and try?
<Wizzup> uvos: I bet it will look wrong for you
<uvos> BAD: apitrace dump-images maemo-summoner-hildon-desktop-llvmpipe.trace -o llvmpipe-trace-amdgpu-redraw --calls=3542
<uvos> FINE: LIBGL_ALWAYS_SOFTWARE=1 apitrace dump-images maemo-summoner-hildon-desktop-llvmpipe.trace -o llvmpipe-trace-llvmpipe-redraw --calls=3542
<uvos> FINE + MESA ERRORS: apitrace dump-images maemo-summoner-hildon-desktop-lima.trace -o lima-trace-amdgpu-redraw --calls=2357
<uvos> FINE + MESA ERRORS: LIBGL_ALWAYS_SOFTWARE=1 apitrace dump-images maemo-summoner-hildon-desktop-lima.trace -o lima-trace-llvmpipe-redraw --calls=2357
<Wizzup> what image do you get on the lima-trace-amdgpu-redraw
<uvos> all frames of the lima look fine
<uvos> not just that one
<uvos> *xyz
<Wizzup> does this still need an ip?
<uvos> no
<Wizzup> oh btw my images were weird because my vm resized the windows lmao
<uvos> your browser put www on it
<Wizzup> interesting @ your image
<uvos> wierd
<Wizzup> maybe you have tearfree set or something :)
<uvos> no
<Wizzup> freemangordon: I think we have a clutter bug on our hands
<Wizzup> uvos: so I think at this point it's probably safe to say this seems buggy with most mesa drivers except for llvmpipe and with powervr
<uvos> well llvm makes sense
<uvos> its extreamly forgiving with using wrong buffers etc since its dosen have hw caches and sutch
<Wizzup> I can confirm I also see errors only with the lima trace
<uvos> powervr is not really a mesa driver anyhow
<uvos> anything that affects this is implemented in the blobs
<uvos> so eh
<Wizzup> right
<Wizzup> my point was mostly that clearly it works on some drivers
<uvos> right
<Wizzup> uvos: I'll make a trace on my d4
<Wizzup> just to see if that replays ok in mesa
<Wizzup> uvos: btw any idea how to make apitrace replay delay images
<uvos> hmm
<uvos> what are you tring to acive
<uvos> a video in real time?
<Wizzup> yeah, that would be nice...
<uvos> just assemble the images with ffmpeg
<Wizzup> I cannot see anything really with 'replay'
<Wizzup> yeah ok
<Wizzup> I just suspected that replay could do this somehow
<Wizzup> lol apitrace segfaults with powervr drivers
<uvos> heh
<uvos> probubly pvrtrace
<uvos> is what you need to use
<uvos> but then you cant replay
<Wizzup> Thread 1 "maemo-summoner" received signal SIGSEGV, Segmentation fault.
<Wizzup> 0xb4512662 in ?? () from /usr/lib/arm-linux-gnueabihf/libGLESv2_PVR_MESA.so
<Wizzup> so I think the code that errors/warns with invalid enum is in clutter-0.8 debian/patches/02-eglx-backend-tfp.patch
<Wizzup> rafael2k: ah it was not rebased ok?
<Wizzup> parazyd: ayyyy ^
<rafael2k> Wizzup: patch is missing an important part...
<Wizzup> rafael2k: yeah I think parazyd rebased it and missed that property
<rafael2k> uhum
<Wizzup> or I did, idk, it's been a while
<rafael2k> anyway, telephony is missing also, but that is just config tweaking
<rafael2k> also crypto...
<Wizzup> rafael2k: yes, maybe summarise it an issue
<Wizzup> I am waiting for parazyd to do it since I have too much on my hands already with n900 and droid4 kernel
<uvos> looks really fun :P
<Wizzup> that's pretty accurate probably
<Wizzup> although I am not sure if I saw the h-d background bleed througfh
<uvos> its running at 1/2 realtime speed
<uvos> so
<uvos> pobubly harder to see in real time
<Wizzup> I think this is beyond something I can just solve right now
<Wizzup> (as in, I am going to take a break)
<Wizzup> I think it might be best to check with freemangordon when he gets back, since he's most knowledgeable about clutter
<Wizzup> It's been about 8 years since I made my last opengl program in uni ;)
<rafael2k> Wizzup: ok
<uvos> i have never touched any code in a professional or academic capacity - dont look at me :P
<Wizzup> uvos: yeah so there are only three places that at least cause the error/invalid enum
<Wizzup> $ grep -r GL_TEXTURE_2D . | grep glEnable
<Wizzup> grep: ./.git/objects/pack/pack-829b37b8f8e1f79230c4ad5ee45798bf4de51ebb.pack: binary file matches
<uvos> link?
<Wizzup> ./clutter/cogl/common/cogl-pvr-texture-gl.c: GE( glEnable(GL_TEXTURE_2D) );
<Wizzup> ./clutter/eglx/clutter-eglx-texture-pixmap.c: glEnable (GL_TEXTURE_2D);
<Wizzup> ./debian/patches/02-eglx-backend-tfp.patch:+ glEnable (GL_TEXTURE_2D);
<Wizzup> well, it's clutter 0.8 repo
<Wizzup> rafael2k: I can maybe do a build later today or tomorrow, esp if you suggest the config changes, but let's see
<Wizzup> uvos: so it looks like some of the commits depends on a specific extension being present
<uvos> mhm
<Wizzup> it could be that we just take the wrong unsupported path and that causes the enum issue perhaps
<uvos> yes seams likely
<Wizzup> although the glEnable is before that decision
<Wizzup> I think the clutter 0.8 patches might not get applied at all
<Wizzup> there doesn't seem to be a series file
<Wizzup> bbiab
<uvos> it also renders wrong on intel btw
<Wizzup> so the lima guy said
<Wizzup> 13:42 < enunes> Wizzup: hmm I played it but I'm still not sure what am I looking at
<Wizzup> 13:43 < 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> which is why I wanted to try powervr
<Wizzup> but imho the llvmpipe trace should suffice
<Wizzup> I guess I could try to replay that on lima
<uvos> its wrong on i965 too
<uvos> so a bug in mesa is pretty unlikely
<uvos> (i965 is a mesa classic dirver that shares very little with the gallium drivers radionsi/lima)
<Wizzup> so this on the pp:
<Wizzup> apitrace replay maemo-summoner-hildon-desktop-llvmpipe.trace
<Wizzup> shows the same problems
<Wizzup> this does not:
<Wizzup> LIBGL_ALWAYS_SOFTWARE=1 apitrace replay maemo-summoner-hildon-desktop-llvmpipe.trace
<Wizzup> and actually the replay looks ok speed wise
<Wizzup> ish
<uvos> heh
<Wizzup> probably because the gpu is slow :)
<uvos> well inky_ and rafael2k use hildon on llvmpipe on pp
<uvos> so it must be okish sorta
<uvos> certenly llvmpipe hildon on d4 is more than painfull
<Wizzup> it's all painful imho
<Wizzup> but ok
<Wizzup> if you see just how butter smooth portrait h-d is with lima when it works :)
<Wizzup> it's quite a sight
<Wizzup> ok now actually brb
<Wizzup> so lima supports EGL_KHR_image_pixmap but llvmpipe does not
<uvos> k
<Wizzup> so perhaps the way we do EGL_KHR_image_pixmap is broken
<uvos> yes
<Wizzup> (even though it clearly works for pvr)
<uvos> sounds very possible
<uvos> i would not count on pvr to enforce spec :P
<uvos> so comment that path out and try on lima
<Wizzup> it seemed to be more like mesa not following spec if I recall fmg correctly
<uvos> yes what glamor did with khr image was ub
<uvos> mesa just worked in this case
<Wizzup> ok
<Wizzup> btw lima has EGL_NOK_texture_from_pixmap not we search for something else
<Wizzup> we search for EGL_NOKIA_texture_from_pixmap
<Wizzup> freemangordon: ^^^
<Wizzup> pvr also as EGL_NOK_texture_from_pixmap it seems
<Wizzup> ddk 1.17 at least
<Wizzup> probably need to update that check too then
<Wizzup> wondering if the call to eglCreateImageKHR perhaps needs updated img attribs
<Wizzup> well hang on, why does the llvmpipe path still fail for lima then
<Wizzup> maybe they interpret the KHR properties differently
<Wizzup> EGL_KHR_partial_update seems to be in lima but not in pvr
<Wizzup> so setting use_fallback=1 I think helps with firefox corruption, but not at all with osso-xterm problems I was tracing
<Wizzup> but it does make vkb just work I think
<Wizzup> we're onto something :)
<Wizzup> checking for EGL_NOK_texture_from_pixmap instead of EGL_NOKIA_texture_from_pixmap has different behavious as well, the status area looks odd/off, and the other problems remain
<Wizzup> so the current workaround is to set use_fallback to TRUE
<Wizzup> there seems to be more problems still though
<Wizzup> yeah no this is not the fix for some of the other problems at least
<Wizzup> uvos: do you recall the obnoxious glib variable to print g_debug messages?
<Wizzup> G_MESSAGES_DEBUG=all it is
<Wizzup> maybe the problem is in clutter_eglx_texture_pixmap_update_area
<Wizzup> this is beyond me for now
<freemangordon> hmm?
<freemangordon> seems I am missing the party :)
<freemangordon> Wizzup: did you apply "glamor: add missing GL_TEXTURE_WRAP_X parameters"?
<freemangordon> hmm, where do you see EGL_NOK_texture_from_pixmap?
<Wizzup> freemangordon: hi!
<Wizzup> let's take a step back a for a moment
<freemangordon> sorry, I was too busy, I have some 30 minutes maybe now and I'll have to run (GF has birthday :) )
<freemangordon> ok
<Wizzup> ok
<Wizzup> congrats :)
<freemangordon> thanks!
<Wizzup> so we're seeing lots of flickering and drawing of old and invalid content on the pinephone
<freemangordon> so, if I can help, go ahead
<Wizzup> this manifests itself in a few ways:
<Wizzup> 1. firefox flickers badly
<Wizzup> 2. osso-xterm selection (with finger) renders wrongly and flickers intensely
<Wizzup> 3. vkb doesn't render most of its content
<Wizzup> there are a few more, like scrolling in most windows is SNAFU
<freemangordon> ..and this gets fixed with no compositing
<freemangordon> (I have read the backscroll)
<freemangordon> so, it seems we suspect TFP now, correct?
<Wizzup> I am not sure if this is entirely true wrt compositing
<Wizzup> there might be several problems
<Wizzup> just to add a few more bugs/problems:
<freemangordon> BTW, if we misuse TFP, that might explain tearing we see on d4 with pvr
<Wizzup> 4. title bars also often switch back and forth and even get some weird rotation angle
<freemangordon> ught
<freemangordon> *ugh
<Wizzup> this is all gone when we use llvmpipe
<Wizzup> all of the problems just disappear
<Wizzup> llvmpipe however doesn't support TFP so it uses the fallback x11 path
<freemangordon> mhm
<freemangordon> one note re TFP - it is supported in VMs, so I doublt we misuse it
<Wizzup> VMs are mostly llvmpipe
<Wizzup> but well noted
<freemangordon> not really
<Wizzup> you can see the amd mesa one is clearly wrong
<freemangordon> at least vmware and virtualbox provide 3d accell
<freemangordon> right
<freemangordon> but doesn;t seem like bad texture to me
<Wizzup> there seem to be a pattern to it when I look at it in apitrace, the regions that were previously rendered black get turned white again in later frames
sunshavi has quit [Read error: Connection reset by peer]
<freemangordon> soemthing doesn;t get flushed?
<Wizzup> possible
<Wizzup> but note that X renders with glamor
<Wizzup> and it works just fine when h-d is llvmpipe but X is lima
<Wizzup> as far as I can tell
<Wizzup> I haven't tested the opposite (glamor with llvmpipe and h-d with lima)
<freemangordon> right, but then buffers are not allocated by lima driver
<freemangordon> BOs that is
<Wizzup> ok
<Wizzup> so there are a few other things to note:
<Wizzup> 1. not super relevant but the NOKIA extension we search for is present in mesa as NOK not NOKIA
<Wizzup> 2. mesa complains about invalid enums in glEnable(GL_TEXTURE_2D) and some texture param calls
<freemangordon> (this is new to me, was not there few months ago)
<freemangordon> (16,59,40) freemangordon: Wizzup: did you apply "glamor: add missing GL_TEXTURE_WRAP_X parameters"?
sunshavi has joined #maemo-leste
<Wizzup> 3. if I set use_fallback = TRUE with lima ( so the TFP checks are ommitted), some things work fine, but not all problems are solved, suggesting there are problems beyond TFP
uvos has quit [Remote host closed the connection]
<freemangordon> so, did you apply that patch?
<Wizzup> freemangordon: yes, looks like I have those applied
<freemangordon> this is the 3rd one
<Wizzup> yes
<freemangordon> ok
<Wizzup> this is basically where I am at now
<freemangordon> I doubt we break TFP, clutter just issues 2 or 3 EGL calls
<Wizzup> I am going to check how it goes with h-d using lima, but tfp hard disabled, I want to see if the osso-xterm selection bug is still there then
<freemangordon> ok
<Wizzup> so no, with TFP fallback in place, that redrawing bug is still there
<freemangordon> as expected
<Wizzup> but some bugs are fixed (like virtual keyboard rendering)
<freemangordon> maybe because of the changed timing
<Wizzup> could be
<Wizzup> firefox also doesn't flicker as much anymore
<Wizzup> in any case there is where I am stuck
uvos has joined #maemo-leste
<freemangordon> so, what I think is - some fence is missing
<Wizzup> the traces clearly render wrong on mesa
<freemangordon> hmm
<freemangordon> with llvmpipe?
<freemangordon> on PC?
uvos has quit [Remote host closed the connection]
<freemangordon> do we have some errors in retrace?
uvos has joined #maemo-leste
<freemangordon> Wizzup: also, IIUC, we use GLES2 in clutter and OGL in glamor
<Wizzup> freemangordon: no, llvmpipe renders fine
<Wizzup> freemangordon: but if I render it on my PC it is also wrong with amdgpu
<freemangordon> so, what is "mesa" then?
<Wizzup> my amd radeon mesa driver
<freemangordon> ah
<uvos> we can totaly retire the idea that its glamor in any way
<freemangordon> ok
<uvos> this was proven in mulitple ways - not least of witch is i just tried the trace on amdgpu with acellMethod=none and dri2
<uvos> and it has the same problem
<freemangordon> ok, but then there seems to be some issue in GL calls
<Wizzup> in general I think if you look in qapitrace you will see the textures are wrong
<Wizzup> so whatever flings the texture to the display ultimately is not at fault
<freemangordon> but ofc they are wrong
<Wizzup> yes, mostly saying that's probably not glamor as well
<freemangordon> ah
<freemangordon> I mean - retrace just displays those textures, like, the content was captured on the device
<Wizzup> no
<freemangordon> yes
<Wizzup> on llvmpipe the same trace looks fine
<freemangordon> omg
<Wizzup> yup
<freemangordon> ok, then some gl state is wrong
<Wizzup> if you take maemo-summoner-hildon-desktop-llvmpipe.trace and run it through apitrace
<freemangordon> *lima* is the bad one, right?
<Wizzup> hang on
<freemangordon> I am going to run that on my nvidia
<Wizzup> you will see it's wrong even on amdgpu or on lima or etc
<uvos> its just where the trace was recorded
<Wizzup> BUT
<Wizzup> if you set LIBGL_ALWAYS_SOFTWARE=1, then it renders fine
<uvos> if it displays the problem depends on where it plays back
<Wizzup> so:
<freemangordon> ok, but I want to render it here
<freemangordon> on PC with NVidia
<Wizzup> right
<Wizzup> so:
<Wizzup> qapitrace /tmp/maemo-summoner-hildon-desktop-llvmpipe.trace
<uvos> so it renders bad on gallium drivers (except llvmpipe)
<Wizzup> vs
<uvos> and on i965
<Wizzup> LIBGL_ALWAYS_SOFTWARE=1 qapitrace /tmp/maemo-summoner-hildon-desktop-llvmpipe.trace
<Wizzup> will render differently
<freemangordon> ok, but I could see some issue in GL state
<Wizzup> I haven't tried it with the lima trace since I don't think it matters
<Wizzup> (it just makes things more complicated)
<Wizzup> freemangordon: yes, glEnable(GL_TEXTURE_2D) fails with invalid enum iirc
<freemangordon> ugh:
<freemangordon> error: unsupported trace format version 5
<freemangordon> and what is the current texture unit?
<freemangordon> sorry, the current texture
<Wizzup> I just use apitrace from beowulf repo
<freemangordon> on my ubuntu?
<freemangordon> hang on, I have built it
<Wizzup> actually that glEnable error doesn't occur in the llvmpipe trace I think, only in the lima trace
<Wizzup> yeah
<Wizzup> (the llvmpipe trace probably doesn't even use TFP because clutter decides not to use it)
<Wizzup> fwiw the lima trace renders fine using llvmpipe as well
<freemangordon> which frame to look at?
<freemangordon> Wizzup: also, this is capture of hildon-desktop, correct?
<Wizzup> freemangordon: yes
<Wizzup> freemangordon: in the lima or llvmpipe trace?
<freemangordon> lima
<Wizzup> sec
<freemangordon> hmm, weird
<freemangordon> I see nothing wrong with that glEnable(GL_TEXTURE_2D) call
<Wizzup> I think around frame 20 things get a bit weird
<Wizzup> where the framebuffers look different
<Wizzup> at least in frame 24
<Wizzup> I think in frame 23 the framebuffer is wrong for the first time
<Wizzup> it looks like in frame 23, after the glDrawArrays, the framebuffer is different
<Wizzup> so maybe the glVertexAttribPointer stuff messes things up
<freemangordon> nope
<freemangordon> it looks fine here
<Wizzup> you're not using mesa
<Wizzup> and that's right before the glEnable(GL_TEXTURE_2D) call
<freemangordon> no idea what I am using :)
<Wizzup> which fails with
<Wizzup> warning: GL_INVALID_OPERATION while reading framebuffer
<Wizzup> freemangordon: well, does eglinfo say NVIDIA ?
<freemangordon> sek
<freemangordon> sec
<freemangordon> Wizzup: ^^^
<Wizzup> yeah that is proprietary and binary driver
<Wizzup> not mesa
<freemangordon> but, it works :)
<Wizzup> yes, which points towards differences in gl implementation, i.e. maybe mesa bug
<freemangordon> hmm, wait
<Wizzup> btw, when you wrote 'it works', I assume you also dumped all images
<freemangordon> how to do that?
<freemangordon> I am using UI
<freemangordon> Wizzup: we should not have white stripe between black stripes, right?
<Wizzup> right
<freemangordon> ok
<Wizzup> freemangordon: apitrace dump-images tracefile fileprefix
<Wizzup> err
<Wizzup> freemangordon: apitrace dump-images tracefile -o fileprefix
<Wizzup> freemangordon: also see cmd.txt file if you want only one image
<Wizzup> so in this case
<Wizzup> apitrace dump-images maemo-summoner-hildon-desktop-lima.trace -o lima-trace-amdgpu-redraw --calls=2357
<Wizzup> you can change lima-trace-amdgpu-redraw to lima-trace-nvidia-redraw
<freemangordon> ok, it is broken here as well
<Wizzup> ok
<Wizzup> this doesn't /have/ to mean it is not a mesa bug
<freemangordon> in frame 30
<Wizzup> as in, it could be the case that the lima trace has other bugs
<Wizzup> or rather, the bugs were somehow trace induced I would say
<Wizzup> the cmd.txt has the other one to run the llvmpipe one as well
<Wizzup> apitrace dump-images maemo-summoner-hildon-desktop-llvmpipe.trace -o llvmpipe-trace-amdgpu-redraw --calls=3542
<freemangordon> hmm
<Wizzup> maybe check that as well just to be sure
<Wizzup> (i.e. what does nvidia make of that)
<freemangordon> the same
<Wizzup> the same - as whatr
<freemangordon> yep, exactly the same
<freemangordon> like amd redraw
<Wizzup> ok
<Wizzup> fwiw I think uvos say something else with his mesa
<Wizzup> s/say/saw/
<Wizzup> I am going for a quick walk and maybe try to make sense of this later today
<freemangordon> I am going on a party, laters (or rather tomorrow) :)
<Wizzup> yep, enjoy
<freemangordon> Wizzup: wait, wait
<Wizzup> ?
<freemangordon> what we see here is actually the texture imported by glEGLImageTargetTexture2DOES
<Wizzup> what is 'here'?
<freemangordon> in apr retrace
<freemangordon> *apiretrace
<Wizzup> so in qapitrace, or in dump images?
<freemangordon> this *is* what has been recorded on the device
<freemangordon> both
<Wizzup> yes, but they render fine in llvmpipe still
<Wizzup> and you can see the frame buffer gets wrong in the non-llvmpipe trace
<Wizzup> qapitrace has a thing for the separate textures and framebuffers
<freemangordon> sure
<freemangordon> "surfaces"
<Wizzup> https://wizzup.org/check.png for example the lima trace already looks different here
<Wizzup> later on the framebuffers also become different
<Wizzup> probably because a different texture is drawn
<Wizzup> nvm my screenshot has different calls selected
<Wizzup> anyway you get the diea
<freemangordon> the point is - texture content gets recorded in the trace
<Wizzup> updated the screenshot
<Wizzup> freemangordon: then how come they are different in the same trace and different drivers?
<Wizzup> otherwise I am not arguing with you
<Wizzup> see https://wizzup.org/check.png (refresh)
<freemangordon> yes, refreshed
<freemangordon> so, framebuffers differ
<Wizzup> yes, this is where they start to differ
<freemangordon> and that could be a result of bad GL calls
<freemangordon> but, textures cannot differ
<Wizzup> yes, but the llvmpipe results ends up being correct still
<Wizzup> ok
<Wizzup> sure
<freemangordon> because their contents comes from the trace
<Wizzup> that's why I suggested to use the llvmpipe trace :)
<freemangordon> ah
<freemangordon> ok
<freemangordon> :)
<Wizzup> but it has the same problems
<freemangordon> hmm, something 64bit related?
<Wizzup> in clutter you mean?
<freemangordon> it is possible that clutter has issues calculating vertex buffer contents
<freemangordon> yes, in clutter
<Wizzup> could be, but aren't our VMs 64 bit?
<freemangordon> or uniforms
<freemangordon> yes, they are
<freemangordon> but FP has different representation in intel and ARM
<Wizzup> it is possible, but I'd like to first understand where the problem comes from
<freemangordon> so on intel we might not have issues simple because of the way FP values are represented in memory
<Wizzup> again, llvmpipe does not show problems
<freemangordon> I understand taht
<Wizzup> doesn't that use the same fp calc?
<Wizzup> and also disabling TFP and forcing fallback has the same problems
<Wizzup> but I suppose vbo's are still in play somehow
<Wizzup> <--- not expert on gl
<freemangordon> could you compare uniforms betwee llvmpipe and amd?
<Wizzup> compare at which step?
<freemangordon> glUniformMatrix...
<freemangordon> hmm, why vertex buffers data is not avalable :(
<Wizzup> they look the same to be
<Wizzup> to me*
alex1216 has joined #maemo-leste
<freemangordon> Wizzup: hmm, in llvmpipe capture there are no (visible)textures
<Wizzup> freemangordon: there is no tfp
<Wizzup> it's x11 fallback
<freemangordon> ah, right :)
* Wizzup actually afk for ~15 mins now
<freemangordon> ok
<freemangordon> for me it is broken with LIBGL_ALWAYS_SOFTWARE=1 too
<freemangordon> lima trace that is
<uvos> you use nvidia gl
<uvos> that dosen suport that envvar no?
<freemangordon> no idea
<freemangordon> lemme check
<uvos> it dosent
<uvos> its implemendted by mesa
<freemangordon> yeah
<freemangordon> ok, my gut feeling tells me we have some issues in clutter because of 64 bits
<freemangordon> but, will continue tomorrow.
<freemangordon> night!
inky has joined #maemo-leste
inky_ has quit [Ping timeout: 250 seconds]
<Wizzup> looks like gles doesn't support it (obviously I guess)
<uvos> gles2 dosent have ff
<uvos> so probubly not
<Wizzup> yeah
alex1216 has quit [Ping timeout: 256 seconds]
<Wizzup> doesn't look like we do that though
<Wizzup> freemangordon: btw it doesn't look like the debian patches are applied at all
<Wizzup> of clutter
<Wizzup> looks like we have them in git, to nvm
Blikje has quit [Ping timeout: 268 seconds]
zhxt has quit [Ping timeout: 260 seconds]
zhxt has joined #maemo-leste
Danct12 has joined #maemo-leste
<lel> Dastan-glitch synchronize a pull request: https://github.com/maemo-leste/liblocation/pull/1 (More readable code + factors)
<lel> parazyd closed a pull request: https://github.com/maemo-leste/liblocation/pull/1 (More readable code + factors)
<Wizzup> parazyd: maybe the code can mention why the measuring math was changed, and to what
<Wizzup> I see it in the PR but not in the code
<parazyd> *shrug*
<parazyd> I don't want to scare off people contributing by being super pedantic
<Wizzup> he mentions a better algorithm but then we don't actually use it
<Wizzup> parazyd: I committed the comments to liblocation
<Wizzup> if this breaks it would be nice to know where it came from, so I added the guys remark
<Wizzup> as in I don't think we test this code at all yet (distance from p1 to p2) so we probably don't know if it works even
<parazyd> ok, thanks
<parazyd> It's a textbook algorithm
<Wizzup> right but we're swapping one textbook one out for another
<Wizzup> I don't know if there's a reason one is more accurate for small distances than others, or why nokia went for one that's more accurate for longer distances
<Wizzup> as in why not go for the 'king' algorithm
<parazyd> This new one is faster
<parazyd> And my algorithm was also from a textbook, not from the binary.
<Wizzup> oh
<Wizzup> uvos: I added nvidia renders here: https://wizzup.org/dirlist/maemo-leste/lima/dump-images/
meridion has joined #maemo-leste
<rafael2k> I forked
<rafael2k> pine64-kernel
<rafael2k> will go for mobian 5.15.x with pp patches, which is pretty decent
<Wizzup> sounds great
<Wizzup> please add the battery patch
<rafael2k> yeap, that will be the only "extra" patch
<rafael2k> I will just take some days, as testing each different setup takes some time to compile natively
<rafael2k> but I have no rush
<rafael2k> :P
<Wizzup> hmm ok
<Wizzup> why compile natively?
<Wizzup> cross compiling the kernel is probably the easiest cross compile ever imho
<rafael2k> why not?
<Wizzup> because your laptop can probably do it in ~3 mins :P
<rafael2k> if the pp does not make it or take way too much, I'll cross
<Wizzup> *shrug* up to you :P
<rafael2k> I even connected it to a powerfull wall adapter, hopefully it will not turn off... eheheheh
<rafael2k> but after I managed to compile mozilla with -j1, I think anything will be possible
<rafael2k> the PR should go to beowulf-devel right (the debian dir)?
<Wizzup> right, well, also the actual code needs to go the repo and also a tag
<Wizzup> so probably you don't want to do it in a pr and rather tell me or parazyd 'pull this code in'
<rafael2k> right... importing sunxi64-linux to github... it is taking some time
<Wizzup> yes, usually the right way to do it is just merge it stuff into the existing tree
<Wizzup> since 99.99999% of the tree is shared
<rafael2k> ok, but mobian keeps the debian/ dir already inside the repo... I will kick it out (and may be borrow some stuff)
<rafael2k> hum, I could just have forked torvals/linux... just realized mobian git basically is the linux kernel + debian dir
<rafael2k> :/
<Wizzup> it doesn't really matter, you can keep the debian dir in there
<Wizzup> yes
<rafael2k> ok
<parazyd> You can't push a whole kernel tree at once to github btw
<Wizzup> you can just have a linux repo with many remotes
<Wizzup> I do that for n9xx-linux, droid4-linux, pine64-linux, etc
<parazyd> Yeah I mean pushing to an empty gh repo
<Wizzup> git is clever enough to sort everything else out
<rafael2k> how I miss subversion...
<rafael2k> :P
<Wizzup> let me be blunt
<Wizzup> you only miss it because you don't understand the power of git yet
<Wizzup> <--- coming from someone who used to like svn
<rafael2k> eheheheh
<rafael2k> so good the r1234... knew by heart the commit numbers
<rafael2k> I understand the power... I just don't need it
<rafael2k> tarballs, patch and diff are good
<rafael2k> anyway, I use git everywhere...
<rafael2k> lemme focus here on this kernel not to forget upower lines
<Wizzup> :)
alex1216 has joined #maemo-leste
<rafael2k> yay, checking the patches for the 5.15, we'll have already the pinephone keyboard support, when it hit the streets
<rafael2k> these ubuntu-touch guys are really annoyng.. a patch to config just to remove sysrq support... I like it so much
<uvos> we do that too
<rafael2k> :(
<uvos> its because uart devices
<rafael2k> any reason?
<uvos> can be noisy so sometimes they broadcast sysrq randomly
<rafael2k> right, did not know
<uvos> mapphones have this problem for instance they would just spontainously reboot
<uvos> because of sysreq being pressed by pluging in a charger :P
<rafael2k> so cool to alt+sysrq+O and the computer just instantly shuts down
<rafael2k> shit
<rafael2k> right, sysrq stays N then
<uvos> well we dont disable sysrq in kernel
<uvos> but we do so early in the boot proccess via init
<rafael2k> this is more elegant...
<uvos> so that it still works if you need it to debug the phone
<rafael2k> I'll not touch the mobian config to start, as it is working fine, just add the patch we need to make battery leve appear, and we should be fine
<rafael2k> crypto modules are there already, all good
<Wizzup> :)
alex1216 has quit [Quit: WeeChat 2.3]
pere has quit [Ping timeout: 268 seconds]
sicelo has quit [Quit: Bye!]
sicelo_ is now known as sicelo
inky has quit [Ping timeout: 240 seconds]
inky has joined #maemo-leste
pere has joined #maemo-leste
inky_ has joined #maemo-leste
<Wizzup> ok so now we need a branch with the kernel code and a tag that points to it
<Wizzup> maemo-kernel-5.15
inky has quit [Ping timeout: 256 seconds]
<rafael2k> ok
<rafael2k> should I change anything?
<rafael2k> ah ok, the tag in the git...
<rafael2k> shit, I put the kernel in another repo
<rafael2k> it will be here (still creating): https://github.com/rafael2k/sunxi64-linux
<rafael2k> git is powerfull, I will find a way
<Wizzup> what branch is the kernel at?
<Wizzup> I can try to pull it in
<Wizzup> yeah ok it's still empty :(
<Wizzup> you really ought to just add it to the pine64-kernel repo
<Wizzup> rafael2k: did you know git remotes can just be filesystems?
<Wizzup> rafael2k: rather, paths on the filesystem
<Wizzup> rafael2k: so from pine64-kernel you can probably do something like
<Wizzup> git add remote sunxi64 /path/to/sunxi-kernel/.git (or so)
<Wizzup> and then git checkout -t sunxi64/kernel-branch-yeah from pine64-kernel
<Wizzup> and then just git push that
<Wizzup> (this is untested but I think it can work)
<rafael2k> tks!
<rafael2k> if kernel works fine and debian package build finish successfully, I'll shout for help on how to use git
<rafael2k> ; )
<Wizzup> k
<Wizzup> meanwhile new mesa is hitting beowulf-devel finally
<Wizzup> sicelo: now I think you should be able to apt-get dist-upgrade (well, in a few minutes)
inky has joined #maemo-leste
inky_ has quit [Ping timeout: 256 seconds]
Twig has joined #maemo-leste
Twig has quit [Ping timeout: 256 seconds]
mardy has quit [Quit: WeeChat 2.8]
rafael2k has quit [Ping timeout: 256 seconds]
<Wizzup> freemangordon: when you get to it, conversations is also a good test case for some corruption
<Wizzup> there are two bars on the side of the screen that weirdly become 'transparent' or something where the previous (stacked) window becomes visible
<Wizzup> I would suggest to just copy your n900 rtcom el db and try it
<Wizzup> this is also only on the pin64
elastic_dog has quit [Quit: elastic_dog]
elastic_dog has joined #maemo-leste