Home
last modified time | relevance | path

Searched refs:AttribPtr (Results 1 – 25 of 28) 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.c162 (char *)VB->AttribPtr[_TNL_ATTRIB_POS]->data, in radeonEmitArrays()
163 VB->AttribPtr[_TNL_ATTRIB_POS]->size, in radeonEmitArrays()
164 VB->AttribPtr[_TNL_ATTRIB_POS]->stride, in radeonEmitArrays()
167 switch( VB->AttribPtr[_TNL_ATTRIB_POS]->size ) { in radeonEmitArrays()
182 (char *)VB->AttribPtr[_TNL_ATTRIB_NORMAL]->data, in radeonEmitArrays()
184 VB->AttribPtr[_TNL_ATTRIB_NORMAL]->stride, in radeonEmitArrays()
193 if (VB->AttribPtr[_TNL_ATTRIB_COLOR0]->size == 4 && in radeonEmitArrays()
194 (VB->AttribPtr[_TNL_ATTRIB_COLOR0]->stride != 0 || in radeonEmitArrays()
195 VB->AttribPtr[_TNL_ATTRIB_COLOR0]->data[0][3] != 1.0)) { in radeonEmitArrays()
208 (char *)VB->AttribPtr[_TNL_ATTRIB_COLOR0]->data, in radeonEmitArrays()
[all …]
Dradeon_maos_verts.c329 if (VB->AttribPtr[_TNL_ATTRIB_POS]->size == 4) { in radeonEmitArrays()
351 if (VB->AttribPtr[_TNL_ATTRIB_TEX0 + unit]->size >= 3) { in radeonEmitArrays()
357 else if ((VB->AttribPtr[_TNL_ATTRIB_TEX0 + unit]->size >= 3) && in radeonEmitArrays()
360 GLuint swaptexmatcol = (VB->AttribPtr[_TNL_ATTRIB_TEX0 + unit]->size - 3); in radeonEmitArrays()
394 if (VB->AttribPtr[_TNL_ATTRIB_POS]->size < 3 || in radeonEmitArrays()
395 (VB->AttribPtr[_TNL_ATTRIB_POS]->size == 3 && in radeonEmitArrays()
399 VB->AttribPtr[_TNL_ATTRIB_POS]->data, in radeonEmitArrays()
400 VB->AttribPtr[_TNL_ATTRIB_POS]->stride, in radeonEmitArrays()
402 VB->AttribPtr[_TNL_ATTRIB_POS]->size, in radeonEmitArrays()
406 switch (VB->AttribPtr[_TNL_ATTRIB_POS]->size) { in radeonEmitArrays()
[all …]
Dradeon_swtcl.c101 VB->AttribPtr[VERT_ATTRIB_POS] = VB->NdcPtr; in radeonSetVertexFormat()
104 VB->AttribPtr[VERT_ATTRIB_POS] = VB->ClipPtr; in radeonSetVertexFormat()
107 assert( VB->AttribPtr[VERT_ATTRIB_POS] != NULL ); in radeonSetVertexFormat()
182 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.c334 VB->AttribPtr[0]->data[i][0], in run_vp()
335 VB->AttribPtr[0]->data[i][1], in run_vp()
336 VB->AttribPtr[0]->data[i][2], in run_vp()
337 VB->AttribPtr[0]->data[i][3]); in run_vp()
339 VB->AttribPtr[3]->data[i][0], in run_vp()
340 VB->AttribPtr[3]->data[i][1], in run_vp()
341 VB->AttribPtr[3]->data[i][2], in run_vp()
342 VB->AttribPtr[3]->data[i][3]); in run_vp()
344 VB->AttribPtr[2]->data[i][0], in run_vp()
345 VB->AttribPtr[2]->data[i][1], in run_vp()
[all …]
Dt_vb_fog.c160 VB->AttribPtr[_TNL_ATTRIB_FOG] = &store->fogcoord; in run_fog_stage()
178 _mesa_dotprod_tab[VB->AttribPtr[_TNL_ATTRIB_POS]->size] in run_fog_stage()
181 VB->AttribPtr[_TNL_ATTRIB_POS], plane ); in run_fog_stage()
183 input->count = VB->AttribPtr[_TNL_ATTRIB_POS]->count; in run_fog_stage()
211 input = VB->AttribPtr[_TNL_ATTRIB_FOG]; /* source data */ in run_fog_stage()
216 input->count = VB->AttribPtr[_TNL_ATTRIB_POS]->count; in run_fog_stage()
218 VB->AttribPtr[_TNL_ATTRIB_FOG] = &store->fogcoord; /* dest data */ in run_fog_stage()
223 compute_fog_blend_factors( ctx, VB->AttribPtr[_TNL_ATTRIB_FOG], input ); in run_fog_stage()
227 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_draw.c231 VB->AttribPtr[attrib] = &tnl->tmp_inputs[attrib]; in _tnl_import_array()
232 VB->AttribPtr[attrib]->data = (GLfloat (*)[4])ptr; in _tnl_import_array()
233 VB->AttribPtr[attrib]->start = (GLfloat *)ptr; in _tnl_import_array()
234 VB->AttribPtr[attrib]->count = count; in _tnl_import_array()
235 VB->AttribPtr[attrib]->stride = stride; in _tnl_import_array()
236 VB->AttribPtr[attrib]->size = input->Size; in _tnl_import_array()
240 VB->AttribPtr[attrib]->flags = (((1<<input->Size)-1) | in _tnl_import_array()
244 VB->AttribPtr[attrib]->storage = NULL; in _tnl_import_array()
328 VB->AttribPtr[_TNL_ATTRIB_EDGEFLAG], in bind_inputs()
Dt_vb_texgen.c254 GLvector4f *in = VB->AttribPtr[VERT_ATTRIB_TEX0 + unit]; in texgen_reflection_map_nv()
259 VB->AttribPtr[_TNL_ATTRIB_NORMAL], in texgen_reflection_map_nv()
276 GLvector4f *in = VB->AttribPtr[VERT_ATTRIB_TEX0 + unit]; in texgen_normal_map_nv()
278 GLvector4f *normal = VB->AttribPtr[_TNL_ATTRIB_NORMAL]; in texgen_normal_map_nv()
304 GLvector4f *in = VB->AttribPtr[VERT_ATTRIB_TEX0 + unit]; in texgen_sphere_map()
314 VB->AttribPtr[_TNL_ATTRIB_NORMAL], in texgen_sphere_map()
338 GLvector4f *in = VB->AttribPtr[VERT_ATTRIB_TEX0 + unit]; in texgen()
341 const GLvector4f *obj = VB->AttribPtr[_TNL_ATTRIB_POS]; in texgen()
343 const GLvector4f *normal = VB->AttribPtr[_TNL_ATTRIB_NORMAL]; in texgen()
498 VB->AttribPtr[VERT_ATTRIB_TEX0 + i] = &store->texcoord[i]; in run_texgen_stage()
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_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.c129 GLvector4f *vptr = VB->AttribPtr[a[j].attrib]; in choose_emit_func()
407 register GLvector4f *vptr = VB->AttribPtr[a->attrib]; in adjust_input_ptrs()
421 GLvector4f *vptr = VB->AttribPtr[a[j].attrib]; in update_input_ptrs()
Dt_context.h223 GLvector4f *AttribPtr[_TNL_ATTRIB_MAX]; member
/external/mesa3d/src/mesa/x86/
Dgen_matypes.c137 OFFSET( "VB_OBJ_PTR ", struct vertex_buffer, AttribPtr[_TNL_ATTRIB_POS] ); in main()
143 OFFSET( "VB_NORMAL_PTR ", struct vertex_buffer, AttribPtr[_TNL_ATTRIB_NORMAL] ); in main()
145 OFFSET( "VB_TEX0_COORD_PTR ", struct vertex_buffer, AttribPtr[_TNL_ATTRIB_TEX0] ); in main()
146 OFFSET( "VB_TEX1_COORD_PTR ", struct vertex_buffer, AttribPtr[_TNL_ATTRIB_TEX1] ); in main()
147 OFFSET( "VB_TEX2_COORD_PTR ", struct vertex_buffer, AttribPtr[_TNL_ATTRIB_TEX2] ); in main()
148 OFFSET( "VB_TEX3_COORD_PTR ", struct vertex_buffer, AttribPtr[_TNL_ATTRIB_TEX3] ); in main()
149 OFFSET( "VB_INDEX_PTR ", struct vertex_buffer, AttribPtr[_TNL_ATTRIB_COLOR_INDEX] ); in main()
150 OFFSET( "VB_COLOR_PTR ", struct vertex_buffer, AttribPtr[_TNL_ATTRIB_COLOR0] ); in main()
151 OFFSET( "VB_SECONDARY_COLOR_PTR ", struct vertex_buffer, AttribPtr[_TNL_ATTRIB_COLOR1] ); in main()
152 OFFSET( "VB_FOG_COORD_PTR ", struct vertex_buffer, AttribPtr[_TNL_ATTRIB_FOG] ); in main()
/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/
Di915_fragprog.c1246 VB->AttribPtr[VERT_ATTRIB_POS] = VB->NdcPtr; in i915ValidateFragmentProgram()
1282 int sz = VB->AttribPtr[_TNL_ATTRIB_TEX0 + i]->size; in i915ValidateFragmentProgram()
1291 int sz = VB->AttribPtr[_TNL_ATTRIB_GENERIC0 + i]->size; in i915ValidateFragmentProgram()

12