Home
last modified time | relevance | path

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

1234

/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 …]
/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.cpp246 std::ostringstream vtx; in createGenericLoopCase() local
248 std::ostringstream& op = isVertexCase ? vtx : frag; in createGenericLoopCase()
250 vtx << "#version 300 es\n"; in createGenericLoopCase()
253 vtx << "in highp vec4 a_position;\n"; in createGenericLoopCase()
254 vtx << "in highp vec4 a_coords;\n"; in createGenericLoopCase()
258 vtx << "in mediump float a_one;\n"; in createGenericLoopCase()
262 vtx << "out mediump vec3 v_color;\n"; in createGenericLoopCase()
267 vtx << "out mediump vec4 v_coords;\n"; in createGenericLoopCase()
272 vtx << "out mediump float v_one;\n"; in createGenericLoopCase()
295 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()
/external/deqp/external/vulkancts/modules/vulkan/shaderrender/
DvktShaderRenderIndexingTests.cpp261 std::ostringstream vtx; in createVaryingArrayCase() local
262 vtx << "#version 310 es\n"; in createVaryingArrayCase()
263 vtx << "layout(location = 0) in highp vec4 a_position;\n"; in createVaryingArrayCase()
264 vtx << "layout(location = 1) in highp vec4 a_coords;\n"; in createVaryingArrayCase()
267 vtx << "layout(std140, binding = 0) uniform something0 { mediump int ui_zero; };\n"; in createVaryingArrayCase()
268 vtx << "layout(std140, binding = 1) uniform something1 { mediump int ui_one; };\n"; in createVaryingArrayCase()
269 vtx << "layout(std140, binding = 2) uniform something2 { mediump int ui_two; };\n"; in createVaryingArrayCase()
270 vtx << "layout(std140, binding = 3) uniform something3 { mediump int ui_three; };\n"; in createVaryingArrayCase()
273 vtx << "layout(std140, binding = 4) uniform something { mediump int ui_four; };\n"; in createVaryingArrayCase()
274 vtx << "layout(location = 0) out ${PRECISION} ${VAR_TYPE} var[${ARRAY_LEN}];\n"; in createVaryingArrayCase()
[all …]
DvktShaderRenderLoopTests.cpp308 std::ostringstream vtx; in createGenericLoopCase() local
310 std::ostringstream& op = isVertexCase ? vtx : frag; in createGenericLoopCase()
312 vtx << "#version 310 es\n"; in createGenericLoopCase()
315 vtx << "layout(location=0) in highp vec4 a_position;\n"; in createGenericLoopCase()
316 vtx << "layout(location=1) in highp vec4 a_coords;\n"; in createGenericLoopCase()
320 vtx << "layout(location=3) in mediump float a_one;\n"; in createGenericLoopCase()
324 vtx << "layout(location=0) out mediump vec3 v_color;\n"; in createGenericLoopCase()
329 vtx << "layout(location=0) out mediump vec4 v_coords;\n"; in createGenericLoopCase()
334 vtx << "layout(location=1) out mediump float v_one;\n"; in createGenericLoopCase()
374 vtx << "\n"; in createGenericLoopCase()
[all …]
DvktShaderRenderSwitchTests.cpp108 std::ostringstream vtx; in makeSwitchCase() local
110 std::ostringstream& op = isVertex ? vtx : frag; in makeSwitchCase()
112 vtx << "#version 310 es\n" in makeSwitchCase()
120 vtx << "layout(location = 0) out mediump vec4 v_color;\n"; in makeSwitchCase()
125 vtx << "layout(location = 0) out highp vec4 v_coords;\n"; in makeSwitchCase()
132 vtx << "\n" in makeSwitchCase()
155 vtx << " v_color = vec4(res, 1.0);\n"; in makeSwitchCase()
160 vtx << " v_coords = a_coords;\n"; in makeSwitchCase()
164 vtx << "}\n"; in makeSwitchCase()
167 …return de::MovePtr<ShaderSwitchCase>(new ShaderSwitchCase(testCtx, name, desc, isVertex, vtx.str()… in makeSwitchCase()
/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 …]
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 …]
Des2fShaderLoopTests.cpp278 std::ostringstream vtx; in createGenericLoopCase() local
280 std::ostringstream& op = isVertexCase ? vtx : frag; in createGenericLoopCase()
282 vtx << "attribute highp vec4 a_position;\n"; in createGenericLoopCase()
283 vtx << "attribute highp vec4 a_coords;\n"; in createGenericLoopCase()
286 vtx << "attribute mediump float a_one;\n"; in createGenericLoopCase()
290 vtx << "varying mediump vec3 v_color;\n"; in createGenericLoopCase()
295 vtx << "varying mediump vec4 v_coords;\n"; in createGenericLoopCase()
300 vtx << "varying mediump float v_one;\n"; in createGenericLoopCase()
323 vtx << "\n"; in createGenericLoopCase()
324 vtx << "void main()\n"; in createGenericLoopCase()
[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 …]
/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/libgdx/extensions/gdx-bullet/jni/src/bullet/BulletCollision/CollisionShapes/
DbtCapsuleShape.cpp48 btVector3 vtx; in localGetSupportingVertexWithoutMargin() local
58 vtx = pos +vec*(radius) - vec * getMargin(); in localGetSupportingVertexWithoutMargin()
59 newDot = vec.dot(vtx); in localGetSupportingVertexWithoutMargin()
63 supVec = vtx; in localGetSupportingVertexWithoutMargin()
70 vtx = pos +vec*(radius) - vec * getMargin(); in localGetSupportingVertexWithoutMargin()
71 newDot = vec.dot(vtx); in localGetSupportingVertexWithoutMargin()
75 supVec = vtx; in localGetSupportingVertexWithoutMargin()
94 btVector3 vtx; in batchedUnitVectorGetSupportingVertexWithoutMargin() local
99 vtx = pos +vec*(radius) - vec * getMargin(); in batchedUnitVectorGetSupportingVertexWithoutMargin()
100 newDot = vec.dot(vtx); in batchedUnitVectorGetSupportingVertexWithoutMargin()
[all …]
/external/opencv3/modules/imgproc/src/
Dsubdivision2d.cpp75 CV_DbgAssert((size_t)vidx < vtx.size()); in edgeOrg()
76 *orgpt = vtx[vidx].pt; in edgeOrg()
87 CV_DbgAssert((size_t)vidx < vtx.size()); in edgeDst()
88 *dstpt = vtx[vidx].pt; in edgeDst()
96 CV_DbgAssert((size_t)vertex < vtx.size()); in getVertex()
98 *firstEdge = vtx[vertex].firstEdge; in getVertex()
99 return vtx[vertex].pt; in getVertex()
183 vtx[orgPt].firstEdge = edge; in setEdgePoints()
184 vtx[dstPt].firstEdge = edge ^ 2; in setEdgePoints()
258 vtx.push_back(Vertex()); in newPoint()
[all …]
/external/opencv3/modules/core/test/
Dtest_ds.cpp171 CvTsSimpleSet* vtx; member
177 int max_vtx_count = graph->vtx->max_count; in cvTsClearSimpleGraph()
178 cvTsClearSimpleSet( graph->vtx ); in cvTsClearSimpleGraph()
191 graph->vtx = cvTsCreateSimpleSet( max_vtx_count, vtx_size ); in cvTsCreateSimpleGraph()
205 cvTsReleaseSimpleSet( &(graph[0]->vtx) ); in cvTsReleaseSimpleGraph()
213 return cvTsSimpleSetAdd( graph->vtx, vertex ); in cvTsSimpleGraphAddVertex()
219 int i, max_vtx_count = graph->vtx->max_count; in cvTsSimpleGraphRemoveVertex()
221 cvTsSimpleSetRemove( graph->vtx, index ); in cvTsSimpleGraphRemoveVertex()
236 assert( cvTsSimpleSetFind( graph->vtx, idx1 ) && in cvTsSimpleGraphAddEdge()
237 cvTsSimpleSetFind( graph->vtx, idx2 )); in cvTsSimpleGraphAddEdge()
[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.cpp590 c.vtx[0] = tcu::Vec4(-1.0f, -1.0f, 0.5f, 1.0f); in ConstantInterpolationTest()
591 c.vtx[1] = tcu::Vec4(-1.0f, +1.0f, 0.5f, 1.0f); in ConstantInterpolationTest()
592 c.vtx[2] = tcu::Vec4(+1.0f, -1.0f, 0.5f, 1.0f); in ConstantInterpolationTest()
600 c.vtx[0] = tcu::Vec4(-1.0f, +1.0f, 0.5f, 1.0f); in ConstantInterpolationTest()
601 c.vtx[1] = tcu::Vec4(+1.0f, -1.0f, 0.5f, 1.0f); in ConstantInterpolationTest()
602 c.vtx[2] = tcu::Vec4(+1.0f, +1.0f, 0.5f, 1.0f); in ConstantInterpolationTest()
609 c.vtx[0] = tcu::Vec4(-1.0f, -1.0f, 0.5f, 1.0f); in ConstantInterpolationTest()
610 c.vtx[1] = tcu::Vec4(-1.0f, +1.0f, 0.5f, 1.0f); in ConstantInterpolationTest()
611 c.vtx[2] = tcu::Vec4(+1.0f, -1.0f, 0.5f, 1.0f); in ConstantInterpolationTest()
618 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/opencv3/modules/core/src/
Ddatastructs.cpp2635 cvGraphRemoveVtxByPtr( CvGraph* graph, CvGraphVtx* vtx ) in cvGraphRemoveVtxByPtr() argument
2639 if( !graph || !vtx ) in cvGraphRemoveVtxByPtr()
2642 if( !CV_IS_SET_ELEM(vtx)) in cvGraphRemoveVtxByPtr()
2648 CvGraphEdge *edge = vtx->first; in cvGraphRemoveVtxByPtr()
2651 cvGraphRemoveEdgeByPtr( graph, edge->vtx[0], edge->vtx[1] ); in cvGraphRemoveVtxByPtr()
2654 cvSetRemoveByPtr( (CvSet*)graph, vtx ); in cvGraphRemoveVtxByPtr()
2665 CvGraphVtx *vtx = 0; in cvGraphRemoveVtx() local
2670 vtx = cvGetGraphVtx( graph, index ); in cvGraphRemoveVtx()
2671 if( !vtx ) in cvGraphRemoveVtx()
2677 CvGraphEdge *edge = vtx->first; in cvGraphRemoveVtx()
[all …]
/external/opencv3/samples/cpp/
Dminarea.cpp51 Point2f center, vtx[4]; in main() local
54 box.points(vtx); in main()
64 line(img, vtx[i], vtx[(i+1)%4], Scalar(0, 255, 0), 1, LINE_AA); in main()
Dfitellipse.cpp88 Point2f vtx[4]; in processImage() local
89 box.points(vtx); in processImage()
91 line(cimage, vtx[j], vtx[(j+1)%4], Scalar(0,255,0), 1, LINE_AA); in processImage()

1234