Lines Matching refs:VB
47 struct vertex_buffer *VB,
224 struct vertex_buffer *VB, struct light_stage_data *store) in prepare_materials() argument
239 VB->AttribPtr[_TNL_ATTRIB_MAT_FRONT_AMBIENT + i] = in prepare_materials()
240 VB->AttribPtr[_TNL_ATTRIB_COLOR0]; in prepare_materials()
250 if (VB->AttribPtr[i]->stride) { 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()
333 struct vertex_buffer *VB = &tnl->vb; in run_lighting() local
334 GLvector4f *input = ctx->_NeedEyeCoords ? VB->EyePtr : VB->AttribPtr[_TNL_ATTRIB_POS]; in run_lighting()
342 if (input->size <= 2 && input == VB->AttribPtr[_TNL_ATTRIB_POS]) { in run_lighting()
345 VB->AttribPtr[_TNL_ATTRIB_POS]->data, in run_lighting()
346 VB->AttribPtr[_TNL_ATTRIB_POS]->stride, in run_lighting()
348 VB->AttribPtr[_TNL_ATTRIB_POS]->size, in run_lighting()
350 VB->Count ); 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()
369 if (prepare_materials( ctx, VB, store )) in run_lighting()
378 store->light_func_tab[idx]( ctx, VB, stage, input ); in run_lighting()