• Home
  • Raw
  • Download

Lines Matching refs:store

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