• Home
  • Raw
  • Download

Lines Matching refs:attr

227       struct gl_accum_attrib *attr;  in _mesa_PushAttrib()  local
228 attr = MALLOC_STRUCT( gl_accum_attrib ); in _mesa_PushAttrib()
229 memcpy( attr, &ctx->Accum, sizeof(struct gl_accum_attrib) ); in _mesa_PushAttrib()
230 save_attrib_data(&head, GL_ACCUM_BUFFER_BIT, attr); in _mesa_PushAttrib()
235 struct gl_colorbuffer_attrib *attr; in _mesa_PushAttrib() local
236 attr = MALLOC_STRUCT( gl_colorbuffer_attrib ); in _mesa_PushAttrib()
237 memcpy( attr, &ctx->Color, sizeof(struct gl_colorbuffer_attrib) ); in _mesa_PushAttrib()
240 attr->DrawBuffer[i] = ctx->DrawBuffer->ColorDrawBuffer[i]; in _mesa_PushAttrib()
241 save_attrib_data(&head, GL_COLOR_BUFFER_BIT, attr); in _mesa_PushAttrib()
245 struct gl_current_attrib *attr; in _mesa_PushAttrib() local
247 attr = MALLOC_STRUCT( gl_current_attrib ); in _mesa_PushAttrib()
248 memcpy( attr, &ctx->Current, sizeof(struct gl_current_attrib) ); in _mesa_PushAttrib()
249 save_attrib_data(&head, GL_CURRENT_BIT, attr); in _mesa_PushAttrib()
253 struct gl_depthbuffer_attrib *attr; in _mesa_PushAttrib() local
254 attr = MALLOC_STRUCT( gl_depthbuffer_attrib ); in _mesa_PushAttrib()
255 memcpy( attr, &ctx->Depth, sizeof(struct gl_depthbuffer_attrib) ); in _mesa_PushAttrib()
256 save_attrib_data(&head, GL_DEPTH_BUFFER_BIT, attr); in _mesa_PushAttrib()
260 struct gl_enable_attrib *attr; in _mesa_PushAttrib() local
262 attr = MALLOC_STRUCT( gl_enable_attrib ); in _mesa_PushAttrib()
264 attr->AlphaTest = ctx->Color.AlphaEnabled; in _mesa_PushAttrib()
265 attr->AutoNormal = ctx->Eval.AutoNormal; in _mesa_PushAttrib()
266 attr->Blend = ctx->Color.BlendEnabled; in _mesa_PushAttrib()
267 attr->ClipPlanes = ctx->Transform.ClipPlanesEnabled; in _mesa_PushAttrib()
268 attr->ColorMaterial = ctx->Light.ColorMaterialEnabled; in _mesa_PushAttrib()
269 attr->CullFace = ctx->Polygon.CullFlag; in _mesa_PushAttrib()
270 attr->DepthClamp = ctx->Transform.DepthClamp; in _mesa_PushAttrib()
271 attr->DepthTest = ctx->Depth.Test; in _mesa_PushAttrib()
272 attr->Dither = ctx->Color.DitherFlag; in _mesa_PushAttrib()
273 attr->Fog = ctx->Fog.Enabled; in _mesa_PushAttrib()
275 attr->Light[i] = ctx->Light.Light[i].Enabled; in _mesa_PushAttrib()
277 attr->Lighting = ctx->Light.Enabled; in _mesa_PushAttrib()
278 attr->LineSmooth = ctx->Line.SmoothFlag; in _mesa_PushAttrib()
279 attr->LineStipple = ctx->Line.StippleFlag; in _mesa_PushAttrib()
280 attr->IndexLogicOp = ctx->Color.IndexLogicOpEnabled; in _mesa_PushAttrib()
281 attr->ColorLogicOp = ctx->Color.ColorLogicOpEnabled; in _mesa_PushAttrib()
282 attr->Map1Color4 = ctx->Eval.Map1Color4; in _mesa_PushAttrib()
283 attr->Map1Index = ctx->Eval.Map1Index; in _mesa_PushAttrib()
284 attr->Map1Normal = ctx->Eval.Map1Normal; in _mesa_PushAttrib()
285 attr->Map1TextureCoord1 = ctx->Eval.Map1TextureCoord1; in _mesa_PushAttrib()
286 attr->Map1TextureCoord2 = ctx->Eval.Map1TextureCoord2; in _mesa_PushAttrib()
287 attr->Map1TextureCoord3 = ctx->Eval.Map1TextureCoord3; in _mesa_PushAttrib()
288 attr->Map1TextureCoord4 = ctx->Eval.Map1TextureCoord4; in _mesa_PushAttrib()
289 attr->Map1Vertex3 = ctx->Eval.Map1Vertex3; in _mesa_PushAttrib()
290 attr->Map1Vertex4 = ctx->Eval.Map1Vertex4; in _mesa_PushAttrib()
291 memcpy(attr->Map1Attrib, ctx->Eval.Map1Attrib, sizeof(ctx->Eval.Map1Attrib)); in _mesa_PushAttrib()
292 attr->Map2Color4 = ctx->Eval.Map2Color4; in _mesa_PushAttrib()
293 attr->Map2Index = ctx->Eval.Map2Index; in _mesa_PushAttrib()
294 attr->Map2Normal = ctx->Eval.Map2Normal; in _mesa_PushAttrib()
295 attr->Map2TextureCoord1 = ctx->Eval.Map2TextureCoord1; in _mesa_PushAttrib()
296 attr->Map2TextureCoord2 = ctx->Eval.Map2TextureCoord2; in _mesa_PushAttrib()
297 attr->Map2TextureCoord3 = ctx->Eval.Map2TextureCoord3; in _mesa_PushAttrib()
298 attr->Map2TextureCoord4 = ctx->Eval.Map2TextureCoord4; in _mesa_PushAttrib()
299 attr->Map2Vertex3 = ctx->Eval.Map2Vertex3; in _mesa_PushAttrib()
300 attr->Map2Vertex4 = ctx->Eval.Map2Vertex4; in _mesa_PushAttrib()
301 memcpy(attr->Map2Attrib, ctx->Eval.Map2Attrib, sizeof(ctx->Eval.Map2Attrib)); in _mesa_PushAttrib()
302 attr->Normalize = ctx->Transform.Normalize; in _mesa_PushAttrib()
303 attr->RasterPositionUnclipped = ctx->Transform.RasterPositionUnclipped; in _mesa_PushAttrib()
304 attr->PointSmooth = ctx->Point.SmoothFlag; in _mesa_PushAttrib()
305 attr->PointSprite = ctx->Point.PointSprite; in _mesa_PushAttrib()
306 attr->PolygonOffsetPoint = ctx->Polygon.OffsetPoint; in _mesa_PushAttrib()
307 attr->PolygonOffsetLine = ctx->Polygon.OffsetLine; in _mesa_PushAttrib()
308 attr->PolygonOffsetFill = ctx->Polygon.OffsetFill; in _mesa_PushAttrib()
309 attr->PolygonSmooth = ctx->Polygon.SmoothFlag; in _mesa_PushAttrib()
310 attr->PolygonStipple = ctx->Polygon.StippleFlag; in _mesa_PushAttrib()
311 attr->RescaleNormals = ctx->Transform.RescaleNormals; in _mesa_PushAttrib()
312 attr->Scissor = ctx->Scissor.Enabled; in _mesa_PushAttrib()
313 attr->Stencil = ctx->Stencil.Enabled; in _mesa_PushAttrib()
314 attr->StencilTwoSide = ctx->Stencil.TestTwoSide; in _mesa_PushAttrib()
315 attr->MultisampleEnabled = ctx->Multisample.Enabled; in _mesa_PushAttrib()
316 attr->SampleAlphaToCoverage = ctx->Multisample.SampleAlphaToCoverage; in _mesa_PushAttrib()
317 attr->SampleAlphaToOne = ctx->Multisample.SampleAlphaToOne; in _mesa_PushAttrib()
318 attr->SampleCoverage = ctx->Multisample.SampleCoverage; in _mesa_PushAttrib()
320 attr->Texture[i] = ctx->Texture.Unit[i].Enabled; in _mesa_PushAttrib()
321 attr->TexGen[i] = ctx->Texture.Unit[i].TexGenEnabled; in _mesa_PushAttrib()
324 attr->VertexProgram = ctx->VertexProgram.Enabled; in _mesa_PushAttrib()
325 attr->VertexProgramPointSize = ctx->VertexProgram.PointSizeEnabled; in _mesa_PushAttrib()
326 attr->VertexProgramTwoSide = ctx->VertexProgram.TwoSideEnabled; in _mesa_PushAttrib()
327 save_attrib_data(&head, GL_ENABLE_BIT, attr); in _mesa_PushAttrib()
330 attr->sRGBEnabled = ctx->Color.sRGBEnabled; in _mesa_PushAttrib()
334 struct gl_eval_attrib *attr; in _mesa_PushAttrib() local
335 attr = MALLOC_STRUCT( gl_eval_attrib ); in _mesa_PushAttrib()
336 memcpy( attr, &ctx->Eval, sizeof(struct gl_eval_attrib) ); in _mesa_PushAttrib()
337 save_attrib_data(&head, GL_EVAL_BIT, attr); in _mesa_PushAttrib()
341 struct gl_fog_attrib *attr; in _mesa_PushAttrib() local
342 attr = MALLOC_STRUCT( gl_fog_attrib ); in _mesa_PushAttrib()
343 memcpy( attr, &ctx->Fog, sizeof(struct gl_fog_attrib) ); in _mesa_PushAttrib()
344 save_attrib_data(&head, GL_FOG_BIT, attr); in _mesa_PushAttrib()
348 struct gl_hint_attrib *attr; in _mesa_PushAttrib() local
349 attr = MALLOC_STRUCT( gl_hint_attrib ); in _mesa_PushAttrib()
350 memcpy( attr, &ctx->Hint, sizeof(struct gl_hint_attrib) ); in _mesa_PushAttrib()
351 save_attrib_data(&head, GL_HINT_BIT, attr); in _mesa_PushAttrib()
355 struct gl_light_attrib *attr; in _mesa_PushAttrib() local
357 attr = MALLOC_STRUCT( gl_light_attrib ); in _mesa_PushAttrib()
358 memcpy( attr, &ctx->Light, sizeof(struct gl_light_attrib) ); in _mesa_PushAttrib()
359 save_attrib_data(&head, GL_LIGHTING_BIT, attr); in _mesa_PushAttrib()
363 struct gl_line_attrib *attr; in _mesa_PushAttrib() local
364 attr = MALLOC_STRUCT( gl_line_attrib ); in _mesa_PushAttrib()
365 memcpy( attr, &ctx->Line, sizeof(struct gl_line_attrib) ); in _mesa_PushAttrib()
366 save_attrib_data(&head, GL_LINE_BIT, attr); in _mesa_PushAttrib()
370 struct gl_list_attrib *attr; in _mesa_PushAttrib() local
371 attr = MALLOC_STRUCT( gl_list_attrib ); in _mesa_PushAttrib()
372 memcpy( attr, &ctx->List, sizeof(struct gl_list_attrib) ); in _mesa_PushAttrib()
373 save_attrib_data(&head, GL_LIST_BIT, attr); in _mesa_PushAttrib()
377 struct gl_pixel_attrib *attr; in _mesa_PushAttrib() local
378 attr = MALLOC_STRUCT( gl_pixel_attrib ); in _mesa_PushAttrib()
379 memcpy( attr, &ctx->Pixel, sizeof(struct gl_pixel_attrib) ); in _mesa_PushAttrib()
381 attr->ReadBuffer = ctx->ReadBuffer->ColorReadBuffer; in _mesa_PushAttrib()
382 save_attrib_data(&head, GL_PIXEL_MODE_BIT, attr); in _mesa_PushAttrib()
386 struct gl_point_attrib *attr; in _mesa_PushAttrib() local
387 attr = MALLOC_STRUCT( gl_point_attrib ); in _mesa_PushAttrib()
388 memcpy( attr, &ctx->Point, sizeof(struct gl_point_attrib) ); in _mesa_PushAttrib()
389 save_attrib_data(&head, GL_POINT_BIT, attr); in _mesa_PushAttrib()
393 struct gl_polygon_attrib *attr; in _mesa_PushAttrib() local
394 attr = MALLOC_STRUCT( gl_polygon_attrib ); in _mesa_PushAttrib()
395 memcpy( attr, &ctx->Polygon, sizeof(struct gl_polygon_attrib) ); in _mesa_PushAttrib()
396 save_attrib_data(&head, GL_POLYGON_BIT, attr); in _mesa_PushAttrib()
407 struct gl_scissor_attrib *attr; in _mesa_PushAttrib() local
408 attr = MALLOC_STRUCT( gl_scissor_attrib ); in _mesa_PushAttrib()
409 memcpy( attr, &ctx->Scissor, sizeof(struct gl_scissor_attrib) ); in _mesa_PushAttrib()
410 save_attrib_data(&head, GL_SCISSOR_BIT, attr); in _mesa_PushAttrib()
414 struct gl_stencil_attrib *attr; in _mesa_PushAttrib() local
415 attr = MALLOC_STRUCT( gl_stencil_attrib ); in _mesa_PushAttrib()
416 memcpy( attr, &ctx->Stencil, sizeof(struct gl_stencil_attrib) ); in _mesa_PushAttrib()
417 save_attrib_data(&head, GL_STENCIL_BUFFER_BIT, attr); in _mesa_PushAttrib()
460 struct gl_transform_attrib *attr; in _mesa_PushAttrib() local
461 attr = MALLOC_STRUCT( gl_transform_attrib ); in _mesa_PushAttrib()
462 memcpy( attr, &ctx->Transform, sizeof(struct gl_transform_attrib) ); in _mesa_PushAttrib()
463 save_attrib_data(&head, GL_TRANSFORM_BIT, attr); in _mesa_PushAttrib()
467 struct gl_viewport_attrib *attr; in _mesa_PushAttrib() local
468 attr = MALLOC_STRUCT( gl_viewport_attrib ); in _mesa_PushAttrib()
469 memcpy( attr, &ctx->Viewport, sizeof(struct gl_viewport_attrib) ); in _mesa_PushAttrib()
470 save_attrib_data(&head, GL_VIEWPORT_BIT, attr); in _mesa_PushAttrib()
475 struct gl_multisample_attrib *attr; in _mesa_PushAttrib() local
476 attr = MALLOC_STRUCT( gl_multisample_attrib ); in _mesa_PushAttrib()
477 memcpy( attr, &ctx->Multisample, sizeof(struct gl_multisample_attrib) ); in _mesa_PushAttrib()
478 save_attrib_data(&head, GL_MULTISAMPLE_BIT_ARB, attr); in _mesa_PushAttrib()
845 struct gl_attrib_node *attr, *next; in _mesa_PopAttrib() local
855 attr = ctx->AttribStack[ctx->AttribStackDepth]; in _mesa_PopAttrib()
857 while (attr) { in _mesa_PopAttrib()
861 _mesa_lookup_enum_by_nr(attr->kind)); in _mesa_PopAttrib()
864 switch (attr->kind) { in _mesa_PopAttrib()
868 accum = (const struct gl_accum_attrib *) attr->data; in _mesa_PopAttrib()
879 color = (const struct gl_colorbuffer_attrib *) attr->data; in _mesa_PopAttrib()
998 memcpy( &ctx->Current, attr->data, in _mesa_PopAttrib()
1004 depth = (const struct gl_depthbuffer_attrib *) attr->data; in _mesa_PopAttrib()
1014 enable = (const struct gl_enable_attrib *) attr->data; in _mesa_PopAttrib()
1020 memcpy( &ctx->Eval, attr->data, sizeof(struct gl_eval_attrib) ); in _mesa_PopAttrib()
1026 fog = (const struct gl_fog_attrib *) attr->data; in _mesa_PopAttrib()
1039 hint = (const struct gl_hint_attrib *) attr->data; in _mesa_PopAttrib()
1056 light = (const struct gl_light_attrib *) attr->data; in _mesa_PopAttrib()
1122 line = (const struct gl_line_attrib *) attr->data; in _mesa_PopAttrib()
1130 memcpy( &ctx->List, attr->data, sizeof(struct gl_list_attrib) ); in _mesa_PopAttrib()
1133 memcpy( &ctx->Pixel, attr->data, sizeof(struct gl_pixel_attrib) ); in _mesa_PopAttrib()
1141 point = (const struct gl_point_attrib *) attr->data; in _mesa_PopAttrib()
1176 polygon = (const struct gl_polygon_attrib *) attr->data; in _mesa_PopAttrib()
1195 memcpy( ctx->PolygonStipple, attr->data, 32*sizeof(GLuint) ); in _mesa_PopAttrib()
1198 ctx->Driver.PolygonStipple( ctx, (const GLubyte *) attr->data ); in _mesa_PopAttrib()
1203 scissor = (const struct gl_scissor_attrib *) attr->data; in _mesa_PopAttrib()
1212 stencil = (const struct gl_stencil_attrib *) attr->data; in _mesa_PopAttrib()
1245 xform = (const struct gl_transform_attrib *) attr->data; in _mesa_PopAttrib()
1275 = (struct texture_state *) attr->data; in _mesa_PopAttrib()
1283 vp = (const struct gl_viewport_attrib *) attr->data; in _mesa_PopAttrib()
1291 ms = (const struct gl_multisample_attrib *) attr->data; in _mesa_PopAttrib()
1319 next = attr->next; in _mesa_PopAttrib()
1320 FREE( attr->data ); in _mesa_PopAttrib()
1321 FREE( attr ); in _mesa_PopAttrib()
1322 attr = next; in _mesa_PopAttrib()
1522 struct gl_pixelstore_attrib *attr; in _mesa_PushClientAttrib() local
1524 attr = CALLOC_STRUCT( gl_pixelstore_attrib ); in _mesa_PushClientAttrib()
1525 copy_pixelstore(ctx, attr, &ctx->Pack); in _mesa_PushClientAttrib()
1526 save_attrib_data(&head, GL_CLIENT_PACK_BIT, attr); in _mesa_PushClientAttrib()
1528 attr = CALLOC_STRUCT( gl_pixelstore_attrib ); in _mesa_PushClientAttrib()
1529 copy_pixelstore(ctx, attr, &ctx->Unpack); in _mesa_PushClientAttrib()
1530 save_attrib_data(&head, GL_CLIENT_UNPACK_BIT, attr); in _mesa_PushClientAttrib()
1534 struct gl_array_attrib *attr; in _mesa_PushClientAttrib() local
1535 attr = CALLOC_STRUCT( gl_array_attrib ); in _mesa_PushClientAttrib()
1536 init_array_attrib_data(ctx, attr); in _mesa_PushClientAttrib()
1537 save_array_attrib(ctx, attr, &ctx->Array); in _mesa_PushClientAttrib()
1538 save_attrib_data(&head, GL_CLIENT_VERTEX_ARRAY_BIT, attr); in _mesa_PushClientAttrib()
1585 struct gl_array_attrib * attr = in _mesa_PopClientAttrib() local
1587 restore_array_attrib(ctx, &ctx->Array, attr); in _mesa_PopClientAttrib()
1588 free_array_attrib_data(ctx, attr); in _mesa_PopClientAttrib()
1625 struct gl_attrib_node *attr, *next; in _mesa_free_attrib_data() local
1628 attr = ctx->AttribStack[ctx->AttribStackDepth]; in _mesa_free_attrib_data()
1630 while (attr) { in _mesa_free_attrib_data()
1631 if (attr->kind == GL_TEXTURE_BIT) { in _mesa_free_attrib_data()
1632 struct texture_state *texstate = (struct texture_state*)attr->data; in _mesa_free_attrib_data()
1646 next = attr->next; in _mesa_free_attrib_data()
1647 free(attr->data); in _mesa_free_attrib_data()
1648 free(attr); in _mesa_free_attrib_data()
1649 attr = next; in _mesa_free_attrib_data()