targets/dri: Add __driDriverGetExtensions_i965 symbol
authorEmil Velikov <emil.l.velikov@gmail.com>
Mon, 16 Jun 2014 22:52:52 +0000 (23:52 +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: Chia-I Wu <olv@lunarg.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 48753a6..2467a9e 100644 (file)
@@ -79,6 +79,18 @@ pipe_i915_create_screen(int fd)
 #endif
 
 #if defined(GALLIUM_ILO)
+#if defined(DRI_TARGET)
+#include "dri_screen.h"
+
+const __DRIextension **__driDriverGetExtensions_i965(void);
+
+PUBLIC const __DRIextension **__driDriverGetExtensions_i965(void)
+{
+   globalDriverAPI = &galliumdrm_driver_api;
+   return galliumdrm_driver_extensions;
+}
+#endif
+
 static struct pipe_screen *
 pipe_ilo_create_screen(int fd)
 {
index a098833..9e64377 100644 (file)
@@ -18,6 +18,11 @@ AM_CPPFLAGS += \
        -DDRI_TARGET
 endif
 
+if HAVE_GALLIUM_ILO
+AM_CPPFLAGS += \
+       -DDRI_TARGET
+endif
+
 if HAVE_GALLIUM_NOUVEAU
 AM_CPPFLAGS += \
        -DDRI_TARGET