Go to the source code of this file.
Functions | |
struct pipe_context * | intel_create_softpipe (struct intel_context *intel, struct pipe_winsys *winsys) |
Create rendering context which uses software rendering. |
struct pipe_context* intel_create_softpipe | ( | struct intel_context * | intel, | |
struct pipe_winsys * | winsys | |||
) | [read] |
Create rendering context which uses software rendering.
Definition at line 67 of file intel_winsys_softpipe.c.
References CALLOC_STRUCT, intel_softpipe_winsys::intel, intel_is_format_supported(), softpipe_winsys::is_format_supported, softpipe_create(), softpipe_create_screen(), and intel_softpipe_winsys::sws.
00069 { 00070 struct intel_softpipe_winsys *isws = CALLOC_STRUCT( intel_softpipe_winsys ); 00071 struct pipe_screen *screen = softpipe_create_screen(winsys); 00072 00073 /* Fill in this struct with callbacks that softpipe will need to 00074 * communicate with the window system, buffer manager, etc. 00075 */ 00076 isws->sws.is_format_supported = intel_is_format_supported; 00077 isws->intel = intel; 00078 00079 /* Create the softpipe context: 00080 */ 00081 return softpipe_create( screen, winsys, &isws->sws ); 00082 }