ChanServ changed the topic of #wayland to: https://wayland.freedesktop.org | Discussion about the Wayland protocol and its implementations, plus libinput | register your nick to speak
c7s has quit [Quit: c7s]
modin has quit [Quit: ZNC 1.8.2 - https://znc.in]
columbarius has joined #wayland
co1umbarius has quit [Ping timeout: 480 seconds]
ahartmetz has joined #wayland
ahartmetz has quit [Quit: Konversation terminated!]
sych1ll has quit [Ping timeout: 480 seconds]
Seirdy has quit [Ping timeout: 480 seconds]
sychill has joined #wayland
jmdaemon has joined #wayland
nerdopolis has quit [Ping timeout: 480 seconds]
slattann has joined #wayland
hill has joined #wayland
Seirdy has joined #wayland
pounce has joined #wayland
pounce has quit [Remote host closed the connection]
pounce has joined #wayland
Company has quit [Quit: Leaving]
pounce has quit [Remote host closed the connection]
pounce has joined #wayland
pounce has quit [Remote host closed the connection]
pounce has joined #wayland
Arnavion has quit [Quit: Arnavion]
slattann has quit [Ping timeout: 480 seconds]
txtsd is now known as Guest1912
txtsd has joined #wayland
Guest1912 has quit [Ping timeout: 480 seconds]
slattann has joined #wayland
Arnavion has joined #wayland
pounce has quit [Remote host closed the connection]
pounce has joined #wayland
dcz_ has joined #wayland
hill has quit [Remote host closed the connection]
hill has joined #wayland
danvet has joined #wayland
tzimmermann has joined #wayland
ofourdan_ has left #wayland [#wayland]
ofourdan has joined #wayland
hill has quit []
progandy[m] has joined #wayland
hardening has joined #wayland
wv has joined #wayland
progandy[m] has quit []
jagan_ has joined #wayland
mbalmer has quit []
<pq> i509VCB, at least device major/minor numbers are not guaranteed stable across reboots. (I don't recall what the comparison is used for.) GPU hotplug/unplug have the same problem.
shankaru has joined #wayland
<pq> daniels, did we not discuss that already? I said it's fine if you add screaming instead of asserts too. In any case, let's discuss it in Gitlab once it's back to not split and forget.
<MrCooper> daniels: one thing I noticed reading protocol docs over the weekend is that destroying or unmapping a parent surface is supposed to unmap descendant surfaces; I wonder if that's supposed to be handled as the equivalent of attaching a NULL buffer, or something else?
<pq> daniels, I will object to having views for a surface mapped, when the surface is not mapped, because a mapped view *can* be visible and is not reliably always ignored. That's how I think the concepts should work.
<pq> "mapped" means: is present in the scenegraph with a defined position and z-order.
<pq> MrCooper, what do you meant by "equivalent"?
<MrCooper> I mean, should the compositor internally attach a NULL buffer to the descendant surfaces?
<pq> I don't see why, and it would break protocol state tracking.
<pq> MrCooper, to me, "has a non-NULL buffer attached last" is a necessary requirement for having a surface mapped, but not sufficient. A surface with content can be in unmapped state.
<MrCooper> k, thanks
<emersion> pq, xdg_surface doesn't really allow it (but other roles do)
<pq> emersion, allow what?
<emersion> ie, when you create an xdg_surface, it must not have a buffer attached
<emersion> i guess you can destroy the xdg_surface object, then the wl_surface would still have a buffer attached, and be unmapped
<pq> exactly
<pq> wl_surface retains its state, right?
<emersion> yea
<pq> so if you want to map again, you'd need to explicitly attach NULL buffer first
<emersion> things like cursors work differently
<pq> yes, because they are not xdg_surface, and do not have the map negotion hand-shake.
<pq> *negotiation
<pq> We *could* have "unmap causes the attached buffer to be forgotten", but I don't think that has ever been written down nor expected, so it would be a breaking change IMO.
<pq> at least if defined in wl_surface
<pq> it also wouldn't make always sense, e.g. with cursors
<pq> the mapped state of a cursor wl_surface might be a bit vague concept in the first place, because the compositor may choose to stop using that wl_surface at any time.
rasterman has joined #wayland
<jadahl> pq: it's more so that unmap without attach(null) does *not* forget the buffer, since (iirc) it's mentioned in xdg-shell that one must attach a null buffer before remapping a xdg_surface
<MrCooper> jadahl: reading that in the protocol docs made me wonder if mutter is correctly unmapping the descendants of destroyed or unmapped parent surfaces
<jadahl> MrCooper: a quick check makes it look like a subsurface will remove itself from the tree if its parent got destoryed, but perhaps not unmapped
<MrCooper> maybe it ends up kind of the same, since the descendants will no longer be reachable from any toplevel?
<jadahl> subsurfaces attach themself to the toplevel (i.e. xdg-surface), not to the parent though
<jadahl> i mean, in mutter/clutter
<jadahl> before the "flattening" of the actor tree, it probably worked
___nick___ has joined #wayland
alarumbe has quit [Ping timeout: 480 seconds]
<zubzub> do I need a library like libseat to take care of permissions if I want to make sure/take care of gpu device permissions when using linux_dmabuf_v1/wl_drm as non-root?
<zubzub> I've implemented wlroots linux_dmabuf_v1 but the client seems to get a permission error about the device I give it (I don't use libseat for now and have my own device lookup function)
<zubzub> (not sure about permission)
<emersion> you need to only open render nodes
<emersion> libseat wouldn't help, since i assume another DRM master is running?
<zubzub> yes
<emersion> render nodes don't need permissions
<zubzub> I don't need to render to a screen
<zubzub> ok
<emersion> primary nodes are restricted
<emersion> the wlroots impl works without any special permission FWIW
<zubzub> yeah, I'm trying to figure out what's wrong. I open /dev/dri/renderD128, do the whole egl setup (based on wlroots implementation), all works fine, pass the whole egl setup (device & context) to gstreamer, who's happy with it. Use that setup to setup linux_dmabuf_v1 (also wlroots implementation), yet when I run gtk4, it fallbacks to sh, and when I run weston-simple-dmabuf-feedback, it get's an assertion
<zubzub> error `udev_dev && "error: failed to create udev device"' :(
<pq> zubzub, are you sure the dev_t you send over protocol comes out right?
<zubzub> probably not, how can I check?
<pq> print the values on both side? Check WAYLAND_DEBUG=1?
<emersion> there is example code in the linux-dmabuf feedback document
<emersion> WAYLAND_DEBUG=1 won't print wl_arrays
<pq> d'oh
<zubzub> [3399005.478] zwp_linux_dmabuf_feedback_v1@8.main_device(array[8])
<zubzub> should that be a human readable string?
<pq> but yeah, since it's transmitted in a wl_array, I'd guess you might have something odd in it.
<pq> no
<emersion> it's a dev_t
<emersion> on linux, you can extract MINOR/MAJOR out of it
<zubzub> ok because it's not readable when I checked it last
<emersion> and what it matches in /dev/dri
<zubzub> aha
<pq> a simple dev_t stored in a wl_array
<pq> *single
<emersion> although 8 sounds like a lot?
<emersion> ah no
<emersion> dev_t is uint64_t on linux
<pq> zubzub, see 'man major' for the minor() and major() macros you can use on a dev_t.
<zubzub> ok
<pq> ls -l /dev/dri/renderD128 should tell you what the expected major and minor are
<pq> 226, 128 for that one
<zubzub> interesting, I get 136:17 in my application (instead of 226, 128)
<zubzub> that seems so completely... wrong :s
<zubzub> ok will dig into it later, lunch now
saumon has joined #wayland
alarumbe has joined #wayland
flacks has quit [Quit: Quitter]
flacks has joined #wayland
slattann has quit [Ping timeout: 480 seconds]
slattann has joined #wayland
<zubzub> there I fixed it: westfield_drm->drm_fd = fd;
<zubzub> _o>
<pq> congrats :-)
jagan_ has quit [Remote host closed the connection]
MajorBiscuit has joined #wayland
Company has joined #wayland
shankaru has quit [Quit: Leaving.]
jmdaemon has quit [Ping timeout: 480 seconds]
mclasen has joined #wayland
dottedmag has quit [Quit: QUIT]
dottedmag has joined #wayland
andyrtr_ has joined #wayland
andyrtr has quit [Read error: Connection reset by peer]
andyrtr_ is now known as andyrtr
akselmo has joined #wayland
rv1sr has joined #wayland
shankaru has joined #wayland
mclasen has quit [Remote host closed the connection]
mclasen has joined #wayland
floof58 is now known as Guest1943
floof58 has joined #wayland
Guest1943 has quit [Ping timeout: 480 seconds]
fcarrijo has joined #wayland
<daniels> (GitLab is back, for those not following #dri-devel)
gchamp has quit [Remote host closed the connection]
fcarrijo has quit []
shankaru has quit [Quit: Leaving.]
wv has quit [Ping timeout: 480 seconds]
<tleydxdy> nice
zebrag has joined #wayland
slattann has quit []
evon3778 has joined #wayland
modin has joined #wayland
mclasen has quit []
CodeSpelunker has joined #wayland
mclasen has joined #wayland
shankaru has joined #wayland
ybogdano has joined #wayland
Seirdy has quit []
MajorBiscuit has quit [Ping timeout: 480 seconds]
ybogdano has quit [Ping timeout: 480 seconds]
reillybrogan_ has quit []
reillybrogan has joined #wayland
ahartmetz has joined #wayland
ybogdano has joined #wayland
___nick___ has quit []
___nick___ has joined #wayland
___nick___ has quit []
___nick___ has joined #wayland
CodeSpelunker has quit [Ping timeout: 480 seconds]
Seirdy has joined #wayland
shankaru has quit [Quit: Leaving.]
CodeSpelunker has joined #wayland
PuercoPop has joined #wayland
ybogdano is now known as Guest1956
ybogdano has joined #wayland
Guest1956 has quit [Ping timeout: 480 seconds]
txtsd has quit [Ping timeout: 480 seconds]
txtsd has joined #wayland
tzimmermann has quit [Quit: Leaving]
ybogdano is now known as Guest1958
ybogdano has joined #wayland
shankaru has joined #wayland
Guest1958 has quit [Ping timeout: 480 seconds]
CodeSpelunker has quit [Ping timeout: 480 seconds]
Ludack has joined #wayland
jmdaemon has joined #wayland
ahartmetz has quit [Quit: Konversation terminated!]
___nick___ has quit [Ping timeout: 480 seconds]
CodeSpelunker has joined #wayland
Ludack has quit []
CodeSpelunker has quit [Ping timeout: 480 seconds]
neonking_ has joined #wayland
neonking has quit [Ping timeout: 480 seconds]
neonking_ has quit [Remote host closed the connection]
neonking_ has joined #wayland
eroux_ has joined #wayland
eroux has quit [Ping timeout: 480 seconds]
rasterman has quit [Quit: Gettin' stinky!]
nerdopolis has joined #wayland
rasterman has joined #wayland
danvet has quit [Ping timeout: 480 seconds]
flacks has quit [Quit: Quitter]
shankaru has quit [Quit: Leaving.]
hergertme has quit [Remote host closed the connection]
hergertme has joined #wayland
fcarrijo has joined #wayland
neonking_ has quit [Ping timeout: 480 seconds]
neonking has joined #wayland
ybogdano is now known as Guest1973
ybogdano has joined #wayland
rv1sr has quit []
Guest1973 has quit [Ping timeout: 480 seconds]
Lucretia-backup has joined #wayland
Lucretia has quit [Read error: Connection reset by peer]
ybogdano is now known as Guest1974
ybogdano has joined #wayland
Company has quit [Ping timeout: 480 seconds]
Guest1974 has quit [Ping timeout: 480 seconds]
fcarrijo has quit []
Company has joined #wayland
nico_nico has joined #wayland
nurupo has quit [Ping timeout: 480 seconds]
eroc1990 has quit [Quit: The Lounge - https://thelounge.chat]
d10n has quit [Ping timeout: 480 seconds]
fullstop_ has quit [Ping timeout: 480 seconds]
zamundaaa has quit [Ping timeout: 480 seconds]
romangg has quit [Ping timeout: 480 seconds]
akselmo has quit [Ping timeout: 480 seconds]
dos1 has quit [Ping timeout: 480 seconds]
dottedmag has quit [Ping timeout: 480 seconds]
d10n has joined #wayland
mupuf has quit [Ping timeout: 480 seconds]
nurupo has joined #wayland
fullstop has joined #wayland
mclasen has quit []
mclasen has joined #wayland
nico_nico has quit [Ping timeout: 480 seconds]
ivyl has quit [Ping timeout: 480 seconds]
dos1 has joined #wayland
ivyl has joined #wayland