st/xa: missing handle type
authorRob Clark <robclark@freedesktop.org>
Mon, 10 Feb 2014 15:44:02 +0000 (10:44 -0500)
committerRob Clark <robclark@freedesktop.org>
Sun, 16 Feb 2014 13:36:23 +0000 (08:36 -0500)
DRM_API_HANDLE_TYPE_SHARED is zero, so doesn't actually fix anything.
But we shouldn't rely on SHARED handle type being zero.

Signed-off-by: Rob Clark <robclark@freedesktop.org>
src/gallium/state_trackers/xa/xa_tracker.c

index d3601c6bfd3cb03c373f14a23de3b8c31bb6c074..9add5843c73a56d2f01089b2fbc87ca39cd42824 100644 (file)
@@ -368,6 +368,7 @@ xa_surface_from_handle(struct xa_tracker *xa,
 {
     struct winsys_handle whandle;
     memset(&whandle, 0, sizeof(whandle));
+    whandle.type = DRM_API_HANDLE_TYPE_SHARED;
     whandle.handle = handle;
     whandle.stride = stride;
     return surface_create(xa, width, height, depth, stype, xa_format, flags, &whandle);