Go to the source code of this file.
Functions | |
struct pipe_context * | failover_create (struct pipe_context *hw, struct pipe_context *sw) |
struct pipe_context* failover_create | ( | struct pipe_context * | hw, | |
struct pipe_context * | sw | |||
) | [read] |
Definition at line 110 of file fo_context.c.
References pipe_context::begin_query, CALLOC_STRUCT, pipe_context::clear, pipe_context::destroy, failover_context::dirty, pipe_context::draw_arrays, pipe_context::draw_elements, pipe_context::end_query, failover_destroy(), failover_draw_arrays(), failover_draw_elements(), failover_init_state_functions(), pipe_context::flush, failover_context::hw, failover_context::pipe, pipe_context::screen, pipe_context::surface_copy, pipe_context::surface_fill, failover_context::sw, and pipe_context::winsys.
00112 { 00113 struct failover_context *failover = CALLOC_STRUCT(failover_context); 00114 if (failover == NULL) 00115 return NULL; 00116 00117 failover->hw = hw; 00118 failover->sw = sw; 00119 failover->pipe.winsys = hw->winsys; 00120 failover->pipe.screen = hw->screen; 00121 failover->pipe.destroy = failover_destroy; 00122 #if 0 00123 failover->pipe.is_format_supported = hw->is_format_supported; 00124 failover->pipe.get_name = hw->get_name; 00125 failover->pipe.get_vendor = hw->get_vendor; 00126 failover->pipe.get_param = hw->get_param; 00127 failover->pipe.get_paramf = hw->get_paramf; 00128 #endif 00129 00130 failover->pipe.draw_arrays = failover_draw_arrays; 00131 failover->pipe.draw_elements = failover_draw_elements; 00132 failover->pipe.clear = hw->clear; 00133 00134 /* No software occlusion fallback (or other optional functionality) 00135 * at this point - if the hardware doesn't support it, don't 00136 * advertise it to the application. 00137 */ 00138 failover->pipe.begin_query = hw->begin_query; 00139 failover->pipe.end_query = hw->end_query; 00140 00141 failover_init_state_functions( failover ); 00142 00143 failover->pipe.surface_copy = hw->surface_copy; 00144 failover->pipe.surface_fill = hw->surface_fill; 00145 00146 #if 0 00147 failover->pipe.texture_create = hw->texture_create; 00148 failover->pipe.texture_release = hw->texture_release; 00149 failover->pipe.get_tex_surface = hw->get_tex_surface; 00150 failover->pipe.texture_update = hw->texture_update; 00151 #endif 00152 00153 failover->pipe.flush = hw->flush; 00154 00155 failover->dirty = 0; 00156 00157 return &failover->pipe; 00158 }