From 4491f0a9711fdacf8112a407c0e1376be0854aa1 Mon Sep 17 00:00:00 2001 From: Chia-I Wu Date: Sat, 22 Feb 2014 22:53:04 +0800 Subject: [PATCH] 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. --- src/gallium/winsys/intel/drm/intel_drm_winsys.c | 2 -- 1 file changed, 2 deletions(-) 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; -- 2.30.2