pipe_transfer_unmap(pipe, transfer);
}
+static __DRIimageExtension driSWImageExtension = {
+ .base = { __DRI_IMAGE, 6 },
+
+ .createImageFromRenderbuffer = dri2_create_image_from_renderbuffer,
+ .createImageFromTexture = dri2_create_from_texture,
+ .destroyImage = dri2_destroy_image,
+};
+
/*
* Backend function for init_screen.
*/
&dri2ConfigQueryExtension.base,
&dri2FenceExtension.base,
&dri2NoErrorExtension.base,
+ &driSWImageExtension.base,
NULL
};
if (!configs)
goto fail;
+ screen->lookup_egl_image = dri2_lookup_egl_image;
+
return configs;
fail:
dri_destroy_screen_helper(screen);