1 #include "target-helpers/inline_debug_helper.h"
2 #include "state_tracker/drm_driver.h"
3 #include "radeon/drm/radeon_drm_public.h"
4 #include "radeon/radeon_winsys.h"
5 #include "r300/r300_public.h"
7 static struct pipe_screen
*
10 struct radeon_winsys
*sws
;
12 sws
= radeon_drm_winsys_create(fd
, r300_screen_create
);
13 return sws
? debug_screen_wrap(sws
->screen
) : NULL
;
16 static const struct drm_conf_ret throttle_ret
= {
21 static const struct drm_conf_ret share_fd_ret
= {
22 .type
= DRM_CONF_BOOL
,
26 static const struct drm_conf_ret
*drm_configuration(enum drm_conf conf
)
29 case DRM_CONF_THROTTLE
:
31 case DRM_CONF_SHARE_FD
:
40 DRM_DRIVER_DESCRIPTOR("r300", create_screen
, drm_configuration
)