Leopold has quit [Remote host closed the connection]
frieder has joined #dri-devel
<glehmann>
jani: thanks
<jani>
glehmann: np, turned out to be simple
YuGiOhJCJ has quit [Quit: YuGiOhJCJ]
simon-perretta-img has quit [Ping timeout: 480 seconds]
simon-perretta-img has joined #dri-devel
kts has quit [Ping timeout: 480 seconds]
macromorgan has joined #dri-devel
Mangix has quit [Read error: Connection reset by peer]
Mangix has joined #dri-devel
<Hazematman>
Hey does anyone know of a portable way I can create a sync file from userspace in Linux? I'm looking at the `VK_KHR_external_fence_fd` & `VK_KHR_external_semaphore_fd` extensions for lavapipe and I think because of the "copy payload transference semantics" of sync files I could get away with returning a sync file that is always signaled for exporting a fence/semaphore? Right now I think I could do this using libdrm `drmSyncobjCreate` &
<Hazematman>
`drmSyncobjExportSyncFile`. But I want to try and figure out if there is a way I could do this without using drm at all
<dj-death>
Hazematman: you can do the ioctl yourself
<Hazematman>
dj-death: the drm ioctl? Or are you implying there is an ioctl to create sync files? I'm trying to avoid not just libdrm right now but the entire drm API so just doing the drm ioctl myself doesn't solve the problem if I don't have a drm driver available
<dj-death>
Hazematman: ah right
<dj-death>
I know IGT uses /dev/sw_sync
<dj-death>
but maybe you can't turn that on without being root
simon-perretta-img has quit [Ping timeout: 480 seconds]
simon-perretta-img has joined #dri-devel
tomeu has quit [Quit: irc_error]
tomeu has joined #dri-devel
tomeu has quit []
tomeu has joined #dri-devel
tomeu has quit []
tomeu1 has joined #dri-devel
dliviu has quit [Quit: Going away]
<Hazematman>
Did not know about `/dev/sw_sync` let me check that out and see if it works. Thanks dj-death !
dliviu has joined #dri-devel
heat is now known as Guest2511
heat has joined #dri-devel
Guest2511 has quit [Read error: Connection reset by peer]
<dj-death>
daniels: let me know if you're happy with !26797
tomeu1 is now known as tomeu
tomeu is now known as Guest2513
<daniels>
dj-death: c'est bon
<daniels>
/dev/sw_sync is not portable; you can use the drm functions to create a syncobj (which is a drm-only concept, not generic), but there is no generic way to materialise a sync_file from userspace and never will be
<daniels>
sync_file is explicitly only there to represent work which has already been committed to the hardware (or at least flushed down to the kernel) and can be relied upon to complete 'pretty quickly'; allowing userspace to control sync_files completely breaks that promise
heat has quit [Ping timeout: 480 seconds]
Guest2513 is now known as tomeu
<dj-death>
daniels: thanks :)
<daniels>
np!
<dj-death>
so now I have to fix the sphinx stuff
<daniels>
my condolences
kts has joined #dri-devel
kts has quit [Quit: Leaving]
rooq96 has left #dri-devel [#dri-devel]
Leopold has joined #dri-devel
kts has joined #dri-devel
Leopold has quit [Remote host closed the connection]
Leopold_ has joined #dri-devel
frieder has quit [Ping timeout: 480 seconds]
<Hazematman>
<daniels> "sync_file is explicitly only..." <- I don't really need a generic sync_file. Because of the quirks on how lavapipe/llvmpipe works and how the vulkan spec states that you can only export a sync file for a sync object that is signaled or queued to be signaled, the sync file that would be exported will always be signaled. Having the equivalent of `dma_fence_get_stub` from userspace would be useful in this case to get a sync file
<Hazematman>
that is always signaled
fab has quit [Quit: fab]
frieder has joined #dri-devel
simondnnsn has quit [Ping timeout: 480 seconds]
simondnnsn has joined #dri-devel
kzd has joined #dri-devel
Amber_Harmonia has quit [Ping timeout: 480 seconds]
fab has joined #dri-devel
simondnnsn has quit [Read error: Connection reset by peer]
simondnnsn has joined #dri-devel
<vsyrjala>
abhinav__: drm_dp_helper.c already has the vsc_sdp_log stuff. seems related. though someone could also start thinking about splitting things up in a more fine grained fashion i guess
frieder has quit [Ping timeout: 480 seconds]
bolson has joined #dri-devel
hansg has quit [Quit: Leaving]
Amber_Harmonia has joined #dri-devel
asriel has quit [Quit: Don't drink the water. They put something in it to make you forget.]
<jenatali>
I don't really have any opinions tbh. It just seems like all of those bitfields are set by gather_info
<karolherbst>
only some are
<karolherbst>
I think it makes sense to move it into gather_info, but then I think it's better to move everything in one go and not Cc: stable
<jenatali>
Fair enough
<karolherbst>
the patch is just to match GLs lowering and it was only added to radeonsi and I think that's the reason why the non deref variant doesn't have it anyway
<karolherbst>
so yeah.. probably want to clean it up
glennk has quit [Ping timeout: 480 seconds]
Leopold_ has joined #dri-devel
Leopold_ has quit [Remote host closed the connection]