targets/dri: Add __driDriverGetExtensions_vmwgfx
authorEmil Velikov <emil.l.velikov@gmail.com>
Mon, 16 Jun 2014 23:05:30 +0000 (00:05 +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: Jose Fonseca <jfonseca@vmware.com>
Cc: Brian Paul <brianp@vmware.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 2467a9ef731aa56cf22507df964f59671975a0c5..d9c65bdf6c90e927e6380928a8a59c6e4b14cc91 100644 (file)
@@ -199,6 +199,18 @@ pipe_radeonsi_create_screen(int fd)
 #endif
 
 #if defined(GALLIUM_VMWGFX)
+#if defined(DRI_TARGET)
+#include "dri_screen.h"
+
+const __DRIextension **__driDriverGetExtensions_vmwgfx(void);
+
+PUBLIC const __DRIextension **__driDriverGetExtensions_vmwgfx(void)
+{
+   globalDriverAPI = &galliumdrm_driver_api;
+   return galliumdrm_driver_extensions;
+}
+#endif
+
 static struct pipe_screen *
 pipe_vmwgfx_create_screen(int fd)
 {
index 9e643775ab70ac90cb44c0013f1c3921fab95618..bb10e8d9ed5dcaec171b790e7639efdec4079984 100644 (file)
@@ -33,6 +33,11 @@ AM_CPPFLAGS += \
        -DDRI_TARGET
 endif
 
+if HAVE_GALLIUM_SVGA
+AM_CPPFLAGS += \
+       -DDRI_TARGET
+endif
+
 if HAVE_GALLIUM_FREEDRENO
 AM_CPPFLAGS += \
        -DDRI_TARGET