Mesa (master): targets/dri: Add __driDriverGetExtensions_vmwgfx

Emil Velikov evelikov at kemper.freedesktop.org
Thu Jul 10 00:07:30 UTC 2014


Module: Mesa
Branch: master
Commit: 5c68a1dc0b73431438ede8bd08d4f0d27f121e4d
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=5c68a1dc0b73431438ede8bd08d4f0d27f121e4d

Author: Emil Velikov <emil.l.velikov at gmail.com>
Date:   Tue Jun 17 00:05:30 2014 +0100

targets/dri: Add __driDriverGetExtensions_vmwgfx

Identical to previous commits - will bring us a step closer
to megadrivers.

Cc: Jose Fonseca <jfonseca at vmware.com>
Cc: Brian Paul <brianp at vmware.com>
Signed-off-by: Emil Velikov <emil.l.velikov at gmail.com>
Tested-by: Rob Clark <robclark at freedesktop.org>
Tested-by: Thomas Helland <thomashelland90 at gmail.com>
Acked-by: Tom Stellard <thomas.stellard at amd.com>

---

 src/gallium/auxiliary/target-helpers/inline_drm_helper.h |   12 ++++++++++++
 src/gallium/targets/dri/Makefile.am                      |    5 +++++
 2 files changed, 17 insertions(+)

diff --git a/src/gallium/auxiliary/target-helpers/inline_drm_helper.h b/src/gallium/auxiliary/target-helpers/inline_drm_helper.h
index 2467a9e..d9c65bd 100644
--- a/src/gallium/auxiliary/target-helpers/inline_drm_helper.h
+++ b/src/gallium/auxiliary/target-helpers/inline_drm_helper.h
@@ -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)
 {
diff --git a/src/gallium/targets/dri/Makefile.am b/src/gallium/targets/dri/Makefile.am
index 9e64377..bb10e8d 100644
--- a/src/gallium/targets/dri/Makefile.am
+++ b/src/gallium/targets/dri/Makefile.am
@@ -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




More information about the mesa-commit mailing list