From: Chia-I Wu Date: Sat, 22 Feb 2014 14:53:04 +0000 (+0800) Subject: ilo: fix DRM_API_HANDLE_TYPE_FD export X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=4491f0a9711fdacf8112a407c0e1376be0854aa1;p=mesa.git ilo: fix DRM_API_HANDLE_TYPE_FD export It can be exported by drm_intel_bo_gem_export_to_prime(). The code is already in winsys, just not enabled. --- diff --git a/src/gallium/winsys/intel/drm/intel_drm_winsys.c b/src/gallium/winsys/intel/drm/intel_drm_winsys.c index d246a5fdb59..13563578c0d 100644 --- a/src/gallium/winsys/intel/drm/intel_drm_winsys.c +++ b/src/gallium/winsys/intel/drm/intel_drm_winsys.c @@ -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;