/srv/irclogs.ubuntu.com/2013/05/07/#ubuntu-mir.txt

=== mmrazik is now known as mmrazik|afk
=== mmrazik|afk is now known as mmrazik
mlankhorstRAOF: oh btw, http://people.canonical.com/~mlankhorst/plymouth-mir.patch08:27
RAOFmlankhorst: Oh, cool. Did you work out how input works?08:27
mlankhorstnot yet08:27
RAOFYou get a callback for your input events (you need to pass that callback to the server)08:28
mlankhorstRAOF: in what thread does the callback run?08:28
RAOFIn surface creation.08:28
RAOFIt runs in a random thread.08:28
RAOFI hope you're threadsafe! :)08:28
mlankhorstRAOF: but what if I want a fd + poll + call a function to run in the main thread08:28
RAOF¹: Not actually random, but not under your control.08:29
mlankhorstthat WILL be a common way of doing things..08:29
RAOFmlankhorst: Then you get to do something like hw/xfree86/xmir/xmir-thread-proxy.c at the moment08:29
mlankhorstif xserver does it, plymouth does it, gtk supports it08:29
tvossRAOF, the callback will always only run on one thread, the client side is not using a threadpool08:29
mlankhorsttvoss: missing the point, it's not under the client's control :-)08:30
RAOFtvoss: Right, but the thread is not under the caller's control.08:30
tvossmlankhorst, RAOF fair enough08:30
mlankhorstI think for now I'll wait then until there's proper threadless support08:31
mlankhorsteven pulseaudio allows you to override it :P08:31
RAOF*Internally* input is on a fd, which the client library polls, so there's no particular reason why we can't expose a pollable fd, and I expect we shall.08:31
* RAOF goes to settle Zoë08:31
mlankhorstRAOF: yeah this is why I won't mind waiting a bit longer, I can do it sooner but it relies on nasty hacks :)08:32
=== francisco is now known as Guest2384
kdubmorning folks, status, working on internal client/inprocess-egl for android15:07
kdubspecifically, expanding the platform abstraction to accomodate android15:07
kdubalso mp-ed a unification of our types around native buffer handles15:08
kdubare we having mir sessions at v-uds next week?15:29
tvosskgunn, ping15:46
kgunntvoss: pong15:46
tvosskgunn, do you have any mir sessions planned next week?15:46
kgunntvoss: kdub its on my todo....was thinking about breaking out the thrash testing stuff we added recently15:47
kgunnits a decent size topic15:47
kgunnand fairly unplanned15:47
kgunnbut with semi-firm ideas15:47
kgunnabout what we need15:47
kgunnso the todo part is just the bp wrangling15:48
kgunngetting on the agenda etc15:48
tvosskgunn, cool, let me know if I can help15:48
kgunntvoss: kdub racarr_ open to suggestions too....lemme know if you have a topic you;d like to add15:48
tvosskgunn, input stack might be interesting, but other than knowledge transfer, I cannot think of topics15:49
kgunntvoss: that might be good....just couch it as an info sharing session rather than work planning15:49
kgunnracarr_: would you be cool with that? (since you'd likely get stuck driving :)15:50
=== mmrazik is now known as mmrazik|afk
kdubi kinda wish the c++ steering committee had just used 'sp' for 'shared_ptr'17:39
kdubracarr_, ping17:47
racarr_kdub: Hi :) What's up18:10
racarr_kgunn: Ok sounds fun :)18:10
racarr_<--Can't stay away from IRC18:11
kdubracarr_, seems the mesa inprocess egl platform always returns the same EGLNativeDisplayType, it wouldn't break anything if it returns a new one each time mg::Platform::shell_egl_display() is called, would it?18:13
racarr_No I don't think so18:19
racarr_maybe it breaks share lists between contexts? (not that we use it or have plans to)18:19
kdubyay, got in-process/internal-client on android to work20:37
kdubnow i just have to unbreak what i did to mesa ;-)20:37
racarr_kdub: yay20:48
RAOFracarr_: Please don't be breaking the EGL spec :)23:17
kdubhello RAOF23:19
kdubi'm trying to sort out the ownership story for mesa internal clients (as part of getting our platform abstraction to work for android clients)23:20
kdubwhy do we check for valid_displays in mir_egl_mesa_display_is_valid() ?23:21
RAOFBecause mesa's EGL implementation checks what gets passed in to eglCreateDisplay to determine what platform is being used.23:24
RAOFSo we need to be able to check if a random pointer is a valid Mir EGL display, so we can correctly initialise.23:26
kdubbut, really, we just need one EGLDisplay for all internal clients23:26
kdubright?23:26
RAOFProbably?23:27
RAOFI mean, there's nothing stopping Mir servers from using more than one EGLDisplay, but I don't see any particular value to them to do that.23:28
RAOFIt's unlikely to be a big deal if we say “shells get exactly one EGLDisplay”23:28
kdubyeah... we'll see how the abstraction looks once I iterate on the gbm platform code a bit more23:34
kdubseems though that an internal client can only establish one EGLDisplay connection though, that is23:50
kdubthe connection to the process in which it exists23:50
RAOFThat would seem to be reasonable.23:51
RAOFI'm not totally familiar with our in-process code. There doesn't seem to be any reason for an in-process shell to make more than one connection, though.23:52

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