/srv/irclogs.ubuntu.com/2013/09/13/#ubuntu-mir.txt

=== chihchun is now known as chihchun_afk
=== chihchun_afk is now known as chihchun
mlankhorstmali hw is weird :P04:46
=== alf|xmir-devel is now known as alf_
=== jono is now known as Guest64072
alf_RAOF: My attempts to reuse the dri screen in platform Mir have been unsuccessful so far (see http://github.com/afrantzis/mesa/tree/egl-platform-mir-egl-image-i965-experiment). I am probably missing some background to make this work, and I don't think it is productive to try blindly now. Hopefully we can tackle this next week.08:19
alf_alan_g: FYI, ^^08:19
alf_RAOF: (reuse the gbm device's dri screen in platform mir)08:20
alan_galf_: that's about resolving the gbm stack problems for nesting Mir?08:21
alf_alan_g: yes08:21
=== alf_ is now known as alf|afk
alf|afknick alf_10:20
=== alf|afk is now known as alf_
alan_galf_: have you time/headspace to look at nested/android egl with me?10:34
alf_alan_g: sure, although I am not currently set up to try it out on a device10:35
alan_galf_: I'm set up - but I can't make sense of what I see. Grab lp:~alan-griffiths/mir/multiwin-hacks-for-nested/10:36
alf_alan_g: ok10:38
alan_gWhat I see is that multiwin works when talking to the host Mir session, but if talking to the nested one the screen remains blank10:38
alan_gI've tried various things, but the only thing that makes a difference is increasing the alpha on the windows. I.e. with alpha 0x50 the screen is blank, with 0xe0 it shows transparent windows10:40
alan_gWith 0xff the windows are solid10:41
alf_alan_g: where do you change the alpha?10:42
alan_gmultiwin.c10:42
alf_alan_g: is there a cutoff alpha value for visibility (e.g. the 0xe0 you mentioned?), or from 0x50 to 0xe0 the opacity is gradually increased?10:47
alan_galf_: just doing a binary search...10:47
alan_gbetween 0xa0 (fail) and 0xb0 (pass)10:48
alf_alan_g: btw, which pixel format does multiwin reports that it is using?10:50
alan_g0xa0 fails and 0xa1 passes10:51
alan_g1 - mir_pixel_format_abgr_888810:51
alan_gFWIW that's the same for talking to host and to nested10:52
=== hikiko is now known as hikiko|lunch
alf_alan_g: can you try 1. changing egl_attribs in nested_output.cpp to match the ones used in nested_display11:05
alan_galf_: yes11:06
* alan_g missed the change from using mgn::nested::attrbutes11:07
alan_galf_:  that does it11:10
alf_alan_g: \o/11:10
alan_gthanks11:10
alf_alan_g: yw11:11
* alan_g knew it would seem obvious once someone pointed it out11:11
* alf_ wonders what strange format the android EGL impl. had selected to cause the alpha cutoff... perhaps something with EGL_ALPHA_VALUE = 1?11:15
alf_(1 bit of alpha)11:15
alan_galf_: Wouldn't that just give blank or opaque11:17
alf_alan_g: right, I forgot that we had a translucent state too11:20
alan_galf_: hold a moment - it might not be working after all.11:25
alf_alan_g: holding on...11:25
alan_gWTF I'm now running the same instrumented version that appeared to work...and it doesn't11:28
alan_gNot sure what happened when it appeared to work11:28
alan_g:(11:28
alan_gHmm, there's now some intermittent working11:34
=== tkamppeter_ is now known as tkamppeter
alan_galf_: OK, the images through nested are a lot fainter than with the host. (Like the alpha is applied in the host render too?)11:38
alf_alan_g: Is this condition stable, is that what you were seeing before thinking it didn't work?11:41
alf_alan_g: also is the alpha rendered gradually (though fainter) in this case?11:42
alan_galf_: am still experimenting - the change had an effect, but when I tidied the code I tried a lower alpha and couldn't see the image11:44
alan_galf_: Sorry - have to deal with a crisis11:48
=== alan_g is now known as alan_g|afk
=== mzanetti is now known as mzanetti|lunch
=== hikiko|lunch is now known as hikiko
=== chihchun is now known as chihchun_afk
=== dandrader is now known as dandrader|afk
=== alan_g|afk is now known as alan_g
=== dandrader|afk is now known as dandrader
=== mzanetti|lunch is now known as mzanetti
alan_galf_: OK, now I'm looking more carefully, I've also noticed that the nested image from egltriangle is fainter than that from the host session.13:21
alan_g(It is harder to tell with plasm or fingerpaint)13:25
alf_alan_g: perhaps changing the clear color in gl_renderer.cpp will give more visual clues (e.g. glClearColor(1.0f, 1.0f, 1.0f, 1.0f); before glClear())13:26
alf_alan_g: also I wonder... we are probably getting an argb surface from mir but are using an EGL config without alpha13:27
alf_alan_g: two things to try: 1. force nested mir to create an opaque mir surface with mir_pixel_format_xbgr13:30
alf_alan_g: (and separately) 2. ask for a config with ALPHA13:30
alan_galf_: can we do that when the only supported format is mir_pixel_format_abgr_8888?13:31
alan_gWhat's the incantation for 2? "EGL_ALPHA_SIZE, 8,"?13:32
alf_alan_g: yes13:32
alan_gchanging the clear colour just changes the background - no obvious artefacts13:35
alf_alan_g: @mir_pixel_format we can, it is supported according to the Android code. Actually the pixel formats we are checking in nested mir are the pixel formats of the display (e.g. of a scanout surface). We need to check the surface formats for now (unless we want to use bypass, which is another story).13:35
alan_galf_: the pixel format seems to be an answer.13:47
alf_alan_g: good to hear, let's see if (2) works too13:51
alan_galf_: no - that doesn't work13:55
alf_alan_g: is the background color also more faint?13:56
alan_galf_: I reverted that change - but don't remember there being a difference. Am checking the pixel format logic - as forcing argb also seems to work.13:58
alan_gNo that was a mistake.14:11
alan_gI'll check the background14:11
alan_galf_: no change to the background colour.14:17
dandraderkgunn, I'm knee deep in the work of modifying android-input to support gesture accept/reject. I wonder if I should join mir daily standups so that people are aware of what I'm doing14:22
kgunnmight not be a bad idea dandrader ....altho you'll have encourage racarr to join if you want him there (it's an 8am for him...he'll make it on demand :)14:23
kgunndandrader: put you on the invite...its in 30 minues14:24
kgunnminutes even14:24
dandraderhmm, right. indeed the main point is in having racarr aware of it14:25
dandraderkgunn, ^14:25
alan_galf_: requesting egl config with alpha works. but only with glClearColor(_, _, _, 1.0f)14:29
alan_gSo because I'd reverted the glClearColor() call it didn't14:30
alan_galf_: so I have two fixes and too little knowledge to chose the best.14:32
alan_g1. Add glClearColor(0.0f, 0.0f, 0.0f, 1.0f); and EGL_ALPHA_SIZE, 8,14:32
alan_g2. use mir_pixel_format_xbgr_8888 regardless14:33
alan_galf_: is there a 3?14:33
alf_alan_g: nothing comes to mind... I think it makes sense for nested mir to draw to an opaque surface, since it is its "framebuffer" (host mir renders to an opaque buffer too). I don't think we currently have a use case for nested mir needing selective translucency.14:37
alan_galf_: OK, does it make sense for the glClearColor(0.0f, 0.0f, 0.0f, 1.0f) to stay in GLRenderer::clear()?14:38
alan_gOr is there a better place in the nested code?14:39
alf_alan_g: of course, ideally, we won't hardcode to xbgr_8888, but search the formats instead for a supported opaque format.14:41
alf_alan_g: as long as our "framebuffer" surfaces are opaque, setting the clear color alpha to 1.0f doesn't make a difference14:42
alan_galf_: I understand that, but do we have a suitable list of formats to search?14:51
alf_alan_g: mir_connection_get_available_surface_formats14:52
alan_galf_: I'll have a look there.14:53
=== sam113101 is now known as sam113101_afk
kgunnkdub: mornin' you on ?15:27
kdubkgunn, yep15:28
kdubgood morning15:28
kgunnkdub: hey so pending is all good (sort of)...15:28
kgunnflash, then apt-get dist-upgrade it....then rm surfaceflinger, mod env file, etc15:28
kgunnbasically...our #1 is the little white flickers15:29
kgunnhttp://www.youtube.com/watch?v=HaPKxLh9_So15:29
kgunnkdub: ^15:29
kdubkgunn, i see...15:30
kdubhaven't seen that before15:30
kdubwill look of course15:30
kgunnkdub: gerry says it doesn't exist on GN...and actually...i have always seen it on N415:30
kdubyeah, looks like something framebuffer related perhaps15:31
kgunntvoss said it wasn't in this video https://plus.google.com/u/0/photos/117745549829232162250/albums/5922939740350969137/5922939748109840754?authkey=CMau8ZXwtKyjuwE15:31
kgunnbut if you look real close....it was there15:32
kgunnits 2 weeks old...so yeah...15:32
kgunni'm thinkin' some niggling android fb thing15:32
kdubkgunn, when we say flash these days... is that 'cdimage-touch' or 'ubuntu-system'15:34
kdubi don't really know the different :-[15:34
kgunncdimage-touch kdub15:35
kdubkgunn, ok, thanks15:35
kgunnkdub: at least i 've seen some struggles with systemimage....but if you want to try ....do this https://www.stgraber.org/2013/09/05/ubuntu-touch-system-images-now-default/15:38
kgunngreyback: you've been doing cdimage as i have right ?15:38
greybackkgunn: I've been using it, yes15:39
kgunngreyback: do you have any idea what touch /home/phablet/.display-mir is ?15:39
greybackkgunn: yes, that's the switch used to decide whether to boot in SF mode, or Mir15:39
greybackif that file exists, it boots Mir, else..15:40
=== sam113101_afk is now known as sam113101
kgunngreyback: is it shearly the file existing ? or does it need content?15:54
kdubgood morning racarr15:55
alan_galf_: Does this make sense? https://code.launchpad.net/~alan-griffiths/mir/multiwin-fix-for-nested/+merge/18553515:56
greybackkgunn: just the file existing15:56
davmor2kgunn: there is an email that says just touch the file and then sergiusens  also said as much,  the operation of the gfx is slower and jumpier with the file in place too15:57
davmor2kgunn: you have to reboot after creating the file15:58
kgunndavmor2: hmmm15:58
greybackkgunn: yep, sorry reboot is needed after creating/deleting the file15:58
kgunndavmor2: the way i am running...mod'ing the environment file for the qpa to be ubuntumirclient & deleting surf flinger15:58
kgunnwith good results15:58
kgunnwondering if using the .display-mir is not quite right15:59
greybackkgunn: none of that is necessary now, that "touch /home/phablet/.display-mir" command looks after all that for you15:59
kgunngreyback: yeah...just wondering, so many complaints with that...15:59
kgunnvs old way15:59
greybackkgunn: really? What problems are people having?16:00
kgunndavmor2: ^ can you share16:00
davmor2greyback: gfx transitions are slow, opening contacts from the launcher has locked the screen repeatedly16:01
greybackdavmor2: you using a Galaxy Nexus?16:01
davmor2greyback: Yeap16:01
racarrMorning16:01
greybackdavmor2: unfortunately the slow gfx is a Mig bug, being worked on I believe16:02
greybackdavmor2: crashiness is probably my problem16:02
greybackdavmor2: all you're doing is launching the contacts apps from the launcher, yes?16:02
davmor2greyback: let me go through the steps once more to confirm and I'll throw a bug together for it16:03
greybackdavmor2: appreciated, thank you. Please log against "unity-mir"16:03
davmor2greyback: any logs that would be useful?16:04
greybackdavmor2: the contents of $HOME/.cache/upstart/unity8.log would be great16:04
davmor2greyback: no worries give me about 10 minutes16:04
greybackcheers16:04
* alan_g decides it is time to prepare laptop and netbook for sprint 16:05
kduboh yeah, i should do that too :)16:05
kdubmy quarterly 'upgrade the laptop for the sprint!'16:05
kgunndavmor2: funny kdub was just asking me about my post on performance GN vs N416:06
kgunndavmor2: https://plus.google.com/116997345010659023379/posts/cWSUVkvpGax16:06
kgunnGN is a dog for oh so many reasons16:06
davmor2kgunn: yeah but at the time it was the phone I could afford :)16:08
davmor2greyback: I think I have it nailed now it's if you drag the launcher out while the app is still loading.  I.e. while contacts is still light grey (before the contacts info/title loads) open the launcher again.   It probably happened on the Surface flinger too but didn't present due to the addition speed16:12
greybackdavmor2: good observation. I'll try to repo shortly (compiling)16:14
racarrricmm: I am moving the screen blanking branch to lp:~robertcarr/mir/dpms-with-screen-blanking16:16
racarrcontains the DPMS base too16:16
ricmmok great16:18
davmor2greyback: https://bugs.launchpad.net/unity-mir/+bug/122507716:27
ubot5`Launchpad bug 1225077 in unity-mir "Maguro: Opening launcher before an app is fully loaded crashes the gfx" [Undecided,New]16:27
greybackdavmor2: thank you!16:27
* greyback needs to reboot, bbiab16:30
racarrkdub: I am just finishing off my unit tests for android screen blanking16:31
racarrwant a test like....uh...well that just tests display::Configure16:31
racarrDisplay::configure oO16:31
racarrapplies the PowerMode to the DisplayBuffers16:32
racarrfromt eh configuration16:32
kdubracarr, integration test?16:32
racarrIs there a test fixture that deals already with mocking the Display buffers?16:32
kdubthere's one that actually drives the display :)16:32
racarrkdub: no I think its a unit test on android_display16:32
racarrthat, uses a mock framebuffer window, and a stub display buffer factory that returns mock display buffers16:32
kdubkgunn, been playing with this for a while, haven't seen the flicker yet16:33
racarrI saw the flicker the last time I set up unity-mir (~2 days)16:33
kdubhmm, is it always white like I saw in the video?16:33
racarrno16:34
racarrok well actually I have seen two things16:34
kduboh, just saw a tear16:35
racarr1 week or so ago I was seieng some "flickering" which actually semeed to be the app underneath the shell bubbling up a frame16:35
racarrand then, 2 days ago was seeing16:35
racarrtearing16:35
racarrbut nothing I would call "flickering" I guess16:35
racarrjust tearing16:35
kdublike a split screen vertical tear16:35
racarroh16:35
racarrerr16:35
racarrdo you mean a horizontal tear from missign vsync16:35
racarror an actual vertical tear16:36
kgunnkdub: open up some apps16:36
kgunnmaybe ?16:36
kdubkgunn, just saw it16:36
kdubits pretty similar to things i've seen from hwc before... have to dig a bit16:36
kdubour demos should have a 'bank' of animations to select from on the command line16:37
kdubespecially animations that are well-known to expose visual problems16:37
kdublike... scrolling :)16:37
racarrhow about we make that my new job, writing animations in the demo clients16:38
racarrshould take me like 2-3 months, real intense focus16:38
racarrok thanks kgunn16:38
kdubhey, i thought of it! my job!16:38
kdub:)16:38
kgunnu guys16:39
racarr:p16:39
alan_gI think the boss wants to steal that task16:39
=== dandrader is now known as dandrader|lunch
kgunn:)17:23
mlankhorstshake it17:56
mlankhorstwe need the full compiz fusion set of plugins ;)17:56
mlankhorstwobbly windows you give some acceleration and watch it fly over the screen17:57
* greyback eow18:11
=== dandrader|lunch is now known as dandrader
racarrLunch!18:39
* kdub lunch19:12
racarrback19:30
=== dandrader is now known as dandrader|afk
* kdub back19:46
=== dandrader|afk is now known as dandrader
kgunnkdub any news?20:08
kdubno, keep hitting walls getting into a test/compile/test cycle20:09
kdubit looks like something hwc-related though to me20:09

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!