Lines Matching refs:store

128 do_ndc_cliptest(struct gl_context *ctx, struct vp_stage_data *store)  in do_ndc_cliptest()  argument
135 store->ormask = 0; in do_ndc_cliptest()
136 store->andmask = CLIP_FRUSTUM_BITS; in do_ndc_cliptest()
143 &store->ndcCoords, in do_ndc_cliptest()
144 store->clipmask, in do_ndc_cliptest()
145 &store->ormask, in do_ndc_cliptest()
146 &store->andmask, in do_ndc_cliptest()
153 store->clipmask, in do_ndc_cliptest()
154 &store->ormask, in do_ndc_cliptest()
155 &store->andmask, in do_ndc_cliptest()
159 if (store->andmask) { in do_ndc_cliptest()
171 store->clipmask, in do_ndc_cliptest()
172 &store->ormask, in do_ndc_cliptest()
173 &store->andmask ); in do_ndc_cliptest()
175 if (store->andmask) { in do_ndc_cliptest()
180 VB->ClipAndMask = store->andmask; in do_ndc_cliptest()
181 VB->ClipOrMask = store->ormask; in do_ndc_cliptest()
182 VB->ClipMask = store->clipmask; in do_ndc_cliptest()
314 struct vp_stage_data *store = VP_STAGE_DATA(stage); in run_vp() local
317 struct gl_program_machine *machine = &store->machine; in run_vp()
343 if (!store->results[0].storage) { in run_vp()
345 assert(!store->results[i].storage); in run_vp()
346 _mesa_vector4f_alloc( &store->results[i], 0, VB->Size, 32 ); in run_vp()
347 store->results[i].size = 4; in run_vp()
405 COPY_4V(store->results[attr].data[i], machine->Outputs[attr]); in run_vp()
410 store->results[VERT_RESULT_FOGC].data[i][1] = 0.0; in run_vp()
411 store->results[VERT_RESULT_FOGC].data[i][2] = 0.0; in run_vp()
412 store->results[VERT_RESULT_FOGC].data[i][3] = 1.0; in run_vp()
433 store->results[VERT_RESULT_FOGC].data[i][0] = 1.0; in run_vp()
440 store->results[VERT_RESULT_PSIZ].data[i][0] = ctx->Point.Size; in run_vp()
450 VB->ClipPtr = TransformRaw( &store->results[0], in run_vp()
473 VB->ClipPtr = &store->results[VERT_RESULT_HPOS]; in run_vp()
478 VB->AttribPtr[VERT_ATTRIB_COLOR0] = &store->results[VERT_RESULT_COL0]; in run_vp()
479 VB->AttribPtr[VERT_ATTRIB_COLOR1] = &store->results[VERT_RESULT_COL1]; in run_vp()
480 VB->AttribPtr[VERT_ATTRIB_FOG] = &store->results[VERT_RESULT_FOGC]; in run_vp()
481 VB->AttribPtr[_TNL_ATTRIB_POINTSIZE] = &store->results[VERT_RESULT_PSIZ]; in run_vp()
482 VB->BackfaceColorPtr = &store->results[VERT_RESULT_BFC0]; in run_vp()
483 VB->BackfaceSecondaryColorPtr = &store->results[VERT_RESULT_BFC1]; in run_vp()
487 = &store->results[VERT_RESULT_TEX0 + i]; in run_vp()
494 = &store->results[VERT_RESULT_VAR0 + i]; in run_vp()
501 return do_ndc_cliptest(ctx, store); in run_vp()
514 struct vp_stage_data *store; in init_vp() local
517 stage->privatePtr = CALLOC(sizeof(*store)); in init_vp()
518 store = VP_STAGE_DATA(stage); in init_vp()
519 if (!store) in init_vp()
523 _mesa_vector4f_alloc( &store->ndcCoords, 0, size, 32 ); in init_vp()
524 store->clipmask = (GLubyte *) _mesa_align_malloc(sizeof(GLubyte)*size, 32 ); in init_vp()
536 struct vp_stage_data *store = VP_STAGE_DATA(stage); in dtr() local
538 if (store) { in dtr()
543 _mesa_vector4f_free( &store->results[i] ); in dtr()
546 _mesa_vector4f_free( &store->ndcCoords ); in dtr()
547 _mesa_align_free( store->clipmask ); in dtr()
549 FREE( store ); in dtr()