Home
last modified time | relevance | path

Searched refs:AttribPtr (Results 1 – 25 of 27) sorted by relevance

12

/external/mesa3d/src/mesa/drivers/dri/radeon/
Dradeon_maos_vbtmp.h59 coord = (GLuint (*)[4])VB->AttribPtr[_TNL_ATTRIB_POS]->data; in TAG()
60 coord_stride = VB->AttribPtr[_TNL_ATTRIB_POS]->stride; in TAG()
63 if (VB->AttribPtr[_TNL_ATTRIB_TEX2]) { in TAG()
65 tc2 = (GLuint (*)[4])VB->AttribPtr[_TNL_ATTRIB_TEX0 + t2]->data; in TAG()
66 tc2_stride = VB->AttribPtr[_TNL_ATTRIB_TEX0 + t2]->stride; in TAG()
67 if (DO_PTEX && VB->AttribPtr[_TNL_ATTRIB_TEX0 + t2]->size < 3) { in TAG()
70 else if (DO_PTEX && VB->AttribPtr[_TNL_ATTRIB_TEX0 + t2]->size < 4) { in TAG()
80 if (VB->AttribPtr[_TNL_ATTRIB_TEX1]) { in TAG()
82 tc1 = (GLuint (*)[4])VB->AttribPtr[_TNL_ATTRIB_TEX0 + t1]->data; in TAG()
83 tc1_stride = VB->AttribPtr[_TNL_ATTRIB_TEX0 + t1]->stride; in TAG()
[all …]
Dradeon_maos_arrays.c161 (char *)VB->AttribPtr[_TNL_ATTRIB_POS]->data, in radeonEmitArrays()
162 VB->AttribPtr[_TNL_ATTRIB_POS]->size, in radeonEmitArrays()
163 VB->AttribPtr[_TNL_ATTRIB_POS]->stride, in radeonEmitArrays()
166 switch( VB->AttribPtr[_TNL_ATTRIB_POS]->size ) { in radeonEmitArrays()
181 (char *)VB->AttribPtr[_TNL_ATTRIB_NORMAL]->data, in radeonEmitArrays()
183 VB->AttribPtr[_TNL_ATTRIB_NORMAL]->stride, in radeonEmitArrays()
192 if (VB->AttribPtr[_TNL_ATTRIB_COLOR0]->size == 4 && in radeonEmitArrays()
193 (VB->AttribPtr[_TNL_ATTRIB_COLOR0]->stride != 0 || in radeonEmitArrays()
194 VB->AttribPtr[_TNL_ATTRIB_COLOR0]->data[0][3] != 1.0)) { in radeonEmitArrays()
207 (char *)VB->AttribPtr[_TNL_ATTRIB_COLOR0]->data, in radeonEmitArrays()
[all …]
Dradeon_maos_verts.c328 if (VB->AttribPtr[_TNL_ATTRIB_POS]->size == 4) { in radeonEmitArrays()
350 if (VB->AttribPtr[_TNL_ATTRIB_TEX0 + unit]->size >= 3) { in radeonEmitArrays()
356 else if ((VB->AttribPtr[_TNL_ATTRIB_TEX0 + unit]->size >= 3) && in radeonEmitArrays()
359 GLuint swaptexmatcol = (VB->AttribPtr[_TNL_ATTRIB_TEX0 + unit]->size - 3); in radeonEmitArrays()
393 if (VB->AttribPtr[_TNL_ATTRIB_POS]->size < 3 || in radeonEmitArrays()
394 (VB->AttribPtr[_TNL_ATTRIB_POS]->size == 3 && in radeonEmitArrays()
398 VB->AttribPtr[_TNL_ATTRIB_POS]->data, in radeonEmitArrays()
399 VB->AttribPtr[_TNL_ATTRIB_POS]->stride, in radeonEmitArrays()
401 VB->AttribPtr[_TNL_ATTRIB_POS]->size, in radeonEmitArrays()
405 switch (VB->AttribPtr[_TNL_ATTRIB_POS]->size) { in radeonEmitArrays()
[all …]
Dradeon_swtcl.c100 VB->AttribPtr[VERT_ATTRIB_POS] = VB->NdcPtr; in radeonSetVertexFormat()
103 VB->AttribPtr[VERT_ATTRIB_POS] = VB->ClipPtr; in radeonSetVertexFormat()
106 assert( VB->AttribPtr[VERT_ATTRIB_POS] != NULL ); in radeonSetVertexFormat()
181 GLuint sz = VB->AttribPtr[_TNL_ATTRIB_TEX0 + i]->size; in radeonSetVertexFormat()
/external/mesa3d/src/mesa/drivers/dri/r200/
Dr200_maos_arrays.c91 emitsize = (VB->AttribPtr[attrib]->size); in r200EmitArrays()
119 (char *)VB->AttribPtr[attrib]->data, in r200EmitArrays()
121 VB->AttribPtr[attrib]->stride, in r200EmitArrays()
126 (char *)VB->AttribPtr[attrib]->data, in r200EmitArrays()
127 VB->AttribPtr[attrib]->stride, in r200EmitArrays()
137 if (VB->AttribPtr[attrib]->size == 4 && in r200EmitArrays()
138 (VB->AttribPtr[attrib]->stride != 0 || in r200EmitArrays()
139 VB->AttribPtr[attrib]->data[0][3] != 1.0)) emitsize = 4; in r200EmitArrays()
153 emitsize = VB->AttribPtr[attrib]->size; in r200EmitArrays()
157 emitsize = VB->AttribPtr[attrib]->size >= 2 ? VB->AttribPtr[attrib]->size : 2; in r200EmitArrays()
[all …]
Dr200_swtcl.c90 VB->AttribPtr[VERT_ATTRIB_POS] = VB->NdcPtr; in r200SetVertexFormat()
93 VB->AttribPtr[VERT_ATTRIB_POS] = VB->ClipPtr; in r200SetVertexFormat()
96 assert( VB->AttribPtr[VERT_ATTRIB_POS] != NULL ); in r200SetVertexFormat()
168 GLuint sz = VB->AttribPtr[_TNL_ATTRIB_TEX0 + i]->size; in r200SetVertexFormat()
/external/mesa3d/src/mesa/tnl/
Dt_vb_program.c336 VB->AttribPtr[0]->data[i][0], in run_vp()
337 VB->AttribPtr[0]->data[i][1], in run_vp()
338 VB->AttribPtr[0]->data[i][2], in run_vp()
339 VB->AttribPtr[0]->data[i][3]); in run_vp()
341 VB->AttribPtr[3]->data[i][0], in run_vp()
342 VB->AttribPtr[3]->data[i][1], in run_vp()
343 VB->AttribPtr[3]->data[i][2], in run_vp()
344 VB->AttribPtr[3]->data[i][3]); in run_vp()
346 VB->AttribPtr[2]->data[i][0], in run_vp()
347 VB->AttribPtr[2]->data[i][1], in run_vp()
[all …]
Dt_vb_fog.c161 VB->AttribPtr[_TNL_ATTRIB_FOG] = &store->fogcoord; in run_fog_stage()
179 _mesa_dotprod_tab[VB->AttribPtr[_TNL_ATTRIB_POS]->size] in run_fog_stage()
182 VB->AttribPtr[_TNL_ATTRIB_POS], plane ); in run_fog_stage()
184 input->count = VB->AttribPtr[_TNL_ATTRIB_POS]->count; in run_fog_stage()
212 input = VB->AttribPtr[_TNL_ATTRIB_FOG]; /* source data */ in run_fog_stage()
217 input->count = VB->AttribPtr[_TNL_ATTRIB_POS]->count; in run_fog_stage()
219 VB->AttribPtr[_TNL_ATTRIB_FOG] = &store->fogcoord; /* dest data */ in run_fog_stage()
224 compute_fog_blend_factors( ctx, VB->AttribPtr[_TNL_ATTRIB_FOG], input ); in run_fog_stage()
228 VB->AttribPtr[_TNL_ATTRIB_FOG] = input; in run_fog_stage()
Dt_vb_light.c239 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()
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()
[all …]
Dt_vb_lighttmp.h58 const GLuint nstride = VB->AttribPtr[_TNL_ATTRIB_NORMAL]->stride; in TAG()
59 const GLfloat *normal = (GLfloat *)VB->AttribPtr[_TNL_ATTRIB_NORMAL]->data; in TAG()
74 VB->AttribPtr[_TNL_ATTRIB_COLOR0] = &store->LitColor[0]; in TAG()
75 VB->AttribPtr[_TNL_ATTRIB_COLOR1] = &store->LitSecondary[0]; in TAG()
244 const GLuint nstride = VB->AttribPtr[_TNL_ATTRIB_NORMAL]->stride; in TAG()
245 const GLfloat *normal = (GLfloat *)VB->AttribPtr[_TNL_ATTRIB_NORMAL]->data; in TAG()
258 VB->AttribPtr[_TNL_ATTRIB_COLOR0] = &store->LitColor[0]; in TAG()
420 const GLuint nstride = VB->AttribPtr[_TNL_ATTRIB_NORMAL]->stride; in TAG()
421 const GLfloat *normal = (GLfloat *)VB->AttribPtr[_TNL_ATTRIB_NORMAL]->data; in TAG()
433 const GLuint nr = VB->AttribPtr[_TNL_ATTRIB_NORMAL]->count; in TAG()
[all …]
Dt_vb_normals.c68 VB->AttribPtr[_TNL_ATTRIB_NORMAL], /* input normals */ in run_normal_stage()
72 if (VB->AttribPtr[_TNL_ATTRIB_NORMAL]->count > 1) { in run_normal_stage()
79 VB->AttribPtr[_TNL_ATTRIB_NORMAL] = &store->normal; in run_normal_stage()
Dt_vb_texgen.c255 GLvector4f *in = VB->AttribPtr[VERT_ATTRIB_TEX0 + unit]; in texgen_reflection_map_nv()
260 VB->AttribPtr[_TNL_ATTRIB_NORMAL], in texgen_reflection_map_nv()
277 GLvector4f *in = VB->AttribPtr[VERT_ATTRIB_TEX0 + unit]; in texgen_normal_map_nv()
279 GLvector4f *normal = VB->AttribPtr[_TNL_ATTRIB_NORMAL]; in texgen_normal_map_nv()
305 GLvector4f *in = VB->AttribPtr[VERT_ATTRIB_TEX0 + unit]; in texgen_sphere_map()
315 VB->AttribPtr[_TNL_ATTRIB_NORMAL], in texgen_sphere_map()
339 GLvector4f *in = VB->AttribPtr[VERT_ATTRIB_TEX0 + unit]; in texgen()
343 const GLvector4f *obj = VB->AttribPtr[_TNL_ATTRIB_POS]; in texgen()
345 const GLvector4f *normal = VB->AttribPtr[_TNL_ATTRIB_NORMAL]; in texgen()
500 VB->AttribPtr[VERT_ATTRIB_TEX0 + i] = &store->texcoord[i]; in run_texgen_stage()
Dt_draw.c236 VB->AttribPtr[attr] = &tnl->tmp_inputs[attr]; in _tnl_import_array()
237 VB->AttribPtr[attr]->data = (GLfloat (*)[4])ptr; in _tnl_import_array()
238 VB->AttribPtr[attr]->start = (GLfloat *)ptr; in _tnl_import_array()
239 VB->AttribPtr[attr]->count = count; in _tnl_import_array()
240 VB->AttribPtr[attr]->stride = stride; in _tnl_import_array()
241 VB->AttribPtr[attr]->size = attrib->Format.Size; in _tnl_import_array()
245 VB->AttribPtr[attr]->flags = (((1<<attrib->Format.Size)-1) | in _tnl_import_array()
249 VB->AttribPtr[attr]->storage = NULL; in _tnl_import_array()
332 VB->AttribPtr[_TNL_ATTRIB_EDGEFLAG], in bind_inputs()
Dt_pipeline.c80 if (tnl->vb.AttribPtr[i]->size != tnl->pipeline.last_attrib_size[i] || in check_input_changes()
81 tnl->vb.AttribPtr[i]->stride != tnl->pipeline.last_attrib_stride[i]) { in check_input_changes()
82 tnl->pipeline.last_attrib_size[i] = tnl->vb.AttribPtr[i]->size; in check_input_changes()
83 tnl->pipeline.last_attrib_stride[i] = tnl->vb.AttribPtr[i]->stride; in check_input_changes()
Dt_vb_texmat.c72 VB->AttribPtr[_TNL_ATTRIB_TEX0 + i]); in run_texmat_stage()
74 VB->AttribPtr[VERT_ATTRIB_TEX0+i] = &store->texcoord[i]; in run_texmat_stage()
Dt_vb_vertex.c154 VB->EyePtr = VB->AttribPtr[_TNL_ATTRIB_POS]; in run_vertex_stage()
158 VB->AttribPtr[_TNL_ATTRIB_POS]); in run_vertex_stage()
163 VB->AttribPtr[_TNL_ATTRIB_POS] ); in run_vertex_stage()
Dt_vb_points.c73 VB->AttribPtr[_TNL_ATTRIB_POINTSIZE] = &store->PointSize; in run_point_stage()
Dt_vertex.c130 GLvector4f *vptr = VB->AttribPtr[a[j].attrib]; in choose_emit_func()
408 register GLvector4f *vptr = VB->AttribPtr[a->attrib]; in adjust_input_ptrs()
422 GLvector4f *vptr = VB->AttribPtr[a[j].attrib]; in update_input_ptrs()
Dt_context.h225 GLvector4f *AttribPtr[_TNL_ATTRIB_MAX]; member
/external/mesa3d/src/mesa/tnl_dd/
Dt_dd_tritmp.h251 if (HAVE_SPEC && VB->AttribPtr[_TNL_ATTRIB_COLOR1]) { in TAG()
329 if (HAVE_SPEC && VB->AttribPtr[_TNL_ATTRIB_COLOR1]) { in TAG()
486 if (HAVE_SPEC && VB->AttribPtr[_TNL_ATTRIB_COLOR1]) { in TAG()
571 if (HAVE_SPEC && VB->AttribPtr[_TNL_ATTRIB_COLOR1]) { in TAG()
613 if (HAVE_SPEC && VB->AttribPtr[_TNL_ATTRIB_COLOR1]) { in TAG()
624 if (HAVE_SPEC && VB->AttribPtr[_TNL_ATTRIB_COLOR1]) { in TAG()
/external/mesa3d/src/mesa/drivers/dri/nouveau/
Dnouveau_swtnl_t.c116 tnl->vb.AttribPtr[VERT_ATTRIB_POS] = tnl->vb.ClipPtr; in swtnl_choose_attrs()
130 fields = tnl->vb.AttribPtr[i]->size; in swtnl_choose_attrs()
Dnv04_render.c79 tnl->vb.AttribPtr[VERT_ATTRIB_POS] = tnl->vb.NdcPtr; in swtnl_choose_attrs()
/external/mesa3d/src/mesa/swrast_setup/
Dss_context.c206 VB->AttribPtr[VERT_ATTRIB_POS] = VB->NdcPtr; in _swsetup_RenderStart()
/external/mesa3d/src/mesa/drivers/dri/i915/
Di830_vtbl.c90 VB->AttribPtr[VERT_ATTRIB_POS] = VB->NdcPtr; in i830_render_start()
132 GLuint sz = VB->AttribPtr[_TNL_ATTRIB_TEX0 + i]->size; in i830_render_start()
Di915_fragprog.c1247 VB->AttribPtr[VERT_ATTRIB_POS] = VB->NdcPtr; in i915ValidateFragmentProgram()
1283 int sz = VB->AttribPtr[_TNL_ATTRIB_TEX0 + i]->size; in i915ValidateFragmentProgram()
1292 int sz = VB->AttribPtr[_TNL_ATTRIB_GENERIC0 + i]->size; in i915ValidateFragmentProgram()

12