Lines Matching full:driver

74 _mesa_init_driver_functions(struct dd_function_table *driver)  in _mesa_init_driver_functions()  argument
76 memset(driver, 0, sizeof(*driver)); in _mesa_init_driver_functions()
78 driver->GetString = NULL; /* REQUIRED! */ in _mesa_init_driver_functions()
79 driver->UpdateState = NULL; /* REQUIRED! */ in _mesa_init_driver_functions()
81 driver->Finish = NULL; in _mesa_init_driver_functions()
82 driver->Flush = NULL; in _mesa_init_driver_functions()
85 driver->Clear = _swrast_Clear; in _mesa_init_driver_functions()
86 driver->RasterPos = _mesa_RasterPos; in _mesa_init_driver_functions()
87 driver->DrawPixels = _swrast_DrawPixels; in _mesa_init_driver_functions()
88 driver->ReadPixels = _mesa_readpixels; in _mesa_init_driver_functions()
89 driver->CopyPixels = _swrast_CopyPixels; in _mesa_init_driver_functions()
90 driver->Bitmap = _swrast_Bitmap; in _mesa_init_driver_functions()
93 driver->ChooseTextureFormat = _mesa_choose_tex_format; in _mesa_init_driver_functions()
94 driver->QueryInternalFormat = _mesa_query_internal_format_default; in _mesa_init_driver_functions()
95 driver->TexImage = _mesa_store_teximage; in _mesa_init_driver_functions()
96 driver->TexSubImage = _mesa_store_texsubimage; in _mesa_init_driver_functions()
97 driver->GetTexSubImage = _mesa_meta_GetTexSubImage; in _mesa_init_driver_functions()
98 driver->ClearTexSubImage = _mesa_meta_ClearTexSubImage; in _mesa_init_driver_functions()
99 driver->CopyTexSubImage = _mesa_meta_CopyTexSubImage; in _mesa_init_driver_functions()
100 driver->GenerateMipmap = _mesa_meta_GenerateMipmap; in _mesa_init_driver_functions()
101 driver->TestProxyTexImage = _mesa_test_proxy_teximage; in _mesa_init_driver_functions()
102 driver->CompressedTexImage = _mesa_store_compressed_teximage; in _mesa_init_driver_functions()
103 driver->CompressedTexSubImage = _mesa_store_compressed_texsubimage; in _mesa_init_driver_functions()
104 driver->BindTexture = NULL; in _mesa_init_driver_functions()
105 driver->NewTextureObject = _mesa_new_texture_object; in _mesa_init_driver_functions()
106 driver->DeleteTexture = _mesa_delete_texture_object; in _mesa_init_driver_functions()
107 driver->NewTextureImage = _swrast_new_texture_image; in _mesa_init_driver_functions()
108 driver->DeleteTextureImage = _swrast_delete_texture_image; in _mesa_init_driver_functions()
109 driver->AllocTextureImageBuffer = _swrast_alloc_texture_image_buffer; in _mesa_init_driver_functions()
110 driver->FreeTextureImageBuffer = _swrast_free_texture_image_buffer; in _mesa_init_driver_functions()
111 driver->MapTextureImage = _swrast_map_teximage; in _mesa_init_driver_functions()
112 driver->UnmapTextureImage = _swrast_unmap_teximage; in _mesa_init_driver_functions()
113 driver->DrawTex = _mesa_meta_DrawTex; in _mesa_init_driver_functions()
116 driver->NewProgram = _mesa_new_program; in _mesa_init_driver_functions()
117 driver->DeleteProgram = _mesa_delete_program; in _mesa_init_driver_functions()
120 driver->NewATIfs = NULL; in _mesa_init_driver_functions()
123 driver->Draw = NULL; in _mesa_init_driver_functions()
124 driver->DrawIndirect = NULL; in _mesa_init_driver_functions()
127 driver->AlphaFunc = NULL; in _mesa_init_driver_functions()
128 driver->BlendColor = NULL; in _mesa_init_driver_functions()
129 driver->BlendEquationSeparate = NULL; in _mesa_init_driver_functions()
130 driver->BlendFuncSeparate = NULL; in _mesa_init_driver_functions()
131 driver->ClipPlane = NULL; in _mesa_init_driver_functions()
132 driver->ColorMask = NULL; in _mesa_init_driver_functions()
133 driver->ColorMaterial = NULL; in _mesa_init_driver_functions()
134 driver->CullFace = NULL; in _mesa_init_driver_functions()
135 driver->DrawBuffer = NULL; in _mesa_init_driver_functions()
136 driver->FrontFace = NULL; in _mesa_init_driver_functions()
137 driver->DepthFunc = NULL; in _mesa_init_driver_functions()
138 driver->DepthMask = NULL; in _mesa_init_driver_functions()
139 driver->DepthRange = NULL; in _mesa_init_driver_functions()
140 driver->Enable = NULL; in _mesa_init_driver_functions()
141 driver->Fogfv = NULL; in _mesa_init_driver_functions()
142 driver->Lightfv = NULL; in _mesa_init_driver_functions()
143 driver->LightModelfv = NULL; in _mesa_init_driver_functions()
144 driver->LineStipple = NULL; in _mesa_init_driver_functions()
145 driver->LineWidth = NULL; in _mesa_init_driver_functions()
146 driver->LogicOpcode = NULL; in _mesa_init_driver_functions()
147 driver->PointParameterfv = NULL; in _mesa_init_driver_functions()
148 driver->PointSize = NULL; in _mesa_init_driver_functions()
149 driver->PolygonMode = NULL; in _mesa_init_driver_functions()
150 driver->PolygonOffset = NULL; in _mesa_init_driver_functions()
151 driver->PolygonStipple = NULL; in _mesa_init_driver_functions()
152 driver->ReadBuffer = NULL; in _mesa_init_driver_functions()
153 driver->RenderMode = NULL; in _mesa_init_driver_functions()
154 driver->Scissor = NULL; in _mesa_init_driver_functions()
155 driver->ShadeModel = NULL; in _mesa_init_driver_functions()
156 driver->StencilFuncSeparate = NULL; in _mesa_init_driver_functions()
157 driver->StencilOpSeparate = NULL; in _mesa_init_driver_functions()
158 driver->StencilMaskSeparate = NULL; in _mesa_init_driver_functions()
159 driver->TexGen = NULL; in _mesa_init_driver_functions()
160 driver->TexEnv = NULL; in _mesa_init_driver_functions()
161 driver->TexParameter = NULL; in _mesa_init_driver_functions()
162 driver->Viewport = NULL; in _mesa_init_driver_functions()
165 _mesa_init_buffer_object_functions(driver); in _mesa_init_driver_functions()
168 _mesa_init_query_object_functions(driver); in _mesa_init_driver_functions()
170 _mesa_init_sync_object_functions(driver); in _mesa_init_driver_functions()
173 _mesa_init_memory_object_functions(driver); in _mesa_init_driver_functions()
175 driver->NewFramebuffer = _mesa_new_framebuffer; in _mesa_init_driver_functions()
176 driver->NewRenderbuffer = _swrast_new_soft_renderbuffer; in _mesa_init_driver_functions()
177 driver->MapRenderbuffer = _swrast_map_soft_renderbuffer; in _mesa_init_driver_functions()
178 driver->UnmapRenderbuffer = _swrast_unmap_soft_renderbuffer; in _mesa_init_driver_functions()
179 driver->RenderTexture = _swrast_render_texture; in _mesa_init_driver_functions()
180 driver->FinishRenderTexture = _swrast_finish_render_texture; in _mesa_init_driver_functions()
181 driver->FramebufferRenderbuffer = _mesa_FramebufferRenderbuffer_sw; in _mesa_init_driver_functions()
182 driver->ValidateFramebuffer = _mesa_validate_framebuffer; in _mesa_init_driver_functions()
184 driver->BlitFramebuffer = _swrast_BlitFramebuffer; in _mesa_init_driver_functions()
185 driver->DiscardFramebuffer = NULL; in _mesa_init_driver_functions()
187 _mesa_init_barrier_functions(driver); in _mesa_init_driver_functions()
188 _mesa_init_shader_object_functions(driver); in _mesa_init_driver_functions()
189 _mesa_init_transform_feedback_functions(driver); in _mesa_init_driver_functions()
190 _mesa_init_sampler_object_functions(driver); in _mesa_init_driver_functions()
193 driver->CurrentExecPrimitive = 0; in _mesa_init_driver_functions()
194 driver->CurrentSavePrimitive = 0; in _mesa_init_driver_functions()
195 driver->NeedFlush = 0; in _mesa_init_driver_functions()
196 driver->SaveNeedFlush = 0; in _mesa_init_driver_functions()
198 driver->ProgramStringNotify = _tnl_program_string; in _mesa_init_driver_functions()
199 driver->LightingSpaceChange = NULL; in _mesa_init_driver_functions()
202 driver->AllocTextureStorage = _mesa_AllocTextureStorage_sw; in _mesa_init_driver_functions()
205 driver->TextureView = NULL; in _mesa_init_driver_functions()
208 driver->GetSamplePosition = NULL; in _mesa_init_driver_functions()
211 driver->SetBackgroundContext = NULL; in _mesa_init_driver_functions()
216 * Call the ctx->Driver.* state functions with current values to initialize
217 * driver state.
223 ctx->Driver.AlphaFunc(ctx, ctx->Color.AlphaFunc, ctx->Color.AlphaRef); in _mesa_init_driver_state()
225 ctx->Driver.BlendColor(ctx, ctx->Color.BlendColor); in _mesa_init_driver_state()
227 ctx->Driver.BlendEquationSeparate(ctx, in _mesa_init_driver_state()
231 ctx->Driver.BlendFuncSeparate(ctx, in _mesa_init_driver_state()
237 ctx->Driver.ColorMask(ctx, in _mesa_init_driver_state()
243 ctx->Driver.CullFace(ctx, ctx->Polygon.CullFaceMode); in _mesa_init_driver_state()
244 ctx->Driver.DepthFunc(ctx, ctx->Depth.Func); in _mesa_init_driver_state()
245 ctx->Driver.DepthMask(ctx, ctx->Depth.Mask); in _mesa_init_driver_state()
247 ctx->Driver.Enable(ctx, GL_ALPHA_TEST, ctx->Color.AlphaEnabled); in _mesa_init_driver_state()
248 ctx->Driver.Enable(ctx, GL_BLEND, ctx->Color.BlendEnabled); in _mesa_init_driver_state()
249 ctx->Driver.Enable(ctx, GL_COLOR_LOGIC_OP, ctx->Color.ColorLogicOpEnabled); in _mesa_init_driver_state()
250 ctx->Driver.Enable(ctx, GL_COLOR_SUM, ctx->Fog.ColorSumEnabled); in _mesa_init_driver_state()
251 ctx->Driver.Enable(ctx, GL_CULL_FACE, ctx->Polygon.CullFlag); in _mesa_init_driver_state()
252 ctx->Driver.Enable(ctx, GL_DEPTH_TEST, ctx->Depth.Test); in _mesa_init_driver_state()
253 ctx->Driver.Enable(ctx, GL_DITHER, ctx->Color.DitherFlag); in _mesa_init_driver_state()
254 ctx->Driver.Enable(ctx, GL_FOG, ctx->Fog.Enabled); in _mesa_init_driver_state()
255 ctx->Driver.Enable(ctx, GL_LIGHTING, ctx->Light.Enabled); in _mesa_init_driver_state()
256 ctx->Driver.Enable(ctx, GL_LINE_SMOOTH, ctx->Line.SmoothFlag); in _mesa_init_driver_state()
257 ctx->Driver.Enable(ctx, GL_POLYGON_STIPPLE, ctx->Polygon.StippleFlag); in _mesa_init_driver_state()
258 ctx->Driver.Enable(ctx, GL_SCISSOR_TEST, ctx->Scissor.EnableFlags); in _mesa_init_driver_state()
259 ctx->Driver.Enable(ctx, GL_STENCIL_TEST, ctx->Stencil.Enabled); in _mesa_init_driver_state()
260 ctx->Driver.Enable(ctx, GL_TEXTURE_1D, GL_FALSE); in _mesa_init_driver_state()
261 ctx->Driver.Enable(ctx, GL_TEXTURE_2D, GL_FALSE); in _mesa_init_driver_state()
262 ctx->Driver.Enable(ctx, GL_TEXTURE_RECTANGLE_NV, GL_FALSE); in _mesa_init_driver_state()
263 ctx->Driver.Enable(ctx, GL_TEXTURE_3D, GL_FALSE); in _mesa_init_driver_state()
264 ctx->Driver.Enable(ctx, GL_TEXTURE_CUBE_MAP, GL_FALSE); in _mesa_init_driver_state()
266 ctx->Driver.Fogfv(ctx, GL_FOG_COLOR, ctx->Fog.Color); in _mesa_init_driver_state()
269 ctx->Driver.Fogfv(ctx, GL_FOG_MODE, &mode); in _mesa_init_driver_state()
271 ctx->Driver.Fogfv(ctx, GL_FOG_DENSITY, &ctx->Fog.Density); in _mesa_init_driver_state()
272 ctx->Driver.Fogfv(ctx, GL_FOG_START, &ctx->Fog.Start); in _mesa_init_driver_state()
273 ctx->Driver.Fogfv(ctx, GL_FOG_END, &ctx->Fog.End); in _mesa_init_driver_state()
275 ctx->Driver.FrontFace(ctx, ctx->Polygon.FrontFace); in _mesa_init_driver_state()
279 ctx->Driver.LightModelfv(ctx, GL_LIGHT_MODEL_COLOR_CONTROL, &f); in _mesa_init_driver_state()
282 ctx->Driver.LineWidth(ctx, ctx->Line.Width); in _mesa_init_driver_state()
283 ctx->Driver.LogicOpcode(ctx, ctx->Color._LogicOp); in _mesa_init_driver_state()
284 ctx->Driver.PointSize(ctx, ctx->Point.Size); in _mesa_init_driver_state()
285 ctx->Driver.PolygonStipple(ctx, (const GLubyte *) ctx->PolygonStipple); in _mesa_init_driver_state()
286 ctx->Driver.Scissor(ctx); in _mesa_init_driver_state()
287 ctx->Driver.ShadeModel(ctx, ctx->Light.ShadeModel); in _mesa_init_driver_state()
288 ctx->Driver.StencilFuncSeparate(ctx, GL_FRONT, in _mesa_init_driver_state()
292 ctx->Driver.StencilFuncSeparate(ctx, GL_BACK, in _mesa_init_driver_state()
296 ctx->Driver.StencilMaskSeparate(ctx, GL_FRONT, ctx->Stencil.WriteMask[0]); in _mesa_init_driver_state()
297 ctx->Driver.StencilMaskSeparate(ctx, GL_BACK, ctx->Stencil.WriteMask[1]); in _mesa_init_driver_state()
298 ctx->Driver.StencilOpSeparate(ctx, GL_FRONT, in _mesa_init_driver_state()
302 ctx->Driver.StencilOpSeparate(ctx, GL_BACK, in _mesa_init_driver_state()
308 ctx->Driver.DrawBuffer(ctx); in _mesa_init_driver_state()