Go to the source code of this file.
Data Structures | |
struct | intel_softpipe_winsys |
Functions | |
static boolean | intel_is_format_supported (struct softpipe_winsys *sws, enum pipe_format format) |
Return list of surface formats supported by this driver. | |
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 }
static boolean intel_is_format_supported | ( | struct softpipe_winsys * | sws, | |
enum pipe_format | format | |||
) | [static] |
Return list of surface formats supported by this driver.
Definition at line 49 of file intel_winsys_softpipe.c.
References FALSE, PIPE_FORMAT_A8R8G8B8_UNORM, PIPE_FORMAT_R5G6B5_UNORM, PIPE_FORMAT_S8Z24_UNORM, and TRUE.
00051 { 00052 switch(format) { 00053 case PIPE_FORMAT_A8R8G8B8_UNORM: 00054 case PIPE_FORMAT_R5G6B5_UNORM: 00055 case PIPE_FORMAT_S8Z24_UNORM: 00056 return TRUE; 00057 default: 00058 return FALSE; 00059 } 00060 }