00:41jenatali: Ugh, silly bridge not authenticating for me...
00:41jenatali: Anyway, \o/ GL4.4 is dine
00:41jenatali: Done*
00:41karolherbst: noice
00:41karolherbst: congratz
00:41jenatali: Should probably be able to get 4.6 next week :)
00:45kisak: historically, 4.5 -> 4.6 is not an easy increment
00:45jenatali: kisak: For new drivers inside Mesa? Or just for GL drivers in general?
00:46jenatali: Seems like the hard part is SPIR-V, which... seems like it should be pretty straightforward
00:46kisak: I'm going off memory and the time it took for other drivers in mesa to get it bolted together
00:48jenatali: Right, seems like the first one or two is where the difficulty would be. I'm hoping that I can just leverage the infrastructure that was built at the time
00:59mareko: should be easy now
16:58strobo5: hi
17:00strobo5: first time here - I'm looking into the VC4 KMS kernel driver and I think this might the right place to ask for help. I'm just learning about DRM.. and trying to solve an issue
17:00strobo5: right now I'm trying to get the current content of 'drm_connector_state' in the VC4 driver, but I think with libdrm from user space I can't do that, or can I?
17:28emersion: strobo5: can you explain what you're trying to do? what info do you need from where, and why?
17:41strobo5: emersion: sure! The issue is that the margin setting on the composite video output does not seem to work. It's a Raspberry Pi. Its firmware passes this to the kernel: 'video=Composite-1:720x576@50i,margin_left=96,...', and I want to see if it becomes part of any of the driver's data structures.
17:42strobo5: What I understand is that each connector has these margins in its 'drm_connector_state', and the CRTC queries these when it is attached to that connector
17:42emersion: oh, so you don't need to actually access anything from libdrm
17:42emersion: just debug the driver
17:43emersion: hm, i've no idea how that gets passed down to the driver
17:43strobo5: I guess user space does not or should not know about these margins and lets the driver handle it?
17:44emersion: yeah
17:46strobo5: makes sense!
17:47strobo5: thanks for your 2020 foss-north presentation btw, this was a nice intro for looking at things from user space :)
17:47emersion: it seems to be handled in
17:47emersion: drm_modes.c:2214: } else if (!strncmp(option, "margin_left", delim - option)) {
17:47emersion: oh - glad to hear it's useful! :)
17:48emersion: i should update it with latest libdrm functions
17:48emersion: i've introduced a few helpers which simplify things
17:49strobo5: cool!
17:55strobo5: I think this function in drm_modes.c is what I had seen in one session and was never able to find again :D
19:11strobo5: hmm so during drm_connector_init(), the kernel cmdline is checked for these options, but this doesn't seem to work - in dmesg with enabled DRM_DEBUG_KMS printks, I see "looking for cmdline mode on connector 51" and it seems to find none
19:12strobo5: to further investigate this I would add more DRM_DEBUG_KMS("") - is this the way to go?
19:14emersion: yeah, or some more printk
19:16strobo5: alright, that's for tomorrow though, thanks for helping :)
19:16emersion: np!
21:54i509vcb: eglCreateSync states that the default value of EGL_SYNC_STATUS is EGL_UNSIGNALED. However it seems that when I create an EGLSync and check if it is signalled immediately EGL says the signal is already signalled
21:56i509vcb: eglClientWaitSync however does behave correctly
22:30i509vcb: Mesa seems to do a client wait under the hood when checking if a sync is signalled immediately after creation? https://gitlab.freedesktop.org/mesa/mesa/-/blob/main/src/egl/main/eglsync.c#L126-133
22:37HdkR: i509vcb: If you follow the chain, it ends up going all the way to the driver backend to set if it is signaled or not. So backend driver bug?
22:37i509vcb: I think it's a driver bug from a bit more stepping
22:38i509vcb: Although it's occuring on asahi and amd
23:53i509vcb: I'm struggling to find documentation for drmSyncobjWait