• Home
  • Raw
  • Download

Lines Matching refs:store

198 update_materials(struct gl_context *ctx, struct light_stage_data *store)  in update_materials()  argument
202 for (i = 0 ; i < store->mat_count ; i++) { in update_materials()
204 COPY_CLEAN_4V(store->mat[i].current, store->mat[i].size, store->mat[i].ptr); in update_materials()
206 STRIDE_F(store->mat[i].ptr, store->mat[i].stride); in update_materials()
210 _mesa_update_material( ctx, store->mat_bitmask ); in update_materials()
224 struct vertex_buffer *VB, struct light_stage_data *store) in prepare_materials() argument
228 store->mat_count = 0; in prepare_materials()
229 store->mat_bitmask = 0; in prepare_materials()
251 const GLuint j = store->mat_count++; in prepare_materials()
253 store->mat[j].ptr = VB->AttribPtr[i]->start; in prepare_materials()
254 store->mat[j].stride = VB->AttribPtr[i]->stride; in prepare_materials()
255 store->mat[j].size = VB->AttribPtr[i]->size; in prepare_materials()
256 store->mat[j].current = ctx->Light.Material.Attrib[attr]; in prepare_materials()
257 store->mat_bitmask |= (1<<attr); in prepare_materials()
267 return store->mat_count; in prepare_materials()
331 struct light_stage_data *store = LIGHT_STAGE_DATA(stage); in run_lighting() local
344 _math_trans_4f( store->Input.data, in run_lighting()
355 _mesa_vector4f_clean_elem(&store->Input, VB->Count, 2); in run_lighting()
361 _mesa_vector4f_clean_elem(&store->Input, VB->Count, 1); in run_lighting()
364 input = &store->Input; in run_lighting()
369 if (prepare_materials( ctx, VB, store )) in run_lighting()
378 store->light_func_tab[idx]( ctx, VB, stage, input ); in run_lighting()
425 struct light_stage_data *store; in init_lighting() local
428 stage->privatePtr = malloc(sizeof(*store)); in init_lighting()
429 store = LIGHT_STAGE_DATA(stage); in init_lighting()
430 if (!store) in init_lighting()
437 _mesa_vector4f_alloc( &store->Input, 0, size, 32 ); in init_lighting()
438 _mesa_vector4f_alloc( &store->LitColor[0], 0, size, 32 ); in init_lighting()
439 _mesa_vector4f_alloc( &store->LitColor[1], 0, size, 32 ); in init_lighting()
440 _mesa_vector4f_alloc( &store->LitSecondary[0], 0, size, 32 ); in init_lighting()
441 _mesa_vector4f_alloc( &store->LitSecondary[1], 0, size, 32 ); in init_lighting()
443 store->LitColor[0].size = 4; in init_lighting()
444 store->LitColor[1].size = 4; in init_lighting()
445 store->LitSecondary[0].size = 3; in init_lighting()
446 store->LitSecondary[1].size = 3; in init_lighting()
456 struct light_stage_data *store = LIGHT_STAGE_DATA(stage); in dtr() local
458 if (store) { in dtr()
459 _mesa_vector4f_free( &store->Input ); in dtr()
460 _mesa_vector4f_free( &store->LitColor[0] ); in dtr()
461 _mesa_vector4f_free( &store->LitColor[1] ); in dtr()
462 _mesa_vector4f_free( &store->LitSecondary[0] ); in dtr()
463 _mesa_vector4f_free( &store->LitSecondary[1] ); in dtr()
464 free( store ); in dtr()