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

Jose Fonseca jfonseca at vmware.com
Fri Nov 15 09:24:05 PST 2013



----- Original Message -----
> 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
> 
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> https://urldefense.proofpoint.com/v1/url?u=http://lists.freedesktop.org/mailman/listinfo/mesa-dev&k=oIvRg1%2BdGAgOoM1BIlLLqw%3D%3D%0A&r=NMr9uy2iTjWVixC0wOcYCWEIYhfo80qKwRgdodpoDzA%3D%0A&m=khe58xr9qBVn2ohddhLyg4NG9zDREpDeyEuTtbNbEJw%3D%0A&s=03f585f63376e09cb76a416e44c8837cbc34a6685465621e7dcb3a02503888a5
> 

Not familiar with the code, but anythings seems better than missing symbols.

Reviewed-by: Jose Fonseca <jfonseca at vmware.com>


More information about the mesa-dev mailing list