summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorEmil Velikov <emil.l.velikov@gmail.com>2014-06-16 23:47:03 +0100
committerEmil Velikov <emil.l.velikov@gmail.com>2014-07-10 01:06:47 +0100
commitf48b06f89d62e4b7db3048a778d409f05d3dfc7b (patch)
treeddc9a9ec082e17905e041d4e79ca682e8fbbc01c /src
parent4cd1bb6a91eb7cd46d4f2e104e9a05924ed055a5 (diff)
downloadexternal_mesa3d-f48b06f89d62e4b7db3048a778d409f05d3dfc7b.zip
external_mesa3d-f48b06f89d62e4b7db3048a778d409f05d3dfc7b.tar.gz
external_mesa3d-f48b06f89d62e4b7db3048a778d409f05d3dfc7b.tar.bz2
targets/dri: Add __driDriverGetExtensions_freedreno symbol
Identical to previous two commits - will bring us a step closer to megadrivers. Cc: Rob Clark <robclark@freedesktop.org> Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com> Tested-by: Rob Clark <robclark@freedesktop.org> Tested-by: Thomas Helland <thomashelland90 at gmail.com> Acked-by: Tom Stellard <thomas.stellard@amd.com>
Diffstat (limited to 'src')
-rw-r--r--src/gallium/auxiliary/target-helpers/inline_drm_helper.h12
-rw-r--r--src/gallium/targets/dri/Makefile.am5
2 files changed, 17 insertions, 0 deletions
diff --git a/src/gallium/auxiliary/target-helpers/inline_drm_helper.h b/src/gallium/auxiliary/target-helpers/inline_drm_helper.h
index 131798c..6c9f15a 100644
--- a/src/gallium/auxiliary/target-helpers/inline_drm_helper.h
+++ b/src/gallium/auxiliary/target-helpers/inline_drm_helper.h
@@ -191,6 +191,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 4f4c0da..d5cbae5 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