[Bug,99158] vdpau segfaults and gpu locks with kodi on R9285
diff mbox

Message ID bug-99158-502-VDnQoYa8G5@http.bugs.freedesktop.org/
State New
Headers show

Commit Message

bugzilla-daemon@freedesktop.org Jan. 4, 2017, 10:18 a.m. UTC
https://bugs.freedesktop.org/show_bug.cgi?id=99158

--- Comment #6 from Marek Olšák <maraeo@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:

       return VDP_STATUS_NO_IMPLEMENTATION;

Patch
diff mbox

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))