aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium/auxiliary/target-helpers
diff options
context:
space:
mode:
authorEmil Velikov <[email protected]>2014-06-17 00:05:30 +0100
committerEmil Velikov <[email protected]>2014-07-10 01:06:48 +0100
commit5c68a1dc0b73431438ede8bd08d4f0d27f121e4d (patch)
tree4908eb0b86e85797ad7c5946fa17641e68206187 /src/gallium/auxiliary/target-helpers
parentff0e25f3a6c20d8df1aaa9376df35d5cfce0c0a9 (diff)
targets/dri: Add __driDriverGetExtensions_vmwgfx
Identical to previous commits - will bring us a step closer to megadrivers. Cc: Jose Fonseca <[email protected]> Cc: Brian Paul <[email protected]> Signed-off-by: Emil Velikov <[email protected]> Tested-by: Rob Clark <[email protected]> Tested-by: Thomas Helland <thomashelland90 at gmail.com> Acked-by: Tom Stellard <[email protected]>
Diffstat (limited to 'src/gallium/auxiliary/target-helpers')
-rw-r--r--src/gallium/auxiliary/target-helpers/inline_drm_helper.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/gallium/auxiliary/target-helpers/inline_drm_helper.h b/src/gallium/auxiliary/target-helpers/inline_drm_helper.h
index 2467a9ef731..d9c65bdf6c9 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)
{