Lines Matching refs:Driver
70 _mesa_init_driver_functions(struct dd_function_table *driver)
72 memset(driver, 0, sizeof(*driver));
74 driver->GetString = NULL; /* REQUIRED! */
75 driver->UpdateState = NULL; /* REQUIRED! */
76 driver->GetBufferSize = NULL; /* REQUIRED! */
77 driver->ResizeBuffers = _mesa_resize_framebuffer;
78 driver->Error = NULL;
80 driver->Finish = NULL;
81 driver->Flush = NULL;
84 driver->Clear = _swrast_Clear;
85 driver->Accum = _mesa_accum;
86 driver->RasterPos = _tnl_RasterPos;
87 driver->DrawPixels = _swrast_DrawPixels;
88 driver->ReadPixels = _mesa_readpixels;
89 driver->CopyPixels = _swrast_CopyPixels;
90 driver->Bitmap = _swrast_Bitmap;
93 driver->ChooseTextureFormat = _mesa_choose_tex_format;
94 driver->TexImage = _mesa_store_teximage;
95 driver->TexSubImage = _mesa_store_texsubimage;
96 driver->GetTexImage = _mesa_meta_GetTexImage;
97 driver->CopyTexSubImage = _mesa_meta_CopyTexSubImage;
98 driver->GenerateMipmap = _mesa_meta_GenerateMipmap;
99 driver->TestProxyTexImage = _mesa_test_proxy_teximage;
100 driver->CompressedTexImage = _mesa_store_compressed_teximage;
101 driver->CompressedTexSubImage = _mesa_store_compressed_texsubimage;
102 driver->GetCompressedTexImage = _mesa_get_compressed_teximage;
103 driver->BindTexture = NULL;
104 driver->NewTextureObject = _mesa_new_texture_object;
105 driver->DeleteTexture = _mesa_delete_texture_object;
106 driver->NewTextureImage = _swrast_new_texture_image;
107 driver->DeleteTextureImage = _swrast_delete_texture_image;
108 driver->AllocTextureImageBuffer = _swrast_alloc_texture_image_buffer;
109 driver->FreeTextureImageBuffer = _swrast_free_texture_image_buffer;
110 driver->MapTextureImage = _swrast_map_teximage;
111 driver->UnmapTextureImage = _swrast_unmap_teximage;
112 driver->DrawTex = _mesa_meta_DrawTex;
115 driver->BindProgram = NULL;
116 driver->NewProgram = _mesa_new_program;
117 driver->DeleteProgram = _mesa_delete_program;
120 driver->AlphaFunc = NULL;
121 driver->BlendColor = NULL;
122 driver->BlendEquationSeparate = NULL;
123 driver->BlendFuncSeparate = NULL;
124 driver->ClipPlane = NULL;
125 driver->ColorMask = NULL;
126 driver->ColorMaterial = NULL;
127 driver->CullFace = NULL;
128 driver->DrawBuffer = NULL;
129 driver->DrawBuffers = NULL;
130 driver->FrontFace = NULL;
131 driver->DepthFunc = NULL;
132 driver->DepthMask = NULL;
133 driver->DepthRange = NULL;
134 driver->Enable = NULL;
135 driver->Fogfv = NULL;
136 driver->Hint = NULL;
137 driver->Lightfv = NULL;
138 driver->LightModelfv = NULL;
139 driver->LineStipple = NULL;
140 driver->LineWidth = NULL;
141 driver->LogicOpcode = NULL;
142 driver->PointParameterfv = NULL;
143 driver->PointSize = NULL;
144 driver->PolygonMode = NULL;
145 driver->PolygonOffset = NULL;
146 driver->PolygonStipple = NULL;
147 driver->ReadBuffer = NULL;
148 driver->RenderMode = NULL;
149 driver->Scissor = NULL;
150 driver->ShadeModel = NULL;
151 driver->StencilFuncSeparate = NULL;
152 driver->StencilOpSeparate = NULL;
153 driver->StencilMaskSeparate = NULL;
154 driver->TexGen = NULL;
155 driver->TexEnv = NULL;
156 driver->TexParameter = NULL;
157 driver->Viewport = NULL;
160 _mesa_init_buffer_object_functions(driver);
163 _mesa_init_query_object_functions(driver);
165 _mesa_init_sync_object_functions(driver);
167 driver->NewFramebuffer = _mesa_new_framebuffer;
168 driver->NewRenderbuffer = _swrast_new_soft_renderbuffer;
169 driver->MapRenderbuffer = _swrast_map_soft_renderbuffer;
170 driver->UnmapRenderbuffer = _swrast_unmap_soft_renderbuffer;
171 driver->RenderTexture = _swrast_render_texture;
172 driver->FinishRenderTexture = _swrast_finish_render_texture;
173 driver->FramebufferRenderbuffer = _mesa_framebuffer_renderbuffer;
174 driver->ValidateFramebuffer = _mesa_validate_framebuffer;
176 driver->BlitFramebuffer = _swrast_BlitFramebuffer;
178 _mesa_init_texture_barrier_functions(driver);
181 driver->NewArrayObject = _mesa_new_array_object;
182 driver->DeleteArrayObject = _mesa_delete_array_object;
183 driver->BindArrayObject = NULL;
185 _mesa_init_shader_object_functions(driver);
187 _mesa_init_transform_feedback_functions(driver);
189 _mesa_init_sampler_object_functions(driver);
192 driver->CurrentExecPrimitive = 0;
193 driver->CurrentSavePrimitive = 0;
194 driver->NeedFlush = 0;
195 driver->SaveNeedFlush = 0;
197 driver->ProgramStringNotify = _tnl_program_string;
198 driver->FlushVertices = NULL;
199 driver->SaveFlushVertices = NULL;
200 driver->PrepareExecBegin = NULL;
201 driver->NotifySaveBegin = NULL;
202 driver->LightingSpaceChange = NULL;
205 driver->NewList = NULL;
206 driver->EndList = NULL;
207 driver->BeginCallList = NULL;
208 driver->EndCallList = NULL;
211 driver->AllocTextureStorage = _swrast_AllocTextureStorage;
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);
225 ctx->Driver.BlendColor(ctx, ctx->Color.BlendColor);
227 ctx->Driver.BlendEquationSeparate(ctx,
231 ctx->Driver.BlendFuncSeparate(ctx,
237 if (ctx->Driver.ColorMaskIndexed) {
240 ctx->Driver.ColorMaskIndexed(ctx, i,
248 ctx->Driver.ColorMask(ctx,
255 ctx->Driver.CullFace(ctx, ctx->Polygon.CullFaceMode);
256 ctx->Driver.DepthFunc(ctx, ctx->Depth.Func);
257 ctx->Driver.DepthMask(ctx, ctx->Depth.Mask);
259 ctx->Driver.Enable(ctx, GL_ALPHA_TEST, ctx->Color.AlphaEnabled);
260 ctx->Driver.Enable(ctx, GL_BLEND, ctx->Color.BlendEnabled);
261 ctx->Driver.Enable(ctx, GL_COLOR_LOGIC_OP, ctx->Color.ColorLogicOpEnabled);
262 ctx->Driver.Enable(ctx, GL_COLOR_SUM, ctx->Fog.ColorSumEnabled);
263 ctx->Driver.Enable(ctx, GL_CULL_FACE, ctx->Polygon.CullFlag);
264 ctx->Driver.Enable(ctx, GL_DEPTH_TEST, ctx->Depth.Test);
265 ctx->Driver.Enable(ctx, GL_DITHER, ctx->Color.DitherFlag);
266 ctx->Driver.Enable(ctx, GL_FOG, ctx->Fog.Enabled);
267 ctx->Driver.Enable(ctx, GL_LIGHTING, ctx->Light.Enabled);
268 ctx->Driver.Enable(ctx, GL_LINE_SMOOTH, ctx->Line.SmoothFlag);
269 ctx->Driver.Enable(ctx, GL_POLYGON_STIPPLE, ctx->Polygon.StippleFlag);
270 ctx->Driver.Enable(ctx, GL_SCISSOR_TEST, ctx->Scissor.Enabled);
271 ctx->Driver.Enable(ctx, GL_STENCIL_TEST, ctx->Stencil._Enabled);
272 ctx->Driver.Enable(ctx, GL_TEXTURE_1D, GL_FALSE);
273 ctx->Driver.Enable(ctx, GL_TEXTURE_2D, GL_FALSE);
274 ctx->Driver.Enable(ctx, GL_TEXTURE_RECTANGLE_NV, GL_FALSE);
275 ctx->Driver.Enable(ctx, GL_TEXTURE_3D, GL_FALSE);
276 ctx->Driver.Enable(ctx, GL_TEXTURE_CUBE_MAP, GL_FALSE);
278 ctx->Driver.Fogfv(ctx, GL_FOG_COLOR, ctx->Fog.Color);
281 ctx->Driver.Fogfv(ctx, GL_FOG_MODE, &mode);
283 ctx->Driver.Fogfv(ctx, GL_FOG_DENSITY, &ctx->Fog.Density);
284 ctx->Driver.Fogfv(ctx, GL_FOG_START, &ctx->Fog.Start);
285 ctx->Driver.Fogfv(ctx, GL_FOG_END, &ctx->Fog.End);
287 ctx->Driver.FrontFace(ctx, ctx->Polygon.FrontFace);
291 ctx->Driver.LightModelfv(ctx, GL_LIGHT_MODEL_COLOR_CONTROL, &f);
294 ctx->Driver.LineWidth(ctx, ctx->Line.Width);
295 ctx->Driver.LogicOpcode(ctx, ctx->Color.LogicOp);
296 ctx->Driver.PointSize(ctx, ctx->Point.Size);
297 ctx->Driver.PolygonStipple(ctx, (const GLubyte *) ctx->PolygonStipple);
298 ctx->Driver.Scissor(ctx, ctx->Scissor.X, ctx->Scissor.Y,
300 ctx->Driver.ShadeModel(ctx, ctx->Light.ShadeModel);
301 ctx->Driver.StencilFuncSeparate(ctx, GL_FRONT,
305 ctx->Driver.StencilFuncSeparate(ctx, GL_BACK,
309 ctx->Driver.StencilMaskSeparate(ctx, GL_FRONT, ctx->Stencil.WriteMask[0]);
310 ctx->Driver.StencilMaskSeparate(ctx, GL_BACK, ctx->Stencil.WriteMask[1]);
311 ctx->Driver.StencilOpSeparate(ctx, GL_FRONT,
315 ctx->Driver.StencilOpSeparate(ctx, GL_BACK,
321 ctx->Driver.DrawBuffer(ctx, ctx->Color.DrawBuffer[0]);