/external/mesa3d/src/mesa/tnl/ |
D | t_vertex.c | 41 static GLboolean match_fastpath( struct tnl_clipspace *vtx, in match_fastpath() argument 46 if (vtx->attr_count != fp->attr_count) in match_fastpath() 49 for (j = 0; j < vtx->attr_count; j++) in match_fastpath() 50 if (vtx->attr[j].format != fp->attr[j].format || in match_fastpath() 51 vtx->attr[j].inputsize != fp->attr[j].size || in match_fastpath() 52 vtx->attr[j].vertoffset != fp->attr[j].offset) in match_fastpath() 56 if (vtx->vertex_size != fp->vertex_size) in match_fastpath() 59 for (j = 0; j < vtx->attr_count; j++) in match_fastpath() 60 if (vtx->attr[j].inputstride != fp->attr[j].stride) in match_fastpath() 67 static GLboolean search_fastpath_emit( struct tnl_clipspace *vtx ) in search_fastpath_emit() argument [all …]
|
D | t_vertex_generic.c | 873 struct tnl_clipspace *vtx = GET_VERTEX_STATE(ctx); \ 874 struct tnl_clipspace_attr *a = vtx->attr; \ 877 for (i = 0 ; i < count ; i++, v += vtx->vertex_size) { \ 934 struct tnl_clipspace *vtx = GET_VERTEX_STATE(ctx); in EMIT2() local 940 switch (vtx->attr_count) { in EMIT2() 942 if (vtx->attr[0].emit == insert_3f_viewport_3) { in EMIT2() 943 if (vtx->attr[1].emit == insert_4ub_4f_bgra_4) in EMIT2() 945 else if (vtx->attr[1].emit == insert_4ub_4f_rgba_4) in EMIT2() 948 else if (vtx->attr[0].emit == insert_3f_3 && in EMIT2() 949 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 | 44 GLuint count = exec->vtx.vert_count; in vbo_exec_debug_verts() 50 exec->vtx.prim_count, in vbo_exec_debug_verts() 51 exec->vtx.vertex_size); in vbo_exec_debug_verts() 53 for (i = 0 ; i < exec->vtx.prim_count ; i++) { in vbo_exec_debug_verts() 54 struct _mesa_prim *prim = &exec->vtx.prim[i]; in vbo_exec_debug_verts() 78 struct _mesa_prim *last_prim = &exec->vtx.prim[exec->vtx.prim_count - 1]; in vbo_copy_vertices() 81 const GLuint sz = exec->vtx.vertex_size; in vbo_copy_vertices() 82 fi_type *dst = exec->vtx.copied.buffer; in vbo_copy_vertices() 83 const fi_type *src = exec->vtx.buffer_map + last_prim->start * sz; in vbo_copy_vertices() 176 struct gl_vertex_array *arrays = exec->vtx.arrays; in vbo_exec_bind_arrays() [all …]
|
D | vbo_exec_api.c | 67 if (exec->vtx.prim_count == 0) { in vbo_exec_wrap_buffers() 68 exec->vtx.copied.nr = 0; in vbo_exec_wrap_buffers() 69 exec->vtx.vert_count = 0; in vbo_exec_wrap_buffers() 70 exec->vtx.buffer_ptr = exec->vtx.buffer_map; in vbo_exec_wrap_buffers() 73 struct _mesa_prim *last_prim = &exec->vtx.prim[exec->vtx.prim_count - 1]; in vbo_exec_wrap_buffers() 78 last_prim->count = exec->vtx.vert_count - last_prim->start; in vbo_exec_wrap_buffers() 101 if (exec->vtx.vert_count) in vbo_exec_wrap_buffers() 104 exec->vtx.prim_count = 0; in vbo_exec_wrap_buffers() 105 exec->vtx.copied.nr = 0; in vbo_exec_wrap_buffers() 110 assert(exec->vtx.prim_count == 0); in vbo_exec_wrap_buffers() [all …]
|
/external/deqp/modules/gles3/functional/ |
D | es3fShaderIndexingTests.cpp | 224 std::ostringstream vtx; in createVaryingArrayCase() local 225 vtx << "#version 300 es\n"; in createVaryingArrayCase() 226 vtx << "in highp vec4 a_position;\n"; in createVaryingArrayCase() 227 vtx << "in highp vec4 a_coords;\n"; in createVaryingArrayCase() 229 vtx << "uniform mediump int ui_zero, ui_one, ui_two, ui_three;\n"; in createVaryingArrayCase() 231 vtx << "uniform mediump int ui_four;\n"; in createVaryingArrayCase() 232 vtx << "out ${PRECISION} ${VAR_TYPE} var[${ARRAY_LEN}];\n"; in createVaryingArrayCase() 233 vtx << "\n"; in createVaryingArrayCase() 234 vtx << "void main()\n"; in createVaryingArrayCase() 235 vtx << "{\n"; in createVaryingArrayCase() [all …]
|
D | es3fShaderLoopTests.cpp | 246 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 …]
|
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/external/vulkancts/modules/vulkan/shaderrender/ |
D | vktShaderRenderIndexingTests.cpp | 261 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 …]
|
D | vktShaderRenderLoopTests.cpp | 317 std::ostringstream vtx; in createGenericLoopCase() local 319 std::ostringstream& op = isVertexCase ? vtx : frag; in createGenericLoopCase() 321 vtx << "#version 310 es\n"; in createGenericLoopCase() 324 vtx << "layout(location=0) in highp vec4 a_position;\n"; in createGenericLoopCase() 325 vtx << "layout(location=1) in highp vec4 a_coords;\n"; in createGenericLoopCase() 329 vtx << "layout(location=3) in mediump float a_one;\n"; in createGenericLoopCase() 333 vtx << "layout(location=0) out mediump vec3 v_color;\n"; in createGenericLoopCase() 338 vtx << "layout(location=0) out mediump vec4 v_coords;\n"; in createGenericLoopCase() 343 vtx << "layout(location=1) out mediump float v_one;\n"; in createGenericLoopCase() 383 vtx << "\n"; in createGenericLoopCase() [all …]
|
D | vktShaderRenderSwitchTests.cpp | 108 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/ |
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 | 278 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 …]
|
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/external/openglcts/modules/common/ |
D | glcShaderIndexingTests.cpp | 251 std::ostringstream vtx; in createVaryingArrayCase() local 252 vtx << glu::getGLSLVersionDeclaration(glslVersion) << "\n"; in createVaryingArrayCase() 253 vtx << "in highp vec4 a_position;\n"; in createVaryingArrayCase() 254 vtx << "in highp vec4 a_coords;\n"; in createVaryingArrayCase() 256 vtx << "uniform mediump int ui_zero, ui_one, ui_two, ui_three;\n"; in createVaryingArrayCase() 258 vtx << "uniform mediump int ui_four;\n"; in createVaryingArrayCase() 259 vtx << "out ${PRECISION} ${VAR_TYPE} var[${ARRAY_LEN}];\n"; in createVaryingArrayCase() 260 vtx << "\n"; in createVaryingArrayCase() 261 vtx << "void main()\n"; in createVaryingArrayCase() 262 vtx << "{\n"; in createVaryingArrayCase() [all …]
|
D | glcShaderLoopTests.cpp | 224 std::ostringstream vtx; in createGenericLoopCase() local 226 std::ostringstream& op = isVertexCase ? vtx : frag; in createGenericLoopCase() 228 vtx << getGLSLVersionDeclaration(glslVersion) << "\n"; in createGenericLoopCase() 231 vtx << "in highp vec4 a_position;\n"; in createGenericLoopCase() 232 vtx << "in highp vec4 a_coords;\n"; in createGenericLoopCase() 236 vtx << "in mediump float a_one;\n"; in createGenericLoopCase() 240 vtx << "out mediump vec3 v_color;\n"; in createGenericLoopCase() 245 vtx << "out mediump vec4 v_coords;\n"; in createGenericLoopCase() 250 vtx << "out mediump float v_one;\n"; in createGenericLoopCase() 273 vtx << "\n"; in createGenericLoopCase() [all …]
|
D | glcShaderSwitchTests.cpp | 101 std::ostringstream vtx; in makeSwitchCase() local 103 std::ostringstream& op = isVertex ? vtx : frag; in makeSwitchCase() 105 vtx << glu::getGLSLVersionDeclaration(glslVersion) << "\n" in makeSwitchCase() 113 vtx << "out mediump vec4 v_color;\n"; in makeSwitchCase() 118 vtx << "out highp vec4 v_coords;\n"; in makeSwitchCase() 125 vtx << "\n" in makeSwitchCase() 150 vtx << " v_color = vec4(res, 1.0);\n"; in makeSwitchCase() 155 vtx << " v_coords = a_coords;\n"; in makeSwitchCase() 159 vtx << "}\n"; in makeSwitchCase() 162 return new ShaderSwitchCase(context, name, desc, isVertex, vtx.str().c_str(), frag.str().c_str(), in makeSwitchCase()
|
/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/freedreno/a2xx/ |
D | disasm-a2xx.c | 327 instr_fetch_vtx_t *vtx = &fetch->vtx; in print_fetch_vtx() local 329 if (vtx->pred_select) { in print_fetch_vtx() 333 printf(vtx->pred_condition ? "EQ" : "NE"); in print_fetch_vtx() 336 print_fetch_dst(vtx->dst_reg, vtx->dst_swiz); in print_fetch_vtx() 337 printf(" = R%u.", vtx->src_reg); in print_fetch_vtx() 338 printf("%c", chan_names[vtx->src_swiz & 0x3]); in print_fetch_vtx() 339 if (fetch_types[vtx->format].name) { in print_fetch_vtx() 340 printf(" %s", fetch_types[vtx->format].name); in print_fetch_vtx() 342 printf(" TYPE(0x%x)", vtx->format); in print_fetch_vtx() 344 printf(" %s", vtx->format_comp_all ? "SIGNED" : "UNSIGNED"); in print_fetch_vtx() [all …]
|
D | ir-a2xx.c | 294 instr_fetch_vtx_t *vtx = &fetch->vtx; in instr_emit_fetch() local 301 vtx->src_reg = src_reg->num; in instr_emit_fetch() 302 vtx->src_swiz = reg_fetch_src_swiz(src_reg, 1); in instr_emit_fetch() 303 vtx->dst_reg = dst_reg->num; in instr_emit_fetch() 304 vtx->dst_swiz = reg_fetch_dst_swiz(dst_reg); in instr_emit_fetch() 305 vtx->must_be_one = 1; in instr_emit_fetch() 306 vtx->const_index = instr->fetch.const_idx; in instr_emit_fetch() 307 vtx->const_index_sel = instr->fetch.const_idx_sel; in instr_emit_fetch() 308 vtx->format_comp_all = !!instr->fetch.is_signed; in instr_emit_fetch() 309 vtx->num_format_all = !instr->fetch.is_normalized; in instr_emit_fetch() [all …]
|
D | fd2_draw.c | 59 struct fd_vertex_stateobj *vtx = ctx->vtx.vtx; in emit_vertexbufs() local 60 struct fd_vertexbuf_stateobj *vertexbuf = &ctx->vtx.vertexbuf; in emit_vertexbufs() 64 if (!vtx->num_elements) in emit_vertexbufs() 67 for (i = 0; i < vtx->num_elements; i++) { in emit_vertexbufs() 68 struct pipe_vertex_element *elem = &vtx->pipe[i]; in emit_vertexbufs() 79 fd2_emit_vertex_bufs(ctx->batch->draw, 0x78, bufs, vtx->num_elements); in emit_vertexbufs()
|
/external/mesa3d/src/gallium/drivers/r600/ |
D | r600_asm.c | 59 LIST_INITHEAD(&cf->vtx); in r600_bytecode_cf() 77 struct r600_bytecode_vtx *vtx = CALLOC_STRUCT(r600_bytecode_vtx); in r600_bytecode_vtx() local 79 if (!vtx) in r600_bytecode_vtx() 81 LIST_INITHEAD(&vtx->list); in r600_bytecode_vtx() 82 return vtx; in r600_bytecode_vtx() 1337 …c int r600_bytecode_add_vtx_internal(struct r600_bytecode *bc, const struct r600_bytecode_vtx *vtx, in r600_bytecode_add_vtx_internal() argument 1345 memcpy(nvtx, vtx, sizeof(struct r600_bytecode_vtx)); in r600_bytecode_add_vtx_internal() 1349 if (vtx->buffer_index_mode) in r600_bytecode_add_vtx_internal() 1350 egcm_load_index_reg(bc, vtx->buffer_index_mode - 1, false); in r600_bytecode_add_vtx_internal() 1382 LIST_ADDTAIL(&nvtx->list, &bc->cf_last->vtx); in r600_bytecode_add_vtx_internal() [all …]
|
D | r600_shader.c | 1255 struct r600_bytecode_vtx vtx; in load_sample_position() local 1262 memset(&vtx, 0, sizeof(struct r600_bytecode_vtx)); in load_sample_position() 1263 vtx.op = FETCH_OP_VFETCH; in load_sample_position() 1264 vtx.buffer_id = R600_BUFFER_INFO_CONST_BUFFER; in load_sample_position() 1265 vtx.fetch_type = SQ_VTX_FETCH_NO_INDEX_OFFSET; in load_sample_position() 1267 vtx.src_gpr = ctx->fixed_pt_position_gpr; // SAMPLEID is in .w; in load_sample_position() 1268 vtx.src_sel_x = 3; in load_sample_position() 1283 vtx.src_gpr = t1; in load_sample_position() 1284 vtx.src_sel_x = 0; in load_sample_position() 1286 vtx.mega_fetch_count = 16; in load_sample_position() [all …]
|
/external/deqp/modules/internal/ |
D | ditFrameworkTests.cpp | 604 c.vtx[0] = tcu::Vec4(-1.0f, -1.0f, 0.5f, 1.0f); in ConstantInterpolationTest() 605 c.vtx[1] = tcu::Vec4(-1.0f, +1.0f, 0.5f, 1.0f); in ConstantInterpolationTest() 606 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() 615 c.vtx[1] = tcu::Vec4(+1.0f, -1.0f, 0.5f, 1.0f); in ConstantInterpolationTest() 616 c.vtx[2] = tcu::Vec4(+1.0f, +1.0f, 0.5f, 1.0f); in ConstantInterpolationTest() 623 c.vtx[0] = tcu::Vec4(-1.0f, -1.0f, 0.5f, 1.0f); in ConstantInterpolationTest() 624 c.vtx[1] = tcu::Vec4(-1.0f, +1.0f, 0.5f, 1.0f); in ConstantInterpolationTest() 625 c.vtx[2] = tcu::Vec4(+1.0f, -1.0f, 0.5f, 1.0f); in ConstantInterpolationTest() 632 c.vtx[0] = tcu::Vec4(-1.0f, +1.0f, 0.5f, 1.0f); in ConstantInterpolationTest() [all …]
|