Lines Matching defs:head

90    struct gl_attrib_node *head;
102 head = ctx->AttribStack[ctx->AttribStackDepth];
103 if (unlikely(!head)) {
104 head = CALLOC_STRUCT(gl_attrib_node);
105 if (unlikely(!head)) {
109 ctx->AttribStack[ctx->AttribStackDepth] = head;
112 head->Mask = mask;
113 head->OldPopAttribStateMask = ctx->PopAttribState;
116 memcpy(&head->Accum, &ctx->Accum, sizeof(head->Accum));
119 memcpy(&head->Color, &ctx->Color, sizeof(struct gl_colorbuffer_attrib));
122 head->Color.DrawBuffer[i] = ctx->DrawBuffer->ColorDrawBuffer[i];
127 memcpy(&head->Current, &ctx->Current, sizeof(head->Current));
131 memcpy(&head->Depth, &ctx->Depth, sizeof(head->Depth));
134 struct gl_enable_attrib_node *attr = &head->Enable;
212 memcpy(&head->Eval, &ctx->Eval, sizeof(head->Eval));
215 memcpy(&head->Fog, &ctx->Fog, sizeof(head->Fog));
218 memcpy(&head->Hint, &ctx->Hint, sizeof(head->Hint));
222 memcpy(&head->Light, &ctx->Light, sizeof(head->Light));
226 memcpy(&head->Line, &ctx->Line, sizeof(head->Line));
229 memcpy(&head->List, &ctx->List, sizeof(head->List));
232 memcpy(&head->Pixel, &ctx->Pixel, sizeof(struct gl_pixel_attrib));
234 head->Pixel.ReadBuffer = ctx->ReadBuffer->ColorReadBuffer;
238 memcpy(&head->Point, &ctx->Point, sizeof(head->Point));
241 memcpy(&head->Polygon, &ctx->Polygon, sizeof(head->Polygon));
244 memcpy(&head->PolygonStipple, &ctx->PolygonStipple,
245 sizeof(head->PolygonStipple));
249 memcpy(&head->Scissor, &ctx->Scissor, sizeof(head->Scissor));
252 memcpy(&head->Stencil, &ctx->Stencil, sizeof(head->Stencil));
260 head->Texture.CurrentUnit = ctx->Texture.CurrentUnit;
261 memcpy(&head->Texture.FixedFuncUnit, &ctx->Texture.FixedFuncUnit,
271 struct gl_texture_object *dst = &head->Texture.SavedDefaultObj[tex];
280 head->Texture.LodBias[u] = ctx->Texture.Unit[u].LodBias;
281 head->Texture.LodBiasQuantized[u] = ctx->Texture.Unit[u].LodBiasQuantized;
284 struct gl_texture_object *dst = &head->Texture.SavedObj[u][tex];
294 head->Texture.NumTexSaved = num_tex_used;
299 memcpy(&head->Transform, &ctx->Transform, sizeof(head->Transform));
302 memcpy(&head->Viewport.ViewportArray, &ctx->ViewportArray,
305 head->Viewport.SubpixelPrecisionBias[0] = ctx->SubpixelPrecisionBias[0];
306 head->Viewport.SubpixelPrecisionBias[1] = ctx->SubpixelPrecisionBias[1];
311 memcpy(&head->Multisample, &ctx->Multisample, sizeof(head->Multisample));
1331 struct gl_client_attrib_node *head;
1340 head = &ctx->ClientAttribStack[ctx->ClientAttribStackDepth];
1341 head->Mask = mask;
1344 copy_pixelstore(ctx, &head->Pack, &ctx->Pack);
1345 copy_pixelstore(ctx, &head->Unpack, &ctx->Unpack);
1349 _mesa_initialize_vao(ctx, &head->VAO, 0);
1351 head->Array.VAO = &head->VAO;
1352 save_array_attrib(ctx, &head->Array, &ctx->Array);
1362 struct gl_client_attrib_node *head;
1372 head = &ctx->ClientAttribStack[ctx->ClientAttribStackDepth];
1374 if (head->Mask & GL_CLIENT_PIXEL_STORE_BIT) {
1375 copy_pixelstore(ctx, &ctx->Pack, &head->Pack);
1376 _mesa_reference_buffer_object(ctx, &head->Pack.BufferObj, NULL);
1378 copy_pixelstore(ctx, &ctx->Unpack, &head->Unpack);
1379 _mesa_reference_buffer_object(ctx, &head->Unpack.BufferObj, NULL);
1382 if (head->Mask & GL_CLIENT_VERTEX_ARRAY_BIT) {
1383 restore_array_attrib(ctx, &ctx->Array, &head->Array);
1389 GLbitfield mask = head->VAO.NonDefaultStateMask;
1392 _mesa_reference_buffer_object(ctx, &head->VAO.BufferBinding[i].BufferObj, NULL);
1395 _mesa_reference_buffer_object(ctx, &head->VAO.IndexBufferObj, NULL);
1396 _mesa_reference_buffer_object(ctx, &head->Array.ArrayBufferObj, NULL);