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/
camus has joined #lima
camus1 has quit [Ping timeout: 480 seconds]
camus1 has joined #lima
camus has quit [Ping timeout: 480 seconds]
mripard has quit [Read error: Connection reset by peer]
mripard has joined #lima
camus has joined #lima
camus1 has quit [Ping timeout: 480 seconds]
camus1 has joined #lima
camus has quit [Remote host closed the connection]
Daanct12 has joined #lima
Danct12 has quit [Ping timeout: 480 seconds]
Daaanct12 has joined #lima
Daanct12 has quit [Ping timeout: 480 seconds]
Daaanct12 is now known as Danct12
drod has joined #lima
<Wizzup> enunes: I believe our latest image should have a fix for the virtual keyboard problem you were seeing -- the one that freemangordon could reproduce (he now reports it is fixed in this image). https://maedevu.maemo.org/images-devel/pinephone/20220119/
<enunes> Wizzup: ok, I'll give it a try then
alyssa has left #lima [#lima]
anarsoul has quit [Read error: Connection reset by peer]
anarsoul has joined #lima
<enunes> Wizzup: freemangordon: question, does this latest image attempt to set EGL_BUFFER_PRESERVED or not?
freemangordon has quit []
freemangordon has joined #lima
freemangordon has quit []
freemangordon has joined #lima
<freemangordon> pfew, finally identified myself to the nickserv :)
<freemangordon> enunes: no, however we tried to set that to no use
<enunes> yeah, so heres the thing
<enunes> mesa does not support that at all currently, so setting it wont have any effect, in fact it will return an egl error
<freemangordon> mhm
camus1 has quit [Ping timeout: 480 seconds]
camus has joined #lima
<enunes> I came up with a hack that "adds support" for it, and then I can see results with a simple app drawing a couple of triangles using it
<enunes> that could make your application work, since it seems to rely on preserved buffers
<freemangordon> yes, it does
<freemangordon> is this a mesa patch?
<enunes> however, as we mentioned before this is not a lima bug at all, its just a mesa infrastructure patch
<freemangordon> I see
<freemangordon> Wizzup: ^^^
<enunes> I would suggest if you can test with it and it fixes your app, please dont use the patch anyway and fix the application
<freemangordon> fix the application like?
<enunes> fix the application to not require preserved buffers as mesa does not support it
<enunes> I'm not going to pursue merging something like this myself
<enunes> I'd suggest to open a more general feature request to mesa then
<freemangordon> enunes: do I get it right that EGL_SWAP_BEHAVIOR_PRESERVED_BIT is something that's mandated by the specs?
<enunes> no, it is something that can be either supported or not, and if you plan to use EGL_BUFFER_PRESERVED then you should add EGL_SWAP_BEHAVIOR_PRESERVED_BIT to eglChooseConfig so that you get a config that will support that
<freemangordon> I see
<enunes> mesa basically does not set that at all today for dri3 configs, but it seems that some implementation is there, so just forcing it to be set, it kind of works
<enunes> I'm not all that much interested in validating that it does indeed work well enough to actually enable it in mesa
<enunes> it does seem to work well enough for my triangle app anyway
<freemangordon> ok, we'll try the patch, thanks
<freemangordon> I guess it makes sense to see if we can implement "buffer age" in clutter
<Wizzup> enunes: thanks for the help, we'll try the patch and look at fixing clutter, but also file a more general mesa bug/request I think :)
<enunes> and remember that if you care about efficiency and e.g. battery life etc at all for the pinephone, please dont use this feature at all :)
<freemangordon> thanks a lot !
<freemangordon> enunes: you say it is better to always redraw?
<enunes> probably best case buffer_age, partial_update, since that avoids back copying the entire frame every time
<freemangordon> I see. well, I don't think it is that bad (with EGL_BUFFER_PRESERVED) but not sure we can do some proper mesurements
<freemangordon> given that hildon-desktop does heavy transparent compositing, I think I know what our case is :)
<enunes> I just think it would not be so special. this has been disabled for 10? years and probably nobody complained, I dont see any test cases for it either, its just not a popular thing to do
<freemangordon> well, I don;t think there were any users on mobile linux either
<freemangordon> but lets not go into that
<freemangordon> anyway, appreciate your help. it is late here, going to have some sleep. night!
camus1 has joined #lima
drod has quit [Remote host closed the connection]
camus has quit [Ping timeout: 480 seconds]