[Mesa-dev] [PATCH] dri-vmwgfx: add __driDriverGetExtensions_vmwgfx() function

Brian Paul brianp at vmware.com
Wed Nov 13 10:39:03 PST 2013


To resolve missing symbol since the DRI driver rearchitecting.
---
 src/gallium/targets/dri-vmwgfx/target.c |   16 ++++++++++++++++
 1 file changed, 16 insertions(+)

diff --git a/src/gallium/targets/dri-vmwgfx/target.c b/src/gallium/targets/dri-vmwgfx/target.c
index e01e465..b4aaf0a 100644
--- a/src/gallium/targets/dri-vmwgfx/target.c
+++ b/src/gallium/targets/dri-vmwgfx/target.c
@@ -1,4 +1,6 @@
 
+#include "GL/gl.h"
+#include "GL/internal/dri_interface.h"
 #include "target-helpers/inline_wrapper_sw_helper.h"
 #include "target-helpers/inline_debug_helper.h"
 #include "state_tracker/drm_driver.h"
@@ -43,3 +45,17 @@ static const struct drm_conf_ret *drm_configuration(enum drm_conf conf)
 }
 
 DRM_DRIVER_DESCRIPTOR("vmwgfx", "vmwgfx", create_screen, drm_configuration)
+
+
+/* Use extension list from src/gallium/state_trackers/dri/drm/dri2.c */
+extern const __DRIextension *__driDriverExtensions[];
+
+/* dummy prototype */
+PUBLIC const __DRIextension **
+__driDriverGetExtensions_vmwgfx(void);
+
+PUBLIC const __DRIextension **
+__driDriverGetExtensions_vmwgfx(void)
+{
+   return __driDriverExtensions;
+}
-- 
1.7.10.4



More information about the mesa-dev mailing list