Lines Matching defs:store

197 update_materials(struct gl_context *ctx, struct light_stage_data *store)
201 for (i = 0 ; i < store->mat_count ; i++) {
203 COPY_CLEAN_4V(store->mat[i].current, store->mat[i].size, store->mat[i].ptr);
205 STRIDE_F(store->mat[i].ptr, store->mat[i].stride);
209 _mesa_update_material( ctx, store->mat_bitmask );
223 struct vertex_buffer *VB, struct light_stage_data *store)
227 store->mat_count = 0;
228 store->mat_bitmask = 0;
248 const GLuint j = store->mat_count++;
250 store->mat[j].ptr = VB->AttribPtr[i]->start;
251 store->mat[j].stride = VB->AttribPtr[i]->stride;
252 store->mat[j].size = VB->AttribPtr[i]->size;
253 store->mat[j].current = ctx->Light.Material.Attrib[attr];
254 store->mat_bitmask |= (1<<attr);
264 return store->mat_count;
328 struct light_stage_data *store = LIGHT_STAGE_DATA(stage);
341 _math_trans_4f( store->Input.data,
352 _mesa_vector4f_clean_elem(&store->Input, VB->Count, 2);
358 _mesa_vector4f_clean_elem(&store->Input, VB->Count, 1);
361 input = &store->Input;
366 if (prepare_materials( ctx, VB, store ))
375 store->light_func_tab[idx]( ctx, VB, stage, input );
421 struct light_stage_data *store;
424 stage->privatePtr = MALLOC(sizeof(*store));
425 store = LIGHT_STAGE_DATA(stage);
426 if (!store)
433 _mesa_vector4f_alloc( &store->Input, 0, size, 32 );
434 _mesa_vector4f_alloc( &store->LitColor[0], 0, size, 32 );
435 _mesa_vector4f_alloc( &store->LitColor[1], 0, size, 32 );
436 _mesa_vector4f_alloc( &store->LitSecondary[0], 0, size, 32 );
437 _mesa_vector4f_alloc( &store->LitSecondary[1], 0, size, 32 );
439 store->LitColor[0].size = 4;
440 store->LitColor[1].size = 4;
441 store->LitSecondary[0].size = 3;
442 store->LitSecondary[1].size = 3;
452 struct light_stage_data *store = LIGHT_STAGE_DATA(stage);
454 if (store) {
455 _mesa_vector4f_free( &store->Input );
456 _mesa_vector4f_free( &store->LitColor[0] );
457 _mesa_vector4f_free( &store->LitColor[1] );
458 _mesa_vector4f_free( &store->LitSecondary[0] );
459 _mesa_vector4f_free( &store->LitSecondary[1] );
460 FREE( store );