Home
last modified time | relevance | path

Searched refs:prim (Results 1 – 25 of 192) sorted by relevance

12345678

/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/transform_feedback/
DvktPrimitivesGeneratedQueryTests.cpp793 for (deUint32 prim = 0; prim < primitivesGenerated; ++prim) in fillVertexBuffer() local
795 vertices[prim] = tcu::Vec2(-1.0f + 2.0f * (float)prim * step, 0.0f); in fillVertexBuffer()
801 for (deUint32 prim = 0; prim < primitivesGenerated; ++prim) in fillVertexBuffer() local
803 vertices[2* prim + 0] = tcu::Vec2(-1.0f + 2.0f * (float)prim * step, 1.0f); in fillVertexBuffer()
804 vertices[2* prim + 1] = tcu::Vec2(-1.0f + 2.0f * (float)prim * step, -1.0f); in fillVertexBuffer()
813 for (deUint32 prim = 1; prim < primitivesGenerated; ++prim) in fillVertexBuffer() local
815 if (prim % 2 == 0) in fillVertexBuffer()
817 vertices[1 + prim] = tcu::Vec2(-1.0f + 2.0f * (float)prim * step, 1.0f); in fillVertexBuffer()
821 vertices[1 + prim] = tcu::Vec2(-1.0f + 2.0f * (float)prim * step, -1.0f); in fillVertexBuffer()
832 for (deUint32 prim = 1; prim < primitivesGenerated; ++prim) in fillVertexBuffer() local
[all …]
/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/transform_feedback/
DvktPrimitivesGeneratedQueryTests.cpp793 for (deUint32 prim = 0; prim < primitivesGenerated; ++prim) in fillVertexBuffer() local
795 vertices[prim] = tcu::Vec2(-1.0f + 2.0f * (float)prim * step, 0.0f); in fillVertexBuffer()
801 for (deUint32 prim = 0; prim < primitivesGenerated; ++prim) in fillVertexBuffer() local
803 vertices[2* prim + 0] = tcu::Vec2(-1.0f + 2.0f * (float)prim * step, 1.0f); in fillVertexBuffer()
804 vertices[2* prim + 1] = tcu::Vec2(-1.0f + 2.0f * (float)prim * step, -1.0f); in fillVertexBuffer()
813 for (deUint32 prim = 1; prim < primitivesGenerated; ++prim) in fillVertexBuffer() local
815 if (prim % 2 == 0) in fillVertexBuffer()
817 vertices[1 + prim] = tcu::Vec2(-1.0f + 2.0f * (float)prim * step, 1.0f); in fillVertexBuffer()
821 vertices[1 + prim] = tcu::Vec2(-1.0f + 2.0f * (float)prim * step, -1.0f); in fillVertexBuffer()
832 for (deUint32 prim = 1; prim < primitivesGenerated; ++prim) in fillVertexBuffer() local
[all …]
/third_party/mesa3d/src/gallium/drivers/svga/
Dsvga_draw_arrays.c93 enum pipe_prim_type prim, in retrieve_or_generate_indices() argument
106 if (hwtnl->index_cache[prim][i].buffer != NULL && in retrieve_or_generate_indices()
107 hwtnl->index_cache[prim][i].generate == generate) { in retrieve_or_generate_indices()
108 if (compare(hwtnl->index_cache[prim][i].gen_nr, gen_nr, gen_type)) { in retrieve_or_generate_indices()
110 hwtnl->index_cache[prim][i].buffer); in retrieve_or_generate_indices()
118 pipe_resource_reference(&hwtnl->index_cache[prim][i].buffer, in retrieve_or_generate_indices()
123 i, hwtnl->index_cache[prim][i].gen_nr); in retrieve_or_generate_indices()
135 if (hwtnl->index_cache[prim][i].buffer == NULL) { in retrieve_or_generate_indices()
139 else if (hwtnl->index_cache[prim][i].gen_nr < smallest) { in retrieve_or_generate_indices()
141 smallest_size = hwtnl->index_cache[prim][i].gen_nr; in retrieve_or_generate_indices()
[all …]
Dsvga_draw_private.h153 SVGA3dPrimitiveRange prim[QSZ]; member
201 enum pipe_prim_type prim) in svga_need_unfilled_fallback() argument
203 if (u_reduced_prim(prim) != PIPE_PRIM_TRIANGLES) { in svga_need_unfilled_fallback()
208 if ((prim == PIPE_PRIM_QUADS || in svga_need_unfilled_fallback()
209 prim == PIPE_PRIM_QUAD_STRIP || in svga_need_unfilled_fallback()
210 prim == PIPE_PRIM_POLYGON) && in svga_need_unfilled_fallback()
241 enum pipe_prim_type prim,
/third_party/mesa3d/src/util/indices/
Du_indices.c63 u_index_prim_type_convert(unsigned hw_mask, enum pipe_prim_type prim, bool pv_matches) in u_index_prim_type_convert() argument
65 if ((hw_mask & (1<<prim)) && pv_matches) in u_index_prim_type_convert()
66 return prim; in u_index_prim_type_convert()
68 switch (prim) { in u_index_prim_type_convert()
123 enum pipe_prim_type prim, in u_index_translator() argument
148 if ((hw_mask & (1<<prim)) && in u_index_translator()
158 *out_prim = prim; in u_index_translator()
163 *out_translate = translate[in_idx][out_idx][in_pv][out_pv][prim_restart][prim]; in u_index_translator()
164 *out_prim = u_index_prim_type_convert(hw_mask, prim, in_pv == out_pv); in u_index_translator()
165 *out_nr = u_index_count_converted_indices(hw_mask, in_pv == out_pv, prim, nr); in u_index_translator()
[all …]
Du_unfilled_gen.py123 def name(intype, outtype, prim): argument
125 return 'generate_' + prim + '_' + outtype
127 return 'translate_' + prim + '_' + intype + '2' + outtype
129 def preamble(intype, outtype, prim): argument
130 print('static void ' + name( intype, outtype, prim ) + '(')
152 preamble(intype, outtype, prim='tris')
160 preamble(intype, outtype, prim='tristrip')
168 preamble(intype, outtype, prim='trifan')
177 preamble(intype, outtype, prim='polygon')
185 preamble(intype, outtype, prim='quads')
[all …]
Du_indices_gen.py183 def name(intype, outtype, inpv, outpv, pr, prim): argument
185 return 'generate_' + prim + '_' + outtype + '_' + inpv + '2' + outpv
187 … return 'translate_' + prim + '_' + intype + '2' + outtype + '_' + inpv + '2' + outpv + '_' + pr
189 def preamble(intype, outtype, inpv, outpv, pr, prim): argument
190 print('static void ' + name( intype, outtype, inpv, outpv, pr, prim ) + '(')
229 preamble(intype, outtype, inpv, outpv, pr, prim='points')
236 preamble(intype, outtype, inpv, outpv, pr, prim='lines')
243 preamble(intype, outtype, inpv, outpv, pr, prim='linestrip')
250 preamble(intype, outtype, inpv, outpv, pr, prim='lineloop')
269 preamble(intype, outtype, inpv, outpv, pr, prim='tris')
[all …]
Du_unfilled_indices.c98 nr_lines(enum pipe_prim_type prim, unsigned nr) in nr_lines() argument
100 switch (prim) { in nr_lines()
129 u_unfilled_translator(enum pipe_prim_type prim, in u_unfilled_translator() argument
141 assert(u_reduced_prim(prim) == PIPE_PRIM_TRIANGLES); in u_unfilled_translator()
173 *out_translate = translate_line[in_idx][out_idx][prim]; in u_unfilled_translator()
174 *out_nr = nr_lines( prim, nr ); in u_unfilled_translator()
189 u_unfilled_generator(enum pipe_prim_type prim, in u_unfilled_generator() argument
200 assert(u_reduced_prim(prim) == PIPE_PRIM_TRIANGLES); in u_unfilled_generator()
220 *out_generate = generate_line[out_idx][prim]; in u_unfilled_generator()
221 *out_nr = nr_lines( prim, nr ); in u_unfilled_generator()
Du_indices.h87 u_index_prim_type_convert(unsigned hw_mask, enum pipe_prim_type prim, bool pv_matches);
96 u_index_count_converted_indices(unsigned hw_mask, bool pv_matches, enum pipe_prim_type prim, unsign…
108 enum pipe_prim_type prim,
131 enum pipe_prim_type prim,
151 u_unfilled_translator(enum pipe_prim_type prim,
164 u_unfilled_generator(enum pipe_prim_type prim,
/third_party/mindspore/patches/
D0021-add-mindir-ops.patch597 if (prim != nullptr && value != nullptr) {
610 if (prim != nullptr && value != nullptr) {
642 + auto prim = static_cast<const schema::Primitive *>(primitive);
643 + auto value = prim->value_as_BatchToSpace();
644 + if (prim != nullptr && value != nullptr) {
663 + auto prim = static_cast<schema::Primitive *>(*primitive);
664 + auto value = prim->value_as_BatchToSpace();
665 + if (prim != nullptr && value != nullptr) {
682 + auto prim = static_cast<const schema::Primitive *>(primitive);
683 + auto value = prim->value_as_BatchToSpace();
[all …]
D0012-add-mindir-ops.patch290 auto value = prim->value_as_QuantDTypeCast();
291 if (prim != nullptr && value != nullptr) {
299 auto value = prim->value_as_QuantDTypeCast();
300 if (prim != nullptr && value != nullptr) {
307 + auto new_addr = MindIRMemoryManager::GetInstance()->CreatePrimitiveFromBuilder(fbb, prim);
316 + auto prim = static_cast<const schema::Primitive *>(primitive);
317 + auto value = prim->value_as_QuantDTypeCast();
318 + if (prim != nullptr && value != nullptr) {
330 + auto prim = static_cast<schema::Primitive *>(*primitive);
331 + auto value = prim->value_as_QuantDTypeCast();
[all …]
D0008-upgrade-flatbuffers-fix_crash.patch436 + auto prim = static_cast<const schema::Primitive *>(primitive);
437 + auto value = prim->value_as_BroadcastTo();
438 + if (prim != nullptr && value != nullptr) {
454 + auto prim = static_cast<schema::Primitive *>(*primitive);
455 + auto value = prim->value_as_BroadcastTo();
456 + if (prim != nullptr && value != nullptr) {
463 + auto new_addr = MindIRMemoryManager::GetInstance()->CreatePrimitiveFromBuilder(fbb, prim);
483 + auto prim = static_cast<const schema::Primitive *>(primitive);
484 + auto value_ = prim->value_as_ConstantOfShape();
485 + if (prim != nullptr && value_ != nullptr) {
[all …]
/third_party/ffmpeg/libavfilter/
Dfflcms2.c152 const AVColorPrimariesDesc *prim; in ff_icc_profile_generate() local
155 if (!(prim = av_csp_primaries_desc_from_id(color_prim))) in ff_icc_profile_generate()
161 &(cmsCIExyY) { av_q2d(prim->wp.x), av_q2d(prim->wp.y), 1.0 }, in ff_icc_profile_generate()
163 .Red = { av_q2d(prim->prim.r.x), av_q2d(prim->prim.r.y), 1.0 }, in ff_icc_profile_generate()
164 .Green = { av_q2d(prim->prim.g.x), av_q2d(prim->prim.g.y), 1.0 }, in ff_icc_profile_generate()
165 .Blue = { av_q2d(prim->prim.b.x), av_q2d(prim->prim.b.y), 1.0 }, in ff_icc_profile_generate()
216 AVPrimaryCoefficients *prim = &out_primaries->prim; in ff_icc_profile_read_primaries() local
245 XYZ_xy(dst[0], &prim->r); in ff_icc_profile_read_primaries()
246 XYZ_xy(dst[1], &prim->g); in ff_icc_profile_read_primaries()
247 XYZ_xy(dst[2], &prim->b); in ff_icc_profile_read_primaries()
/third_party/mesa3d/src/gallium/auxiliary/draw/
Ddraw_pipe.c123 struct prim_header prim; in do_point() local
125 prim.flags = 0; in do_point()
126 prim.pad = 0; in do_point()
127 prim.v[0] = (struct vertex_header *)v0; in do_point()
129 draw->pipeline.first->point(draw->pipeline.first, &prim); in do_point()
143 struct prim_header prim; in do_line() local
145 prim.flags = flags; in do_line()
146 prim.pad = 0; in do_line()
147 prim.v[0] = (struct vertex_header *)v0; in do_line()
148 prim.v[1] = (struct vertex_header *)v1; in do_line()
[all …]
Ddraw_pipe_vbuf.c142 vbuf_tri(struct draw_stage *stage, struct prim_header *prim) in vbuf_tri() argument
150 vbuf->indices[vbuf->nr_indices++] = emit_vertex(vbuf, prim->v[i]); in vbuf_tri()
156 vbuf_line(struct draw_stage *stage, struct prim_header *prim) in vbuf_line() argument
164 vbuf->indices[vbuf->nr_indices++] = emit_vertex(vbuf, prim->v[i]); in vbuf_line()
170 vbuf_point(struct draw_stage *stage, struct prim_header *prim) in vbuf_point() argument
176 vbuf->indices[vbuf->nr_indices++] = emit_vertex(vbuf, prim->v[0]); in vbuf_point()
186 vbuf_start_prim(struct vbuf_stage *vbuf, uint prim) in vbuf_start_prim() argument
193 vbuf->render->set_primitive(vbuf->render, prim); in vbuf_start_prim()
268 vbuf_first_tri(struct draw_stage *stage, struct prim_header *prim) in vbuf_first_tri() argument
275 stage->tri(stage, prim); in vbuf_first_tri()
[all …]
Ddraw_split_tmp.h39 __FUNCTION__, prim, start, count, max_count_simple, in FUNC()
43 if (prim == PIPE_PRIM_PATCHES) { in FUNC()
47 draw_pt_split_prim(prim, &first, &incr); in FUNC()
81 switch (prim) { in FUNC()
96 if (prim == PIPE_PRIM_TRIANGLE_STRIP || in FUNC()
97 prim == PIPE_PRIM_TRIANGLE_STRIP_ADJACENCY) { in FUNC()
/third_party/mesa3d/src/mesa/state_tracker/
Dst_cb_feedback.c125 feedback_tri( struct draw_stage *stage, struct prim_header *prim ) in feedback_tri() argument
131 feedback_vertex(fs->ctx, draw, prim->v[0]); in feedback_tri()
132 feedback_vertex(fs->ctx, draw, prim->v[1]); in feedback_tri()
133 feedback_vertex(fs->ctx, draw, prim->v[2]); in feedback_tri()
138 feedback_line( struct draw_stage *stage, struct prim_header *prim ) in feedback_line() argument
149 feedback_vertex(fs->ctx, draw, prim->v[0]); in feedback_line()
150 feedback_vertex(fs->ctx, draw, prim->v[1]); in feedback_line()
155 feedback_point( struct draw_stage *stage, struct prim_header *prim ) in feedback_point() argument
160 feedback_vertex(fs->ctx, draw, prim->v[0]); in feedback_point()
213 select_tri( struct draw_stage *stage, struct prim_header *prim ) in select_tri() argument
[all …]
Dst_cb_rasterpos.c70 struct _mesa_prim prim; member
93 rastpos_tri( struct draw_stage *stage, struct prim_header *prim ) in rastpos_tri() argument
100 rastpos_line( struct draw_stage *stage, struct prim_header *prim ) in rastpos_line() argument
139 rastpos_point(struct draw_stage *stage, struct prim_header *prim) in rastpos_point() argument
156 pos = prim->v[0]->data[0]; in rastpos_point()
166 update_attrib(ctx, outputMapping, prim->v[0], in rastpos_point()
170 update_attrib(ctx, outputMapping, prim->v[0], in rastpos_point()
175 update_attrib(ctx, outputMapping, prim->v[0], in rastpos_point()
211 rs->prim.mode = GL_POINTS; in new_draw_rastpos_stage()
212 rs->prim.begin = 1; in new_draw_rastpos_stage()
[all …]
/third_party/ffmpeg/libavutil/
Dcsp.c92 if (!p->prim.r.x.num) in av_csp_primaries_desc_from_id()
111 if (!ref->prim.r.x.num) in av_csp_primaries_id_from_desc()
114 delta = abs_sub_q(prm->prim.r.x, ref->prim.r.x); in av_csp_primaries_id_from_desc()
115 delta = av_add_q(delta, abs_sub_q(prm->prim.r.y, ref->prim.r.y)); in av_csp_primaries_id_from_desc()
116 delta = av_add_q(delta, abs_sub_q(prm->prim.g.x, ref->prim.g.x)); in av_csp_primaries_id_from_desc()
117 delta = av_add_q(delta, abs_sub_q(prm->prim.g.y, ref->prim.g.y)); in av_csp_primaries_id_from_desc()
118 delta = av_add_q(delta, abs_sub_q(prm->prim.b.x, ref->prim.b.x)); in av_csp_primaries_id_from_desc()
119 delta = av_add_q(delta, abs_sub_q(prm->prim.b.y, ref->prim.b.y)); in av_csp_primaries_id_from_desc()
/third_party/mesa3d/src/gallium/auxiliary/util/
Du_prim.h52 u_decomposed_prim(enum pipe_prim_type prim) in u_decomposed_prim() argument
54 switch (prim) { in u_decomposed_prim()
68 return prim; in u_decomposed_prim()
77 u_reduced_prim(enum pipe_prim_type prim) in u_reduced_prim() argument
79 switch (prim) { in u_reduced_prim()
97 u_assembled_prim(enum pipe_prim_type prim) in u_assembled_prim() argument
99 switch (prim) { in u_assembled_prim()
107 return prim; in u_assembled_prim()
119 u_prim_vertex_count(enum pipe_prim_type prim) in u_prim_vertex_count() argument
138 return (likely(prim < PIPE_PRIM_MAX)) ? &prim_table[prim] : NULL; in u_prim_vertex_count()
[all …]
/third_party/mesa3d/src/mesa/vbo/
Dvbo_save_loopback.c97 const struct _mesa_prim *prim, in loopback_prim() argument
102 GLuint start = prim->start; in loopback_prim()
103 const GLuint end = start + prim->count; in loopback_prim()
108 _mesa_lookup_prim_by_nr(prim->mode), in loopback_prim()
109 prim->begin ? "begin" : "..", in loopback_prim()
110 prim->end ? "end" : "..", in loopback_prim()
114 if (prim->begin) { in loopback_prim()
115 CALL_Begin(ctx->Exec, (prim->mode)); in loopback_prim()
130 if (prim->end) { in loopback_prim()
/third_party/mesa3d/src/gallium/drivers/i915/
Di915_prim_emit.c118 emit_prim(struct draw_stage *stage, struct prim_header *prim, unsigned hwprim, in emit_prim() argument
154 emit_hw_vertex(i915, prim->v[i]); in emit_prim()
158 setup_tri(struct draw_stage *stage, struct prim_header *prim) in setup_tri() argument
160 emit_prim(stage, prim, PRIM3D_TRILIST, 3); in setup_tri()
164 setup_line(struct draw_stage *stage, struct prim_header *prim) in setup_line() argument
166 emit_prim(stage, prim, PRIM3D_LINELIST, 2); in setup_line()
170 setup_point(struct draw_stage *stage, struct prim_header *prim) in setup_point() argument
172 emit_prim(stage, prim, PRIM3D_POINTLIST, 1); in setup_point()
/third_party/skia/third_party/externals/angle2/src/libANGLE/renderer/metal/shaders/
Drewrite_indices.metal223 uint prim [[thread_position_in_grid]])
229 if(prim < primCount)
234 onIndex = prim;
235 onOutIndex = prim;
238 onIndex = prim * 2 + 0;
239 onOutIndex = prim * 2 + 0;
242 onIndex = prim;
243 onOutIndex = prim * 2 + 0;
246 onIndex = prim * 3 + 0;
247 onOutIndex = prim * 3 + 0;
[all …]
/third_party/mesa3d/src/gallium/drivers/v3d/
Dv3dx_draw.c1163 cl_emit(&job->bcl, INDIRECT_INDEXED_INSTANCED_PRIM_LIST, prim) { in v3d_draw_vbo()
1164 prim.index_type = ffs(info->index_size) - 1; in v3d_draw_vbo()
1166 prim.address_of_indices_list = in v3d_draw_vbo()
1169 prim.mode = hw_prim_type | prim_tf_enable; in v3d_draw_vbo()
1170 prim.enable_primitive_restarts = info->primitive_restart; in v3d_draw_vbo()
1172 prim.number_of_draw_indirect_indexed_records = indirect->draw_count; in v3d_draw_vbo()
1174 prim.stride_in_multiples_of_4_bytes = indirect->stride >> 2; in v3d_draw_vbo()
1175 prim.address = cl_address(v3d_resource(indirect->buffer)->bo, in v3d_draw_vbo()
1179 cl_emit(&job->bcl, INDEXED_INSTANCED_PRIM_LIST, prim) { in v3d_draw_vbo()
1180 prim.index_type = ffs(info->index_size) - 1; in v3d_draw_vbo()
[all …]
/third_party/skia/third_party/externals/spirv-cross/shaders-msl/frag/
Dbarycentric-nv.msl22.frag12 int prim = gl_PrimitiveID;
13 vec2 uv0 = uvs[3 * prim + 0];
14 vec2 uv1 = uvs[3 * prim + 1];
15 vec2 uv2 = uvs[3 * prim + 2];

12345678