targets/dri: Add __driDriverGetExtensions_freedreno symbol
authorEmil Velikov <emil.l.velikov@gmail.com>
Mon, 16 Jun 2014 22:47:03 +0000 (23:47 +0100)
committerEmil Velikov <emil.l.velikov@gmail.com>
Thu, 10 Jul 2014 00:06:47 +0000 (01:06 +0100)
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>
src/gallium/auxiliary/target-helpers/inline_drm_helper.h
src/gallium/targets/dri/Makefile.am

index 131798c57da66ae62aa0e7d1636aa95722af7773..6c9f15a830ebec2f7477fdce5bb9362bab845cc2 100644 (file)
@@ -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)
 {
index 4f4c0da95ffe3c2c2cf0c6a92d844ba4bdbb8683..d5cbae57cc919fa4b4e755f846b7d9e51295f8a2 100644 (file)
@@ -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