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>tags/10.3-branchpoint
@@ -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) | |||
{ |
@@ -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 |