diff options
author | Jakob Bornecrantz <[email protected]> | 2010-06-06 11:13:49 +0100 |
---|---|---|
committer | Jakob Bornecrantz <[email protected]> | 2010-06-06 13:02:43 +0100 |
commit | 9ff10b67bc1d69bef96cb24627481ab939ec1aa6 (patch) | |
tree | dc11a17b4bf573a9d392991a48fd9b76077bd3b7 /src/gallium/targets/xorg-vmwgfx | |
parent | 16fa300d55f789cfd71b1d61e3ff74d2eafd12ab (diff) |
svga: Move bootstrap code to targets
Diffstat (limited to 'src/gallium/targets/xorg-vmwgfx')
-rw-r--r-- | src/gallium/targets/xorg-vmwgfx/vmw_target.c | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/src/gallium/targets/xorg-vmwgfx/vmw_target.c b/src/gallium/targets/xorg-vmwgfx/vmw_target.c index 3d1990fc1b8..5f69653582d 100644 --- a/src/gallium/targets/xorg-vmwgfx/vmw_target.c +++ b/src/gallium/targets/xorg-vmwgfx/vmw_target.c @@ -1,4 +1,17 @@ -#include "target-helpers/drm_api_compat.h" +#include "state_tracker/drm_driver.h" +#include "svga/drm/svga_drm_public.h" +#include "svga/svga_public.h" -DRM_API_COMPAT_STRUCT("vmwgfx", "vmwgfx") +static struct pipe_screen * +create_screen(int fd) +{ + struct svga_winsys_screen *sws; + sws = svga_drm_winsys_screen_create(fd); + if (!sws) + return NULL; + + return svga_screen_create(sws); +} + +DRM_DRIVER_DESCRIPTOR("vmwgfx", "vmwgfx", create_screen) |