Chia-I Wu | d8e0e11 | 2010-06-29 14:04:27 +0800 | [diff] [blame] | 1 | |
Chia-I Wu | a81ef14 | 2010-06-23 21:36:20 +0800 | [diff] [blame^] | 2 | #include "target-helpers/inline_sw_helper.h" |
| 3 | #include "target-helpers/inline_debug_helper.h" |
Chia-I Wu | d8e0e11 | 2010-06-29 14:04:27 +0800 | [diff] [blame] | 4 | #include "state_tracker/drm_driver.h" |
| 5 | |
Chia-I Wu | a81ef14 | 2010-06-23 21:36:20 +0800 | [diff] [blame^] | 6 | PUBLIC struct pipe_screen * |
| 7 | swrast_create_screen(struct sw_winsys *ws); |
| 8 | |
| 9 | PUBLIC |
Chia-I Wu | d8e0e11 | 2010-06-29 14:04:27 +0800 | [diff] [blame] | 10 | DRM_DRIVER_DESCRIPTOR("swrast", NULL, NULL) |
Chia-I Wu | a81ef14 | 2010-06-23 21:36:20 +0800 | [diff] [blame^] | 11 | |
| 12 | struct pipe_screen * |
| 13 | swrast_create_screen(struct sw_winsys *ws) |
| 14 | { |
| 15 | struct pipe_screen *screen; |
| 16 | |
| 17 | screen = sw_screen_create(ws); |
| 18 | if (screen) |
| 19 | screen = debug_screen_wrap(screen); |
| 20 | |
| 21 | return screen; |
| 22 | } |