Home
last modified time | relevance | path

Searched refs:vtx (Results 1 – 25 of 64) sorted by relevance

123

/external/mesa3d/src/mesa/tnl/
Dt_vertex.c40 static GLboolean match_fastpath( struct tnl_clipspace *vtx, in match_fastpath() argument
45 if (vtx->attr_count != fp->attr_count) in match_fastpath()
48 for (j = 0; j < vtx->attr_count; j++) in match_fastpath()
49 if (vtx->attr[j].format != fp->attr[j].format || in match_fastpath()
50 vtx->attr[j].inputsize != fp->attr[j].size || in match_fastpath()
51 vtx->attr[j].vertoffset != fp->attr[j].offset) in match_fastpath()
55 if (vtx->vertex_size != fp->vertex_size) in match_fastpath()
58 for (j = 0; j < vtx->attr_count; j++) in match_fastpath()
59 if (vtx->attr[j].inputstride != fp->attr[j].stride) in match_fastpath()
66 static GLboolean search_fastpath_emit( struct tnl_clipspace *vtx ) in search_fastpath_emit() argument
[all …]
Dt_vertex_generic.c874 struct tnl_clipspace *vtx = GET_VERTEX_STATE(ctx); \
875 struct tnl_clipspace_attr *a = vtx->attr; \
878 for (i = 0 ; i < count ; i++, v += vtx->vertex_size) { \
935 struct tnl_clipspace *vtx = GET_VERTEX_STATE(ctx); in EMIT2() local
941 switch (vtx->attr_count) { in EMIT2()
943 if (vtx->attr[0].emit == insert_3f_viewport_3) { in EMIT2()
944 if (vtx->attr[1].emit == insert_4ub_4f_bgra_4) in EMIT2()
946 else if (vtx->attr[1].emit == insert_4ub_4f_rgba_4) in EMIT2()
949 else if (vtx->attr[0].emit == insert_3f_3 && in EMIT2()
950 vtx->attr[1].emit == insert_4ub_4f_rgba_4) { in EMIT2()
[all …]
Dt_vertex_sse.c309 struct tnl_clipspace *vtx = GET_VERTEX_STATE(p->ctx); in get_src_ptr() local
310 struct x86_reg ptr_to_src = x86_make_disp(vtxREG, get_offset(vtx, &a->inputptr)); in get_src_ptr()
323 struct tnl_clipspace *vtx = GET_VERTEX_STATE(p->ctx); in update_src_ptr() local
324 struct x86_reg ptr_to_src = x86_make_disp(vtxREG, get_offset(vtx, &a->inputptr)); in update_src_ptr()
348 struct tnl_clipspace *vtx = GET_VERTEX_STATE(ctx); in build_vertex_emit() local
387 if (vtx->need_viewport) { in build_vertex_emit()
388 sse_movups(&p->func, vp0, x86_make_disp(vtxESI, get_offset(vtx, &vtx->vp_scale[0]))); in build_vertex_emit()
389 sse_movups(&p->func, vp1, x86_make_disp(vtxESI, get_offset(vtx, &vtx->vp_xlate[0]))); in build_vertex_emit()
394 sse_movups(&p->func, p->chan0, x86_make_disp(vtxESI, get_offset(vtx, &vtx->chan_scale[0]))); in build_vertex_emit()
395 sse_movups(&p->func, p->identity, x86_make_disp(vtxESI, get_offset(vtx, &vtx->identity[0]))); in build_vertex_emit()
[all …]
/external/mesa3d/src/mesa/vbo/
Dvbo_exec_draw.c47 GLuint count = exec->vtx.vert_count; in vbo_exec_debug_verts()
53 exec->vtx.prim_count, in vbo_exec_debug_verts()
54 exec->vtx.vertex_size); in vbo_exec_debug_verts()
56 for (i = 0 ; i < exec->vtx.prim_count ; i++) { in vbo_exec_debug_verts()
57 struct _mesa_prim *prim = &exec->vtx.prim[i]; in vbo_exec_debug_verts()
77 GLuint nr = exec->vtx.prim[exec->vtx.prim_count-1].count; in vbo_copy_vertices()
79 GLuint sz = exec->vtx.vertex_size; in vbo_copy_vertices()
80 GLfloat *dst = exec->vtx.copied.buffer; in vbo_copy_vertices()
81 const GLfloat *src = (exec->vtx.buffer_map + in vbo_copy_vertices()
82 exec->vtx.prim[exec->vtx.prim_count-1].start * in vbo_copy_vertices()
[all …]
Dvbo_exec_api.c69 if (exec->vtx.prim_count == 0) { in vbo_exec_wrap_buffers()
70 exec->vtx.copied.nr = 0; in vbo_exec_wrap_buffers()
71 exec->vtx.vert_count = 0; in vbo_exec_wrap_buffers()
72 exec->vtx.buffer_ptr = exec->vtx.buffer_map; in vbo_exec_wrap_buffers()
75 GLuint last_begin = exec->vtx.prim[exec->vtx.prim_count-1].begin; in vbo_exec_wrap_buffers()
79 GLint i = exec->vtx.prim_count - 1; in vbo_exec_wrap_buffers()
81 exec->vtx.prim[i].count = (exec->vtx.vert_count - in vbo_exec_wrap_buffers()
82 exec->vtx.prim[i].start); in vbo_exec_wrap_buffers()
85 last_count = exec->vtx.prim[exec->vtx.prim_count-1].count; in vbo_exec_wrap_buffers()
89 if (exec->vtx.vert_count) in vbo_exec_wrap_buffers()
[all …]
Dvbo_exec_eval.c158 COPY_SZ_4V( exec->vtx.attrptr[attr], in vbo_exec_do_EvalCoord1f()
159 exec->vtx.attrsz[attr], in vbo_exec_do_EvalCoord1f()
206 COPY_SZ_4V( exec->vtx.attrptr[attr], in vbo_exec_do_EvalCoord2f()
207 exec->vtx.attrsz[attr], in vbo_exec_do_EvalCoord2f()
245 COPY_SZ_4V( exec->vtx.attrptr[VBO_ATTRIB_NORMAL], in vbo_exec_do_EvalCoord2f()
246 exec->vtx.attrsz[VBO_ATTRIB_NORMAL], in vbo_exec_do_EvalCoord2f()
256 if (exec->vtx.attrsz[0] == 4) in vbo_exec_do_EvalCoord2f()
/external/deqp/modules/gles3/functional/
Des3fShaderIndexingTests.cpp223 std::ostringstream vtx; in createVaryingArrayCase() local
224 vtx << "#version 300 es\n"; in createVaryingArrayCase()
225 vtx << "in highp vec4 a_position;\n"; in createVaryingArrayCase()
226 vtx << "in highp vec4 a_coords;\n"; in createVaryingArrayCase()
228 vtx << "uniform mediump int ui_zero, ui_one, ui_two, ui_three;\n"; in createVaryingArrayCase()
230 vtx << "uniform mediump int ui_four;\n"; in createVaryingArrayCase()
231 vtx << "out ${PRECISION} ${VAR_TYPE} var[${ARRAY_LEN}];\n"; in createVaryingArrayCase()
232 vtx << "\n"; in createVaryingArrayCase()
233 vtx << "void main()\n"; in createVaryingArrayCase()
234 vtx << "{\n"; in createVaryingArrayCase()
[all …]
Des3fShaderLoopTests.cpp245 std::ostringstream vtx; in createGenericLoopCase() local
247 std::ostringstream& op = isVertexCase ? vtx : frag; in createGenericLoopCase()
249 vtx << "#version 300 es\n"; in createGenericLoopCase()
252 vtx << "in highp vec4 a_position;\n"; in createGenericLoopCase()
253 vtx << "in highp vec4 a_coords;\n"; in createGenericLoopCase()
257 vtx << "in mediump float a_one;\n"; in createGenericLoopCase()
261 vtx << "out mediump vec3 v_color;\n"; in createGenericLoopCase()
266 vtx << "out mediump vec4 v_coords;\n"; in createGenericLoopCase()
271 vtx << "out mediump float v_one;\n"; in createGenericLoopCase()
294 vtx << "\n"; in createGenericLoopCase()
[all …]
Des3fShaderSwitchTests.cpp91 std::ostringstream vtx; in makeSwitchCase() local
93 std::ostringstream& op = isVertex ? vtx : frag; in makeSwitchCase()
95 vtx << "#version 300 es\n" in makeSwitchCase()
103 vtx << "out mediump vec4 v_color;\n"; in makeSwitchCase()
108 vtx << "out highp vec4 v_coords;\n"; in makeSwitchCase()
115 vtx << "\n" in makeSwitchCase()
138 vtx << " v_color = vec4(res, 1.0);\n"; in makeSwitchCase()
143 vtx << " v_coords = a_coords;\n"; in makeSwitchCase()
147 vtx << "}\n"; in makeSwitchCase()
150 return new ShaderSwitchCase(context, name, desc, isVertex, vtx.str().c_str(), frag.str().c_str(), in makeSwitchCase()
Des3fShaderPrecisionTests.cpp71 ostringstream vtx; in createFloatPrecisionEvalProgram() local
73 ostringstream& op = isVertexCase ? vtx : frag; in createFloatPrecisionEvalProgram()
75 vtx << "#version 300 es\n" in createFloatPrecisionEvalProgram()
84 vtx << "flat out " << precName << " " << typeName << " v_out;\n"; in createFloatPrecisionEvalProgram()
89 vtx << "flat out " << precName << " " << typeName << " v_in0;\n" in createFloatPrecisionEvalProgram()
95 vtx << "\nvoid main (void)\n{\n" in createFloatPrecisionEvalProgram()
113 vtx << " v_in0 = a_in0;\n" in createFloatPrecisionEvalProgram()
118 vtx << "}\n"; in createFloatPrecisionEvalProgram()
121 return new glu::ShaderProgram(context, glu::makeVtxFragSources(vtx.str(), frag.str())); in createFloatPrecisionEvalProgram()
128 ostringstream vtx; in createIntUintPrecisionEvalProgram() local
[all …]
/external/deqp/modules/gles2/functional/
Des2fShaderIndexingTests.cpp253 std::ostringstream vtx; in createVaryingArrayCase() local
254 vtx << "attribute highp vec4 a_position;\n"; in createVaryingArrayCase()
255 vtx << "attribute highp vec4 a_coords;\n"; in createVaryingArrayCase()
257 vtx << "uniform mediump int ui_zero, ui_one, ui_two, ui_three;\n"; in createVaryingArrayCase()
259 vtx << "uniform mediump int ui_four;\n"; in createVaryingArrayCase()
260 vtx << "varying ${PRECISION} ${VAR_TYPE} var[${ARRAY_LEN}];\n"; in createVaryingArrayCase()
261 vtx << "\n"; in createVaryingArrayCase()
262 vtx << "void main()\n"; in createVaryingArrayCase()
263 vtx << "{\n"; in createVaryingArrayCase()
264 vtx << " gl_Position = a_position;\n"; in createVaryingArrayCase()
[all …]
Des2fShaderLoopTests.cpp277 std::ostringstream vtx; in createGenericLoopCase() local
279 std::ostringstream& op = isVertexCase ? vtx : frag; in createGenericLoopCase()
281 vtx << "attribute highp vec4 a_position;\n"; in createGenericLoopCase()
282 vtx << "attribute highp vec4 a_coords;\n"; in createGenericLoopCase()
285 vtx << "attribute mediump float a_one;\n"; in createGenericLoopCase()
289 vtx << "varying mediump vec3 v_color;\n"; in createGenericLoopCase()
294 vtx << "varying mediump vec4 v_coords;\n"; in createGenericLoopCase()
299 vtx << "varying mediump float v_one;\n"; in createGenericLoopCase()
322 vtx << "\n"; in createGenericLoopCase()
323 vtx << "void main()\n"; in createGenericLoopCase()
[all …]
Des2fShaderAlgorithmTests.cpp75 std::ostringstream vtx; in createExpressionCase() local
77 std::ostringstream& op = isVertexCase ? vtx : frag; in createExpressionCase()
79 vtx << "attribute highp vec4 a_position;\n"; in createExpressionCase()
80 vtx << "attribute highp vec4 a_unitCoords;\n"; in createExpressionCase()
84 vtx << "varying mediump vec3 v_color;\n"; in createExpressionCase()
89 vtx << "varying mediump vec4 v_coords;\n"; in createExpressionCase()
95 vtx << "\n"; in createExpressionCase()
96 vtx << "void main()\n"; in createExpressionCase()
97 vtx << "{\n"; in createExpressionCase()
98 vtx << " gl_Position = a_position;\n"; in createExpressionCase()
[all …]
/external/deqp/modules/gles3/performance/
Des3pShaderControlStatementTests.cpp190 std::ostringstream vtx; in init() local
192 std::ostringstream& op = isVertexCase ? vtx : frag; in init()
194 vtx << "#version 300 es\n"; in init()
195 vtx << "in highp vec4 a_position;\n"; // Position attribute. in init()
196 vtx << "in mediump vec4 a_value0;\n"; // Input for workload calculations of "true" branch. in init()
197 vtx << "in mediump vec4 a_value1;\n"; // Input for workload calculations of "false" branch. in init()
204 vtx << "in mediump float a_compareValue;\n"; in init()
211 vtx << "out mediump vec4 v_color;\n"; in init()
216 vtx << "out mediump vec4 v_value0;\n"; in init()
217 vtx << "out mediump vec4 v_value1;\n"; in init()
[all …]
Des3pShaderOperatorTests.cpp1147 std::ostringstream vtx; in generateSingleProgramData() local
1149 std::ostringstream& op = isVertexCase ? vtx : frag; in generateSingleProgramData()
1151 vtx << "#version 300 es\n"; in generateSingleProgramData()
1156 vtx << "in highp vec4 a_position;\n"; in generateSingleProgramData()
1158 vtx << "in " << inputPrecision << " vec4 a_in" << i << ";\n"; in generateSingleProgramData()
1162 vtx << "out mediump vec4 v_color;\n"; in generateSingleProgramData()
1169 vtx << "out " << inputPrecision << " vec4 v_in" << i << ";\n"; in generateSingleProgramData()
1178 vtx << "\n"; in generateSingleProgramData()
1179 vtx << "void main()\n"; in generateSingleProgramData()
1180 vtx << "{\n"; in generateSingleProgramData()
[all …]
/external/deqp/modules/gles2/performance/
Des2pShaderControlStatementTests.cpp190 std::ostringstream vtx; in init() local
192 std::ostringstream& op = isVertexCase ? vtx : frag; in init()
194 vtx << "attribute highp vec4 a_position;\n"; // Position attribute. in init()
195 vtx << "attribute mediump vec4 a_value0;\n"; // Input for workload calculations of "true" branch. in init()
196 vtx << "attribute mediump vec4 a_value1;\n"; // Input for workload calculations of "false" branch. in init()
200 vtx << "attribute mediump float a_compareValue;\n"; in init()
207 vtx << "varying mediump vec4 v_color;\n"; in init()
212 vtx << "varying mediump vec4 v_value0;\n"; in init()
213 vtx << "varying mediump vec4 v_value1;\n"; in init()
219 vtx << "varying mediump float v_compareValue;\n"; in init()
[all …]
/external/mesa3d/src/gallium/drivers/r600/
Dr600_asm.c222 LIST_INITHEAD(&cf->vtx); in r600_bytecode_cf()
239 struct r600_bytecode_vtx *vtx = CALLOC_STRUCT(r600_bytecode_vtx); in r600_bytecode_vtx() local
241 if (vtx == NULL) in r600_bytecode_vtx()
243 LIST_INITHEAD(&vtx->list); in r600_bytecode_vtx()
244 return vtx; in r600_bytecode_vtx()
1591 int r600_bytecode_add_vtx(struct r600_bytecode *bc, const struct r600_bytecode_vtx *vtx) in r600_bytecode_add_vtx() argument
1598 memcpy(nvtx, vtx, sizeof(struct r600_bytecode_vtx)); in r600_bytecode_add_vtx()
1625 LIST_ADDTAIL(&nvtx->list, &bc->cf_last->vtx); in r600_bytecode_add_vtx()
1632 bc->ngpr = MAX2(bc->ngpr, vtx->src_gpr + 1); in r600_bytecode_add_vtx()
1633 bc->ngpr = MAX2(bc->ngpr, vtx->dst_gpr + 1); in r600_bytecode_add_vtx()
[all …]
/external/deqp/modules/internal/
DditFrameworkTests.cpp586 c.vtx[0] = tcu::Vec4(-1.0f, -1.0f, 0.5f, 1.0f); in ConstantInterpolationTest()
587 c.vtx[1] = tcu::Vec4(-1.0f, +1.0f, 0.5f, 1.0f); in ConstantInterpolationTest()
588 c.vtx[2] = tcu::Vec4(+1.0f, -1.0f, 0.5f, 1.0f); in ConstantInterpolationTest()
596 c.vtx[0] = tcu::Vec4(-1.0f, +1.0f, 0.5f, 1.0f); in ConstantInterpolationTest()
597 c.vtx[1] = tcu::Vec4(+1.0f, -1.0f, 0.5f, 1.0f); in ConstantInterpolationTest()
598 c.vtx[2] = tcu::Vec4(+1.0f, +1.0f, 0.5f, 1.0f); in ConstantInterpolationTest()
605 c.vtx[0] = tcu::Vec4(-1.0f, -1.0f, 0.5f, 1.0f); in ConstantInterpolationTest()
606 c.vtx[1] = tcu::Vec4(-1.0f, +1.0f, 0.5f, 1.0f); in ConstantInterpolationTest()
607 c.vtx[2] = tcu::Vec4(+1.0f, -1.0f, 0.5f, 1.0f); in ConstantInterpolationTest()
614 c.vtx[0] = tcu::Vec4(-1.0f, +1.0f, 0.5f, 1.0f); in ConstantInterpolationTest()
[all …]
/external/opencv/cxcore/src/
Dcxdatastructs.cpp2962 cvGraphRemoveVtxByPtr( CvGraph* graph, CvGraphVtx* vtx ) in cvGraphRemoveVtxByPtr() argument
2970 if( !graph || !vtx ) in cvGraphRemoveVtxByPtr()
2973 if( !CV_IS_SET_ELEM(vtx)) in cvGraphRemoveVtxByPtr()
2979 CvGraphEdge *edge = vtx->first; in cvGraphRemoveVtxByPtr()
2982 cvGraphRemoveEdgeByPtr( graph, edge->vtx[0], edge->vtx[1] ); in cvGraphRemoveVtxByPtr()
2985 cvSetRemoveByPtr( (CvSet*)graph, vtx ); in cvGraphRemoveVtxByPtr()
2998 CvGraphVtx *vtx = 0; in cvGraphRemoveVtx() local
3007 vtx = cvGetGraphVtx( graph, index ); in cvGraphRemoveVtx()
3008 if( !vtx ) in cvGraphRemoveVtx()
3014 CvGraphEdge *edge = vtx->first; in cvGraphRemoveVtx()
[all …]
/external/mesa3d/src/mesa/drivers/dri/r200/
Dr200_maos_arrays.c190 if (vfmt0 != rmesa->hw.vtx.cmd[VTX_VTXFMT_0] || in r200EmitArrays()
191 vfmt1 != rmesa->hw.vtx.cmd[VTX_VTXFMT_1]) { in r200EmitArrays()
192 R200_STATECHANGE( rmesa, vtx ); in r200EmitArrays()
193 rmesa->hw.vtx.cmd[VTX_VTXFMT_0] = vfmt0; in r200EmitArrays()
194 rmesa->hw.vtx.cmd[VTX_VTXFMT_1] = vfmt1; in r200EmitArrays()
/external/mesa3d/src/mesa/drivers/dri/radeon/
Dradeon_maos_arrays.c151 GLuint vtx, unit; in radeonEmitArrays() local
248 vtx = (rmesa->hw.tcl.cmd[TCL_OUTPUT_VTXFMT] & in radeonEmitArrays()
266 vtx |= RADEON_Q_BIT(unit); in radeonEmitArrays()
270 vtx |= RADEON_Q_BIT(unit); in radeonEmitArrays()
281 if (vtx != rmesa->hw.tcl.cmd[TCL_OUTPUT_VTXFMT]) { in radeonEmitArrays()
283 rmesa->hw.tcl.cmd[TCL_OUTPUT_VTXFMT] = vtx; in radeonEmitArrays()
Dradeon_maos_verts.c316 GLuint vtx = (rmesa->hw.tcl.cmd[TCL_OUTPUT_VTXFMT] & in radeonEmitArrays() local
352 vtx |= RADEON_Q_BIT(unit); in radeonEmitArrays()
355 vtx |= RADEON_Q_BIT(unit); in radeonEmitArrays()
366 if (vtx != rmesa->hw.tcl.cmd[TCL_OUTPUT_VTXFMT]) { in radeonEmitArrays()
368 rmesa->hw.tcl.cmd[TCL_OUTPUT_VTXFMT] = vtx; in radeonEmitArrays()
/external/opencv/cvaux/src/
Denmin.cpp77 CvGraphVtx vtx;
408 int tempVtxIdx = cvGraphVtxIdx( graph, graphEdge -> vtx[1] );
450 int tempVtxIdx = cvGraphVtxIdx( graph, graphEdge -> vtx[1] );
454 tempVtxIdx = cvGraphVtxIdx( graph, graphEdge -> vtx[0] );
559 hlpGraphEdge -> vtx[1] );
583 hlpGraphEdge -> vtx[1] );
631 CvGraphVtx* hlpGraphVtx2 = hlpGraphEdge -> vtx[ 1 ];
639 CvGraphVtx* hlpGraphVtx3 = hlpGraphEdge -> vtx[0];
658 CvGraphVtx* hlpGraphVtx3 = hlpGraphEdge -> vtx[1];
740 hlpGraphVtx2 = hlpGraphEdge -> vtx[ 1 ];
[all …]
/external/eigen/unsupported/test/
Dopenglsupport.cpp72 GLint createShader(const char* vtx, const char* frg) in createShader() argument
79 glShaderSource(vtx_id, 1, &vtx, 0); in createShader()
219 const char* vtx = "void main(void) { gl_Position = gl_Vertex; }\n"; in test_openglsupport() local
236 GLint prg_id = createShader(vtx,frg); in test_openglsupport()
264 GLint prg_id = createShader(vtx,frg); in test_openglsupport()
294 GLint prg_id = createShader(vtx,frg); in test_openglsupport()
319 GLint prg_id = createShader(vtx,frg); in test_openglsupport()
/external/mesa3d/src/mesa/drivers/dri/nouveau/
Dnouveau_swtnl_t.c108 struct tnl_clipspace *vtx = &tnl->clipspace; in swtnl_choose_attrs() local
147 render->attrs[attr].stride = vtx->vertex_size; in swtnl_choose_attrs()
168 struct tnl_clipspace *vtx = &TNL_CONTEXT(ctx)->clipspace; in swtnl_bind_vertices() local
171 for (i = 0; i < vtx->attr_count; i++) { in swtnl_bind_vertices()
172 struct tnl_clipspace_attr *ta = &vtx->attr[i]; in swtnl_bind_vertices()

123