/third_party/mesa3d/src/mesa/vbo/ |
D | vbo_exec_draw.c | 43 GLuint count = exec->vtx.vert_count; in vbo_exec_debug_verts() 49 exec->vtx.prim_count, in vbo_exec_debug_verts() 50 exec->vtx.vertex_size); in vbo_exec_debug_verts() 52 for (i = 0 ; i < exec->vtx.prim_count ; i++) { in vbo_exec_debug_verts() 55 _mesa_lookup_prim_by_nr(exec->vtx.mode[i]), in vbo_exec_debug_verts() 56 exec->vtx.draw[i].start, in vbo_exec_debug_verts() 57 exec->vtx.draw[i].start + exec->vtx.draw[i].count, in vbo_exec_debug_verts() 58 exec->vtx.markers[i].begin ? "BEGIN" : "(wrap)", in vbo_exec_debug_verts() 59 exec->vtx.markers[i].end ? "END" : "(wrap)"); in vbo_exec_debug_verts() 68 const GLuint sz = exec->vtx.vertex_size; in vbo_exec_copy_vertices() [all …]
|
D | vbo_exec_api.c | 66 if (exec->vtx.prim_count == 0) { in vbo_exec_wrap_buffers() 67 exec->vtx.copied.nr = 0; in vbo_exec_wrap_buffers() 68 exec->vtx.vert_count = 0; in vbo_exec_wrap_buffers() 69 exec->vtx.buffer_ptr = exec->vtx.buffer_map; in vbo_exec_wrap_buffers() 73 unsigned last = exec->vtx.prim_count - 1; in vbo_exec_wrap_buffers() 74 struct pipe_draw_start_count_bias *last_draw = &exec->vtx.draw[last]; in vbo_exec_wrap_buffers() 75 const bool last_begin = exec->vtx.markers[last].begin; in vbo_exec_wrap_buffers() 79 last_draw->count = exec->vtx.vert_count - last_draw->start; in vbo_exec_wrap_buffers() 81 exec->vtx.markers[last].end = 0; in vbo_exec_wrap_buffers() 85 if (exec->vtx.mode[last] == GL_LINE_LOOP && in vbo_exec_wrap_buffers() [all …]
|
D | vbo_exec_eval.c | 144 COPY_SZ_4V( exec->vtx.attrptr[attr], in vbo_exec_do_EvalCoord1f() 145 exec->vtx.attr[attr].size, in vbo_exec_do_EvalCoord1f() 194 COPY_SZ_4V( exec->vtx.attrptr[attr], in vbo_exec_do_EvalCoord2f() 195 exec->vtx.attr[attr].size, in vbo_exec_do_EvalCoord2f() 233 COPY_SZ_4V( exec->vtx.attrptr[VBO_ATTRIB_NORMAL], in vbo_exec_do_EvalCoord2f() 234 exec->vtx.attr[VBO_ATTRIB_NORMAL].size, in vbo_exec_do_EvalCoord2f() 244 if (exec->vtx.attr[VBO_ATTRIB_POS].size == 4) in vbo_exec_do_EvalCoord2f()
|
/third_party/vk-gl-cts/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()
|
D | es3fShaderPrecisionTests.cpp | 71 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 …]
|
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/shaderrender/ |
D | vktShaderRenderIndexingTests.cpp | 266 std::ostringstream vtx; in createVaryingArrayCase() local 267 vtx << "#version 310 es\n"; in createVaryingArrayCase() 268 vtx << "layout(location = 0) in highp vec4 a_position;\n"; in createVaryingArrayCase() 269 vtx << "layout(location = 1) in highp vec4 a_coords;\n"; in createVaryingArrayCase() 272 vtx << "layout(std140, binding = 0) uniform something0 { mediump int ui_zero; };\n"; in createVaryingArrayCase() 273 vtx << "layout(std140, binding = 1) uniform something1 { mediump int ui_one; };\n"; in createVaryingArrayCase() 274 vtx << "layout(std140, binding = 2) uniform something2 { mediump int ui_two; };\n"; in createVaryingArrayCase() 275 vtx << "layout(std140, binding = 3) uniform something3 { mediump int ui_three; };\n"; in createVaryingArrayCase() 278 vtx << "layout(std140, binding = 4) uniform something { mediump int ui_four; };\n"; in createVaryingArrayCase() 279 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()
|
/third_party/vk-gl-cts/modules/gles2/functional/ |
D | es2fShaderIndexingTests.cpp | 258 std::ostringstream vtx; in createVaryingArrayCase() local 259 vtx << "attribute highp vec4 a_position;\n"; in createVaryingArrayCase() 260 vtx << "attribute highp vec4 a_coords;\n"; in createVaryingArrayCase() 262 vtx << "uniform mediump int ui_zero, ui_one, ui_two, ui_three;\n"; in createVaryingArrayCase() 264 vtx << "uniform mediump int ui_four;\n"; in createVaryingArrayCase() 265 vtx << "varying ${PRECISION} ${VAR_TYPE} var[${ARRAY_LEN}];\n"; in createVaryingArrayCase() 266 vtx << "\n"; in createVaryingArrayCase() 267 vtx << "void main()\n"; in createVaryingArrayCase() 268 vtx << "{\n"; in createVaryingArrayCase() 269 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 …]
|
/third_party/vk-gl-cts/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 …]
|
/third_party/vk-gl-cts/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 …]
|
D | es3pShaderOperatorTests.cpp | 1147 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 …]
|
/third_party/vk-gl-cts/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 …]
|
/third_party/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() 1448 …c int r600_bytecode_add_vtx_internal(struct r600_bytecode *bc, const struct r600_bytecode_vtx *vtx, in r600_bytecode_add_vtx_internal() argument 1456 memcpy(nvtx, vtx, sizeof(struct r600_bytecode_vtx)); in r600_bytecode_add_vtx_internal() 1460 if (vtx->buffer_index_mode) in r600_bytecode_add_vtx_internal() 1461 egcm_load_index_reg(bc, vtx->buffer_index_mode - 1, false); in r600_bytecode_add_vtx_internal() 1493 list_addtail(&nvtx->list, &bc->cf_last->vtx); in r600_bytecode_add_vtx_internal() [all …]
|
D | r600_shader.c | 1436 struct r600_bytecode_vtx vtx; in load_sample_position() local 1441 memset(&vtx, 0, sizeof(struct r600_bytecode_vtx)); in load_sample_position() 1442 vtx.op = FETCH_OP_VFETCH; in load_sample_position() 1443 vtx.buffer_id = R600_BUFFER_INFO_CONST_BUFFER; in load_sample_position() 1444 vtx.fetch_type = SQ_VTX_FETCH_NO_INDEX_OFFSET; in load_sample_position() 1448 vtx.src_gpr = ctx->fixed_pt_position_gpr; // SAMPLEID is in .w; in load_sample_position() 1449 vtx.src_sel_x = 3; in load_sample_position() 1464 vtx.src_gpr = t1; in load_sample_position() 1465 vtx.src_sel_x = 0; in load_sample_position() 1467 vtx.mega_fetch_count = 16; in load_sample_position() [all …]
|
/third_party/mesa3d/src/freedreno/ir2/ |
D | disasm-a2xx.c | 344 instr_fetch_vtx_t *vtx = &fetch->vtx; in print_fetch_vtx() local 346 if (vtx->pred_select) { in print_fetch_vtx() 350 printf(vtx->pred_condition ? "EQ" : "NE"); in print_fetch_vtx() 353 print_fetch_dst(vtx->dst_reg, vtx->dst_swiz); in print_fetch_vtx() 354 printf(" = R%u.", vtx->src_reg); in print_fetch_vtx() 355 printf("%c", chan_names[vtx->src_swiz & 0x3]); in print_fetch_vtx() 356 if (fetch_types[vtx->format].name) { in print_fetch_vtx() 357 printf(" %s", fetch_types[vtx->format].name); in print_fetch_vtx() 359 printf(" TYPE(0x%x)", vtx->format); in print_fetch_vtx() 361 printf(" %s", vtx->format_comp_all ? "SIGNED" : "UNSIGNED"); in print_fetch_vtx() [all …]
|
/third_party/vk-gl-cts/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 …]
|
/third_party/mesa3d/src/gallium/drivers/freedreno/a2xx/ |
D | ir2_assemble.c | 186 instr_fetch_vtx_t *vtx = &bc->fetch.vtx; in fill_instr() local 188 assert(instr->fetch.vtx.const_idx <= 0x1f); in fill_instr() 189 assert(instr->fetch.vtx.const_idx_sel <= 0x3); in fill_instr() 191 vtx->src_reg = src_to_reg(ctx, src); in fill_instr() 192 vtx->src_swiz = fetch_swizzle(ctx, src, 1); in fill_instr() 193 vtx->dst_reg = dst_to_reg(ctx, instr); in fill_instr() 194 vtx->dst_swiz = fetch_dst_swiz(ctx, instr); in fill_instr() 196 vtx->must_be_one = 1; in fill_instr() 197 vtx->const_index = instr->fetch.vtx.const_idx; in fill_instr() 198 vtx->const_index_sel = instr->fetch.vtx.const_idx_sel; in fill_instr() [all …]
|
D | fd2_program.c | 179 instr->stride = ctx->vtx.vertexbuf.vb[elem->vertex_buffer_index].stride; in patch_vtx_fetch() 185 struct fd_vertex_stateobj *vtx, in patch_fetches() argument 194 (instr->vtx.const_index - 20) * 3 + instr->vtx.const_index_sel; in patch_fetches() 195 patch_vtx_fetch(ctx, &vtx->pipe[idx], &instr->vtx, fi->vtx.dst_swiz); in patch_fetches() 243 patch_fetches(ctx, vpi, ctx->vtx.vtx, &ctx->tex[PIPE_SHADER_VERTEX]); in fd2_program_emit()
|
/third_party/mesa3d/src/gallium/drivers/r600/sfn/ |
D | sfn_assembler.cpp | 666 struct r600_bytecode_vtx vtx; in visit() local 667 memset(&vtx, 0, sizeof(vtx)); in visit() 668 vtx.op = fetch_instr.opcode(); in visit() 669 vtx.buffer_id = fetch_instr.resource_id(); in visit() 670 vtx.fetch_type = fetch_instr.fetch_type(); in visit() 671 vtx.src_gpr = fetch_instr.src().sel(); in visit() 672 vtx.src_sel_x = fetch_instr.src().chan(); in visit() 673 vtx.mega_fetch_count = fetch_instr.mega_fetch_count(); in visit() 674 vtx.dst_gpr = fetch_instr.dst().sel(); in visit() 675 vtx.dst_sel_x = fetch_instr.dest_swizzle(0); /* SEL_X */ in visit() [all …]
|