ilo: fix DRM_API_HANDLE_TYPE_FD export
authorChia-I Wu <olvaffe@gmail.com>
Sat, 22 Feb 2014 14:53:04 +0000 (22:53 +0800)
committerChia-I Wu <olvaffe@gmail.com>
Mon, 10 Mar 2014 08:42:42 +0000 (16:42 +0800)
It can be exported by drm_intel_bo_gem_export_to_prime().  The code is already
in winsys, just not enabled.

src/gallium/winsys/intel/drm/intel_drm_winsys.c

index d246a5fdb595fcaa5826a834e8557cf458fba720..13563578c0d3dfb84c8bec7db683ca428a283709 100644 (file)
@@ -324,7 +324,6 @@ intel_winsys_export_handle(struct intel_winsys *winsys,
    case DRM_API_HANDLE_TYPE_KMS:
       handle->handle = ((drm_intel_bo *) bo)->handle;
       break;
-#if 0
    case DRM_API_HANDLE_TYPE_FD:
       {
          int fd;
@@ -334,7 +333,6 @@ intel_winsys_export_handle(struct intel_winsys *winsys,
             handle->handle = fd;
       }
       break;
-#endif
    default:
       err = -EINVAL;
       break;