Home
last modified time | relevance | path

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

12345

/third_party/mesa3d/src/mesa/tnl/
Dt_vertex.c42 static GLboolean match_fastpath( struct tnl_clipspace *vtx, in match_fastpath() argument
47 if (vtx->attr_count != fp->attr_count) in match_fastpath()
50 for (j = 0; j < vtx->attr_count; j++) in match_fastpath()
51 if (vtx->attr[j].format != fp->attr[j].format || in match_fastpath()
52 vtx->attr[j].inputsize != fp->attr[j].size || in match_fastpath()
53 vtx->attr[j].vertoffset != fp->attr[j].offset) in match_fastpath()
57 if (vtx->vertex_size != fp->vertex_size) in match_fastpath()
60 for (j = 0; j < vtx->attr_count; j++) in match_fastpath()
61 if (vtx->attr[j].inputstride != fp->attr[j].stride) in match_fastpath()
68 static GLboolean search_fastpath_emit( struct tnl_clipspace *vtx ) in search_fastpath_emit() argument
[all …]
Dt_vertex_generic.c873 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 …]
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 …]
/third_party/mesa3d/src/mesa/vbo/
Dvbo_exec_draw.c46 GLuint count = exec->vtx.vert_count; in vbo_exec_debug_verts()
52 exec->vtx.prim_count, in vbo_exec_debug_verts()
53 exec->vtx.vertex_size); in vbo_exec_debug_verts()
55 for (i = 0 ; i < exec->vtx.prim_count ; i++) { in vbo_exec_debug_verts()
58 _mesa_lookup_prim_by_nr(exec->vtx.mode[i]), in vbo_exec_debug_verts()
59 exec->vtx.draw[i].start, in vbo_exec_debug_verts()
60 exec->vtx.draw[i].start + exec->vtx.draw[i].count, in vbo_exec_debug_verts()
61 exec->vtx.markers[i].begin ? "BEGIN" : "(wrap)", in vbo_exec_debug_verts()
62 exec->vtx.markers[i].end ? "END" : "(wrap)"); in vbo_exec_debug_verts()
71 const GLuint sz = exec->vtx.vertex_size; in vbo_exec_copy_vertices()
[all …]
Dvbo_exec_api.c78 if (exec->vtx.prim_count == 0) { in vbo_exec_wrap_buffers()
79 exec->vtx.copied.nr = 0; in vbo_exec_wrap_buffers()
80 exec->vtx.vert_count = 0; in vbo_exec_wrap_buffers()
81 exec->vtx.buffer_ptr = exec->vtx.buffer_map; in vbo_exec_wrap_buffers()
85 unsigned last = exec->vtx.prim_count - 1; in vbo_exec_wrap_buffers()
86 struct pipe_draw_start_count_bias *last_draw = &exec->vtx.draw[last]; in vbo_exec_wrap_buffers()
87 const bool last_begin = exec->vtx.markers[last].begin; in vbo_exec_wrap_buffers()
91 last_draw->count = exec->vtx.vert_count - last_draw->start; in vbo_exec_wrap_buffers()
93 exec->vtx.markers[last].end = 0; in vbo_exec_wrap_buffers()
97 if (exec->vtx.mode[last] == GL_LINE_LOOP && in vbo_exec_wrap_buffers()
[all …]
/third_party/vk-gl-cts/modules/gles3/functional/
Des3fShaderIndexingTests.cpp224 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 …]
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()
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/shaderrender/
DvktShaderRenderIndexingTests.cpp266 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 …]
DvktShaderRenderLoopTests.cpp317 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 …]
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()
/third_party/vk-gl-cts/modules/gles2/functional/
Des2fShaderIndexingTests.cpp258 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 …]
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 …]
/third_party/vk-gl-cts/external/openglcts/modules/common/
DglcShaderIndexingTests.cpp251 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 …]
DglcShaderLoopTests.cpp224 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/
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 …]
/third_party/vk-gl-cts/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 …]
/third_party/mesa3d/src/gallium/drivers/r600/
Dr600_asm.c59 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()
1370 …c int r600_bytecode_add_vtx_internal(struct r600_bytecode *bc, const struct r600_bytecode_vtx *vtx, in r600_bytecode_add_vtx_internal() argument
1378 memcpy(nvtx, vtx, sizeof(struct r600_bytecode_vtx)); in r600_bytecode_add_vtx_internal()
1382 if (vtx->buffer_index_mode) in r600_bytecode_add_vtx_internal()
1383 egcm_load_index_reg(bc, vtx->buffer_index_mode - 1, false); in r600_bytecode_add_vtx_internal()
1415 list_addtail(&nvtx->list, &bc->cf_last->vtx); in r600_bytecode_add_vtx_internal()
[all …]
Dr600_shader.c1422 struct r600_bytecode_vtx vtx; in load_sample_position() local
1427 memset(&vtx, 0, sizeof(struct r600_bytecode_vtx)); in load_sample_position()
1428 vtx.op = FETCH_OP_VFETCH; in load_sample_position()
1429 vtx.buffer_id = R600_BUFFER_INFO_CONST_BUFFER; in load_sample_position()
1430 vtx.fetch_type = SQ_VTX_FETCH_NO_INDEX_OFFSET; in load_sample_position()
1434 vtx.src_gpr = ctx->fixed_pt_position_gpr; // SAMPLEID is in .w; in load_sample_position()
1435 vtx.src_sel_x = 3; in load_sample_position()
1450 vtx.src_gpr = t1; in load_sample_position()
1451 vtx.src_sel_x = 0; in load_sample_position()
1453 vtx.mega_fetch_count = 16; in load_sample_position()
[all …]
/third_party/mesa3d/src/freedreno/ir2/
Ddisasm-a2xx.c344 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/
DditFrameworkTests.cpp604 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/
Dir2_assemble.c186 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 …]
Dfd2_program.c179 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/mesa/drivers/dri/r200/
Dr200_maos_arrays.c187 if (vfmt0 != rmesa->hw.vtx.cmd[VTX_VTXFMT_0] || in r200EmitArrays()
188 vfmt1 != rmesa->hw.vtx.cmd[VTX_VTXFMT_1]) { in r200EmitArrays()
189 R200_STATECHANGE( rmesa, vtx ); in r200EmitArrays()
190 rmesa->hw.vtx.cmd[VTX_VTXFMT_0] = vfmt0; in r200EmitArrays()
191 rmesa->hw.vtx.cmd[VTX_VTXFMT_1] = vfmt1; in r200EmitArrays()

12345