targets/dri: Add __driDriverGetExtensions_i915 symbol
authorEmil Velikov <emil.l.velikov@gmail.com>
Mon, 16 Jun 2014 22:51:12 +0000 (23:51 +0100)
committerEmil Velikov <emil.l.velikov@gmail.com>
Thu, 10 Jul 2014 00:06:48 +0000 (01:06 +0100)
Identical to previous commits - will bring us a step closer
to megadrivers.

Cc: Stephane Marchesin <stephane.marchesin@gmail.com>
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 6c9f15a830ebec2f7477fdce5bb9362bab845cc2..48753a63f9d4e15fc032e547a7ac5575081e2fcf 100644 (file)
@@ -51,6 +51,18 @@ static char* driver_name = NULL;
 /* XXX: We need to teardown the winsys if *screen_create() fails. */
 
 #if defined(GALLIUM_I915)
+#if defined(DRI_TARGET)
+#include "dri_screen.h"
+
+const __DRIextension **__driDriverGetExtensions_i915(void);
+
+PUBLIC const __DRIextension **__driDriverGetExtensions_i915(void)
+{
+   globalDriverAPI = &galliumdrm_driver_api;
+   return galliumdrm_driver_extensions;
+}
+#endif
+
 static struct pipe_screen *
 pipe_i915_create_screen(int fd)
 {
index d5cbae57cc919fa4b4e755f846b7d9e51295f8a2..a09883388a7e9de5f863a1f662ee3c95890554b6 100644 (file)
@@ -13,6 +13,11 @@ AM_CPPFLAGS = \
        -DGALLIUM_RBUG \
        -DGALLIUM_TRACE
 
+if HAVE_GALLIUM_I915
+AM_CPPFLAGS += \
+       -DDRI_TARGET
+endif
+
 if HAVE_GALLIUM_NOUVEAU
 AM_CPPFLAGS += \
        -DDRI_TARGET