From e8626e3b317035352148a6af15a2b781eba6e707 Mon Sep 17 00:00:00 2001 From: Christian Gmeiner Date: Fri, 23 Dec 2016 21:10:29 +0100 Subject: imx: gallium driver for imx-drm scanout driver Changes from V1 -> V2: - updated Copyright - added $(top_srcdir)/src/gallium/winsys to include path (suggested by Emil) - adapted driver to new renderonly API Signed-off-by: Christian Gmeiner Acked-by: Emil Velikov --- src/gallium/targets/dri/Makefile.am | 1 + src/gallium/targets/dri/target.c | 8 ++++++++ 2 files changed, 9 insertions(+) (limited to 'src/gallium/targets/dri') diff --git a/src/gallium/targets/dri/Makefile.am b/src/gallium/targets/dri/Makefile.am index e4404cc50e0..bca747faa4a 100644 --- a/src/gallium/targets/dri/Makefile.am +++ b/src/gallium/targets/dri/Makefile.am @@ -92,6 +92,7 @@ include $(top_srcdir)/src/gallium/drivers/vc4/Automake.inc include $(top_srcdir)/src/gallium/drivers/virgl/Automake.inc include $(top_srcdir)/src/gallium/drivers/etnaviv/Automake.inc +include $(top_srcdir)/src/gallium/drivers/imx/Automake.inc include $(top_srcdir)/src/gallium/drivers/softpipe/Automake.inc include $(top_srcdir)/src/gallium/drivers/llvmpipe/Automake.inc diff --git a/src/gallium/targets/dri/target.c b/src/gallium/targets/dri/target.c index 98dfb15dbd2..441a27ff637 100644 --- a/src/gallium/targets/dri/target.c +++ b/src/gallium/targets/dri/target.c @@ -165,6 +165,14 @@ PUBLIC const __DRIextension **__driDriverGetExtensions_i965(void) #if defined(GALLIUM_ETNAVIV) +const __DRIextension **__driDriverGetExtensions_imx_drm(void); + +PUBLIC const __DRIextension **__driDriverGetExtensions_imx_drm(void) +{ + globalDriverAPI = &galliumdrm_driver_api; + return galliumdrm_driver_extensions; +} + const __DRIextension **__driDriverGetExtensions_etnaviv(void); PUBLIC const __DRIextension **__driDriverGetExtensions_etnaviv(void) -- cgit v1.2.3