diff options
Diffstat (limited to 'src/gallium/winsys/svga')
-rw-r--r-- | src/gallium/winsys/svga/drm/vmw_screen_dri.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/gallium/winsys/svga/drm/vmw_screen_dri.c b/src/gallium/winsys/svga/drm/vmw_screen_dri.c index 511cca73aea..6323a8ae2c4 100644 --- a/src/gallium/winsys/svga/drm/vmw_screen_dri.c +++ b/src/gallium/winsys/svga/drm/vmw_screen_dri.c @@ -163,6 +163,12 @@ vmw_drm_surface_from_handle(struct svga_winsys_screen *sws, int ret; int i; + if (whandle->type != DRM_API_HANDLE_TYPE_SHARED) { + vmw_error("Attempt to import unknown handle type %d\n", + whandle->type); + return NULL; + } + /** * The vmware device specific handle is the hardware SID. * FIXME: We probably want to move this to the ioctl implementations. |