pipe_r300.c revision 9f464c52
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" 6 7static struct pipe_screen * 8create_screen(int fd, const struct pipe_screen_config *config) 9{ 10 struct radeon_winsys *sws; 11 12 sws = radeon_drm_winsys_create(fd, config, r300_screen_create); 13 return sws ? debug_screen_wrap(sws->screen) : NULL; 14} 15 16PUBLIC 17DRM_DRIVER_DESCRIPTOR("r300", NULL, create_screen) 18