[Mesa-dev] [PATCH 13/23] targets/dri: Add __driDriverGetExtensions_freedreno symbol
Emil Velikov
emil.l.velikov at gmail.com
Tue Jun 17 11:38:29 PDT 2014
Identical to previous two commits - will bring us a step closer
to megadrivers.
Cc: Rob Clark <robclark at freedesktop.org>
Signed-off-by: Emil Velikov <emil.l.velikov at gmail.com>
---
src/gallium/auxiliary/target-helpers/inline_drm_helper.h | 12 ++++++++++++
src/gallium/targets/dri/Makefile.am | 5 +++++
2 files changed, 17 insertions(+)
diff --git a/src/gallium/auxiliary/target-helpers/inline_drm_helper.h b/src/gallium/auxiliary/target-helpers/inline_drm_helper.h
index 69949e8..e0af524 100644
--- a/src/gallium/auxiliary/target-helpers/inline_drm_helper.h
+++ b/src/gallium/auxiliary/target-helpers/inline_drm_helper.h
@@ -203,6 +203,18 @@ pipe_vmwgfx_create_screen(int fd)
#endif
#if defined(GALLIUM_FREEDRENO)
+#if defined(DRI_TARGET)
+#include "dri_screen.h"
+
+const __DRIextension **__driDriverGetExtensions_freedreno(void);
+
+PUBLIC const __DRIextension **__driDriverGetExtensions_freedreno(void)
+{
+ globalDriverAPI = &galliumdrm_driver_api;
+ return galliumdrm_driver_extensions;
+}
+#endif
+
static struct pipe_screen *
pipe_freedreno_create_screen(int fd)
{
diff --git a/src/gallium/targets/dri/Makefile.am b/src/gallium/targets/dri/Makefile.am
index 706a1bd..9cb02de 100644
--- a/src/gallium/targets/dri/Makefile.am
+++ b/src/gallium/targets/dri/Makefile.am
@@ -23,6 +23,11 @@ AM_CPPFLAGS += \
-DDRI_TARGET
endif
+if HAVE_GALLIUM_FREEDRENO
+AM_CPPFLAGS += \
+ -DDRI_TARGET
+endif
+
dridir = $(DRI_DRIVER_INSTALL_DIR)
dri_LTLIBRARIES = gallium_dri.la
--
2.0.0
More information about the mesa-dev
mailing list