imx: gallium driver for imx-drm scanout driver
[mesa.git] / src / gallium / auxiliary / target-helpers / drm_helper.h
index e056c58ba96961bfc10e2d91dea81946e8e80927..f847b17dd685e1aa7ca7126836a186b682ad79d3 100644 (file)
@@ -289,4 +289,28 @@ pipe_etna_create_screen(int fd)
 
 #endif
 
+#ifdef GALLIUM_IMX
+#include "imx/drm/imx_drm_public.h"
+
+struct pipe_screen *
+pipe_imx_drm_create_screen(int fd)
+{
+   struct pipe_screen *screen;
+
+   screen = imx_drm_screen_create(fd);
+   return screen ? debug_screen_wrap(screen) : NULL;
+}
+
+#else
+
+struct pipe_screen *
+pipe_imx_drm_create_screen(int fd)
+{
+   fprintf(stderr, "imx-drm: driver missing\n");
+   return NULL;
+}
+
+#endif
+
+
 #endif /* DRM_HELPER_H */