[Bug 99158] vdpau segfaults and gpu locks with kodi on R9285
bugzilla-daemon at freedesktop.org
bugzilla-daemon at freedesktop.org
Wed Jan 4 10:18:48 UTC 2017
https://bugs.freedesktop.org/show_bug.cgi?id=99158
--- Comment #6 from Marek Olšák <maraeo at gmail.com> ---
We could get a race if vlVdpOutputSurfaceDMABuf is called from a different
thread than the context is normally used with. Can that happen?
You can try to test this:
diff --git a/src/gallium/state_trackers/vdpau/output.c
b/src/gallium/state_trackers/vdpau/output.c
index 64574b2..96474fb 100644
--- a/src/gallium/state_trackers/vdpau/output.c
+++ b/src/gallium/state_trackers/vdpau/output.c
@@ -804,7 +804,7 @@ VdpStatus vlVdpOutputSurfaceDMABuf(VdpOutputSurface
surface,
whandle.type = DRM_API_HANDLE_TYPE_FD;
pscreen = vlsurface->surface->texture->screen;
- if (!pscreen->resource_get_handle(pscreen, vlsurface->device->context,
+ if (!pscreen->resource_get_handle(pscreen, NULL,
vlsurface->surface->texture, &whandle,
PIPE_HANDLE_USAGE_READ_WRITE))
return VDP_STATUS_NO_IMPLEMENTATION;
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/dri-devel/attachments/20170104/aec499f9/attachment-0001.html>
More information about the dri-devel
mailing list