zink: stub resource_from_handle
authorErik Faye-Lund <erik.faye-lund@collabora.com>
Fri, 12 Jul 2019 09:40:12 +0000 (11:40 +0200)
committerErik Faye-Lund <erik.faye-lund@collabora.com>
Mon, 28 Oct 2019 08:51:46 +0000 (08:51 +0000)
Acked-by: Jordan Justen <jordan.l.justen@intel.com>
src/gallium/drivers/zink/zink_resource.c

index 658774fcdf0ccc28c10edc9d41be675a1bc4fc43..8ce90bb50c42abda4c660cf7927e996aa48d34bb 100644 (file)
@@ -322,12 +322,22 @@ zink_resource_get_handle(struct pipe_screen *pscreen,
    return true;
 }
 
+static struct pipe_resource *
+zink_resource_from_handle(struct pipe_screen *pscreen,
+                 const struct pipe_resource *templat,
+                 struct winsys_handle *whandle,
+                 unsigned usage)
+{
+   return NULL;
+}
+
 void
 zink_screen_resource_init(struct pipe_screen *pscreen)
 {
    pscreen->resource_create = zink_resource_create;
    pscreen->resource_destroy = zink_resource_destroy;
    pscreen->resource_get_handle = zink_resource_get_handle;
+   pscreen->resource_from_handle = zink_resource_from_handle;
 }
 
 static bool