1
2#include "target-helpers/inline_debug_helper.h"
3#include "state_tracker/drm_driver.h"
4#include "svga/drm/svga_drm_public.h"
5#include "svga/svga_public.h"
6
7static struct pipe_screen *
8create_screen(int fd)
9{
10   struct svga_winsys_screen *sws;
11   struct pipe_screen *screen;
12
13   sws = svga_drm_winsys_screen_create(fd);
14   if (!sws)
15      return NULL;
16
17   screen = svga_screen_create(sws);
18   if (!screen)
19      return NULL;
20
21   screen = debug_screen_wrap(screen);
22
23   return screen;
24}
25
26PUBLIC
27DRM_DRIVER_DESCRIPTOR("vmwgfx", "vmwgfx", create_screen, NULL)
28