2 #include "target-helpers/inline_wrapper_sw_helper.h"
3 #include "target-helpers/inline_debug_helper.h"
4 #include "state_tracker/drm_driver.h"
5 #include "svga/drm/svga_drm_public.h"
6 #include "svga/svga_public.h"
8 static struct pipe_screen
*
11 struct svga_winsys_screen
*sws
;
12 struct pipe_screen
*screen
;
14 sws
= svga_drm_winsys_screen_create(fd
);
18 screen
= svga_screen_create(sws
);
22 screen
= sw_screen_wrap(screen
);
24 screen
= debug_screen_wrap(screen
);
29 static const struct drm_conf_ret throttle_ret
= {
34 /* Technically this requires kernel support that is not yet
37 * We could check for support in create_screen and return the correct
38 * value, but for now just return true in all cases.
40 static const struct drm_conf_ret share_fd_ret
= {
41 .type
= DRM_CONF_BOOL
,
45 static const struct drm_conf_ret
*drm_configuration(enum drm_conf conf
)
48 case DRM_CONF_THROTTLE
:
50 case DRM_CONF_SHARE_FD
:
58 DRM_DRIVER_DESCRIPTOR("vmwgfx", "vmwgfx", create_screen
, drm_configuration
)