/external/chromium_org/third_party/mesa/src/src/mesa/tnl/ |
D | t_vertex.c | 40 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 …]
|
D | t_vertex_generic.c | 874 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 …]
|
D | t_vertex_sse.c | 309 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/tnl/ |
D | t_vertex.c | 40 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 …]
|
D | t_vertex_generic.c | 874 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 …]
|
D | t_vertex_sse.c | 309 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/ |
D | vbo_exec_draw.c | 47 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 …]
|
D | vbo_exec_api.c | 69 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 …]
|
D | vbo_exec_eval.c | 158 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/chromium_org/third_party/mesa/src/src/mesa/vbo/ |
D | vbo_exec_draw.c | 47 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 …]
|
D | vbo_exec_api.c | 69 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 …]
|
D | vbo_exec_eval.c | 158 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/ |
D | es3fShaderIndexingTests.cpp | 223 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 …]
|
D | es3fShaderLoopTests.cpp | 245 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 …]
|
D | es3fShaderSwitchTests.cpp | 91 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/modules/gles2/functional/ |
D | es2fShaderIndexingTests.cpp | 253 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 …]
|
D | es2fShaderLoopTests.cpp | 277 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 …]
|
D | es2fShaderAlgorithmTests.cpp | 75 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/ |
D | es3pShaderControlStatementTests.cpp | 190 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/ |
D | es2pShaderControlStatementTests.cpp | 190 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/ |
D | r600_asm.c | 222 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/chromium_org/third_party/mesa/src/src/gallium/drivers/r600/ |
D | r600_asm.c | 222 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/opencv/cxcore/src/ |
D | cxdatastructs.cpp | 2962 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/ |
D | r200_maos_arrays.c | 190 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/chromium_org/third_party/mesa/src/src/mesa/drivers/dri/r200/ |
D | r200_maos_arrays.c | 190 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()
|