Home
last modified time | relevance | path

Searched refs:velems (Results 1 – 25 of 55) sorted by relevance

123

/third_party/mesa3d/src/gallium/drivers/svga/
Dsvga_pipe_vertex.c124 struct svga_velems_state *velems) in define_input_element_object() argument
129 assert(velems->count <= PIPE_MAX_ATTRIBS); in define_input_element_object()
132 for (i = 0; i < velems->count; i++) { in define_input_element_object()
133 const struct pipe_vertex_element *elem = velems->velem + i; in define_input_element_object()
140 velems->decl_type[i] = in define_input_element_object()
157 velems->need_swvfetch = TRUE; in define_input_element_object()
161 velems->attrib_is_pure_int |= (1 << i); in define_input_element_object()
165 velems->adjust_attrib_w_1 |= (1 << i); in define_input_element_object()
169 velems->adjust_attrib_utof |= (1 << i); in define_input_element_object()
172 velems->adjust_attrib_itof |= (1 << i); in define_input_element_object()
[all …]
Dsvga_state_vdecl.c45 const struct pipe_vertex_element *ve = svga->curr.velems->velem; in emit_hw_vs_vdecl()
51 assert(svga->curr.velems->count >= in emit_hw_vs_vdecl()
69 for (i = 0; i < svga->curr.velems->count; i++) { in emit_hw_vs_vdecl()
88 for (i = 0; i < svga->curr.velems->count; i++) { in emit_hw_vs_vdecl()
102 decls[i].identity.type = svga->curr.velems->decl_type[i]; in emit_hw_vs_vdecl()
124 svga->curr.velems->count, in emit_hw_vs_vdecl()
127 svga->curr.velems->id); in emit_hw_vs_vdecl()
Dsvga_state_vs.c134 key->vs.adjust_attrib_range = svga->curr.velems->adjust_attrib_range; in make_vs_key()
135 key->vs.adjust_attrib_w_1 = svga->curr.velems->adjust_attrib_w_1; in make_vs_key()
136 key->vs.attrib_is_pure_int = svga->curr.velems->attrib_is_pure_int; in make_vs_key()
137 key->vs.adjust_attrib_itof = svga->curr.velems->adjust_attrib_itof; in make_vs_key()
138 key->vs.adjust_attrib_utof = svga->curr.velems->adjust_attrib_utof; in make_vs_key()
139 key->vs.attrib_is_bgra = svga->curr.velems->attrib_is_bgra; in make_vs_key()
140 key->vs.attrib_puint_to_snorm = svga->curr.velems->attrib_puint_to_snorm; in make_vs_key()
141 key->vs.attrib_puint_to_uscaled = svga->curr.velems->attrib_puint_to_uscaled; in make_vs_key()
142 key->vs.attrib_puint_to_sscaled = svga->curr.velems->attrib_puint_to_sscaled; in make_vs_key()
Dsvga_state_need_swtnl.c38 if (!svga->curr.velems) { in update_need_swvfetch()
43 if (svga->state.sw.need_swvfetch != svga->curr.velems->need_swvfetch) { in update_need_swvfetch()
44 svga->state.sw.need_swvfetch = svga->curr.velems->need_swvfetch; in update_need_swvfetch()
/third_party/mesa3d/src/gallium/drivers/llvmpipe/
Dlp_state_vertex.c46 struct lp_velems_state *velems; in llvmpipe_create_vertex_elements_state() local
48 velems = (struct lp_velems_state *) MALLOC(sizeof(struct lp_velems_state)); in llvmpipe_create_vertex_elements_state()
49 if (velems) { in llvmpipe_create_vertex_elements_state()
50 velems->count = count; in llvmpipe_create_vertex_elements_state()
51 memcpy(velems->velem, attribs, sizeof(*attribs) * count); in llvmpipe_create_vertex_elements_state()
53 return velems; in llvmpipe_create_vertex_elements_state()
58 void *velems) in llvmpipe_bind_vertex_elements_state() argument
61 struct lp_velems_state *lp_velems = (struct lp_velems_state *) velems; in llvmpipe_bind_vertex_elements_state()
63 llvmpipe->velems = lp_velems; in llvmpipe_bind_vertex_elements_state()
67 if (velems) in llvmpipe_bind_vertex_elements_state()
[all …]
/third_party/mesa3d/src/gallium/drivers/softpipe/
Dsp_state_vertex.c47 struct sp_velems_state *velems; in softpipe_create_vertex_elements_state() local
49 velems = (struct sp_velems_state *) MALLOC(sizeof(struct sp_velems_state)); in softpipe_create_vertex_elements_state()
50 if (velems) { in softpipe_create_vertex_elements_state()
51 velems->count = count; in softpipe_create_vertex_elements_state()
52 memcpy(velems->velem, attribs, sizeof(*attribs) * count); in softpipe_create_vertex_elements_state()
54 return velems; in softpipe_create_vertex_elements_state()
60 void *velems) in softpipe_bind_vertex_elements_state() argument
63 struct sp_velems_state *sp_velems = (struct sp_velems_state *) velems; in softpipe_bind_vertex_elements_state()
65 softpipe->velems = sp_velems; in softpipe_bind_vertex_elements_state()
75 softpipe_delete_vertex_elements_state(struct pipe_context *pipe, void *velems) in softpipe_delete_vertex_elements_state() argument
[all …]
/third_party/mesa3d/src/gallium/auxiliary/postprocess/
Dpp_program.c114 p->velem.velems[0].src_offset = 0; in pp_init_prog()
115 p->velem.velems[0].instance_divisor = 0; in pp_init_prog()
116 p->velem.velems[0].vertex_buffer_index = 0; in pp_init_prog()
117 p->velem.velems[0].src_format = PIPE_FORMAT_R32G32B32A32_FLOAT; in pp_init_prog()
118 p->velem.velems[1].src_offset = 1 * 4 * sizeof(float); in pp_init_prog()
119 p->velem.velems[1].instance_divisor = 0; in pp_init_prog()
120 p->velem.velems[1].vertex_buffer_index = 0; in pp_init_prog()
121 p->velem.velems[1].src_format = PIPE_FORMAT_R32G32B32A32_FLOAT; in pp_init_prog()
/third_party/mesa3d/src/gallium/frontends/xa/
Dxa_renderer.c91 struct cso_velems_state velems; in renderer_draw() local
92 velems.count = r->attrs_per_vertex; in renderer_draw()
93 memcpy(velems.velems, r->velems, sizeof(r->velems[0]) * velems.count); in renderer_draw()
95 cso_set_vertex_elements(r->cso, &velems); in renderer_draw()
134 memset(&r->velems[0], 0, sizeof(r->velems[0]) * 3); in renderer_init_state()
136 r->velems[i].src_offset = i * 4 * sizeof(float); in renderer_init_state()
137 r->velems[i].instance_divisor = 0; in renderer_init_state()
138 r->velems[i].vertex_buffer_index = 0; in renderer_init_state()
139 r->velems[i].src_format = PIPE_FORMAT_R32G32B32A32_FLOAT; in renderer_init_state()
528 struct cso_velems_state velems; in renderer_draw_yuv() local
[all …]
/third_party/mesa3d/src/mesa/state_tracker/
Dst_cb_drawtex.c173 struct cso_velems_state velems; in st_DrawTex() local
310 velems.velems[i].src_offset = i * 4 * sizeof(float); in st_DrawTex()
311 velems.velems[i].instance_divisor = 0; in st_DrawTex()
312 velems.velems[i].vertex_buffer_index = 0; in st_DrawTex()
313 velems.velems[i].src_format = PIPE_FORMAT_R32G32B32A32_FLOAT; in st_DrawTex()
314 velems.velems[i].dual_slot = false; in st_DrawTex()
316 velems.count = numAttribs; in st_DrawTex()
318 cso_set_vertex_elements(cso, &velems); in st_DrawTex()
Dst_atom_array.cpp126 init_velement(velements->velems, &attrib->Format, 0, in setup_arrays()
172 init_velement(velements->velems, &attrib->Format, off, in setup_arrays()
236 init_velement(velements->velems, &attrib->Format, cursor - data, in st_setup_current()
288 init_velement(velements->velems, &attrib->Format, 0, 0, in st_setup_current_user()
413 screen->create_vertex_state(screen, &vbuffer[0], velements.velems, in st_create_gallium_vertex_state()
Dst_context.c543 st->util_velems.velems[0].src_offset = 0; in st_create_context_priv()
544 st->util_velems.velems[0].vertex_buffer_index = 0; in st_create_context_priv()
545 st->util_velems.velems[0].src_format = PIPE_FORMAT_R32G32B32_FLOAT; in st_create_context_priv()
546 st->util_velems.velems[1].src_offset = 3 * sizeof(float); in st_create_context_priv()
547 st->util_velems.velems[1].vertex_buffer_index = 0; in st_create_context_priv()
548 st->util_velems.velems[1].src_format = PIPE_FORMAT_R32G32B32A32_FLOAT; in st_create_context_priv()
549 st->util_velems.velems[2].src_offset = 7 * sizeof(float); in st_create_context_priv()
550 st->util_velems.velems[2].vertex_buffer_index = 0; in st_create_context_priv()
551 st->util_velems.velems[2].src_format = PIPE_FORMAT_R32G32_FLOAT; in st_create_context_priv()
Dst_pbo.c242 velem.velems[0].src_offset = 0; in st_pbo_draw()
243 velem.velems[0].instance_divisor = 0; in st_pbo_draw()
244 velem.velems[0].vertex_buffer_index = 0; in st_pbo_draw()
245 velem.velems[0].src_format = PIPE_FORMAT_R32G32_FLOAT; in st_pbo_draw()
246 velem.velems[0].dual_slot = false; in st_pbo_draw()
/third_party/mesa3d/src/gallium/tests/trivial/
Dtri.c207 p->velem.velems[0].src_offset = 0 * 4 * sizeof(float); /* offset 0, first element */ in init_prog()
208 p->velem.velems[0].instance_divisor = 0; in init_prog()
209 p->velem.velems[0].vertex_buffer_index = 0; in init_prog()
210 p->velem.velems[0].src_format = PIPE_FORMAT_R32G32B32A32_FLOAT; in init_prog()
212 p->velem.velems[1].src_offset = 1 * 4 * sizeof(float); /* offset 16, second element */ in init_prog()
213 p->velem.velems[1].instance_divisor = 0; in init_prog()
214 p->velem.velems[1].vertex_buffer_index = 0; in init_prog()
215 p->velem.velems[1].src_format = PIPE_FORMAT_R32G32B32A32_FLOAT; in init_prog()
Dquad-tex.c264 p->velem.velems[0].src_offset = 0 * 4 * sizeof(float); /* offset 0, first element */ in init_prog()
265 p->velem.velems[0].instance_divisor = 0; in init_prog()
266 p->velem.velems[0].vertex_buffer_index = 0; in init_prog()
267 p->velem.velems[0].src_format = PIPE_FORMAT_R32G32B32A32_FLOAT; in init_prog()
269 p->velem.velems[1].src_offset = 1 * 4 * sizeof(float); /* offset 16, second element */ in init_prog()
270 p->velem.velems[1].instance_divisor = 0; in init_prog()
271 p->velem.velems[1].vertex_buffer_index = 0; in init_prog()
272 p->velem.velems[1].src_format = PIPE_FORMAT_R32G32B32A32_FLOAT; in init_prog()
/third_party/mesa3d/src/gallium/drivers/i915/
Di915_state.c987 struct i915_velems_state *velems; in i915_create_vertex_elements_state() local
989 velems = in i915_create_vertex_elements_state()
991 if (velems) { in i915_create_vertex_elements_state()
992 velems->count = count; in i915_create_vertex_elements_state()
993 memcpy(velems->velem, attribs, sizeof(*attribs) * count); in i915_create_vertex_elements_state()
995 return velems; in i915_create_vertex_elements_state()
999 i915_bind_vertex_elements_state(struct pipe_context *pipe, void *velems) in i915_bind_vertex_elements_state() argument
1002 struct i915_velems_state *i915_velems = (struct i915_velems_state *)velems; in i915_bind_vertex_elements_state()
1004 if (i915->velems == velems) in i915_bind_vertex_elements_state()
1007 i915->velems = velems; in i915_bind_vertex_elements_state()
[all …]
/third_party/mesa3d/src/gallium/drivers/r300/
Dr300_render.c154 struct pipe_vertex_element *velem = r300->velems->velem; in r300_split_index_bias()
163 for (i = 0; i < r300->velems->count; i++) { in r300_split_index_bias()
324 if (count * r300->velems->vertex_size_dwords > IMMD_DWORDS) { in immd_is_good_idea()
343 unsigned vertex_element_count = r300->velems->count; in r300_draw_arrays_immediate()
347 unsigned vertex_size = r300->velems->vertex_size_dwords; in r300_draw_arrays_immediate()
370 velem = &r300->velems->velem[i]; in r300_draw_arrays_immediate()
371 size[i] = r300->velems->format_size[i] / 4; in r300_draw_arrays_immediate()
743 unsigned i, nr = r300->velems->count; in r300_max_vertex_count()
744 struct pipe_vertex_element *velems = r300->velems->velem; in r300_max_vertex_count() local
749 &r300->vertex_buffer[velems[i].vertex_buffer_index]; in r300_max_vertex_count()
[all …]
Dr300_state.c1828 static void r300_vertex_psc(struct r300_vertex_element_state *velems) in r300_vertex_psc() argument
1830 struct r300_vertex_stream_state *vstream = &velems->vertex_stream; in r300_vertex_psc()
1838 for (i = 0; i < velems->count; i++) { in r300_vertex_psc()
1839 format = velems->velem[i].src_format; in r300_vertex_psc()
1875 struct r300_vertex_element_state *velems; in r300_create_vertex_elements_state() local
1890 velems = CALLOC_STRUCT(r300_vertex_element_state); in r300_create_vertex_elements_state()
1891 if (!velems) in r300_create_vertex_elements_state()
1894 velems->count = count; in r300_create_vertex_elements_state()
1895 memcpy(velems->velem, attribs, sizeof(struct pipe_vertex_element) * count); in r300_create_vertex_elements_state()
1900 r300_vertex_psc(velems); in r300_create_vertex_elements_state()
[all …]
/third_party/mesa3d/src/gallium/auxiliary/driver_ddebug/
Ddd_pipe.h215 struct pipe_vertex_element velems[PIPE_MAX_ATTRIBS]; member
217 } velems; member
243 struct dd_state *velems; member
272 struct dd_state velems; member
Ddd_draw.c386 if (dstate->velems) { in dd_dump_draw_vbo()
388 dstate->velems->state.velems.count); in dd_dump_draw_vbo()
389 for (i = 0; i < dstate->velems->state.velems.count; i++) { in dd_dump_draw_vbo()
391 DUMP_I(vertex_element, &dstate->velems->state.velems.velems[i], i); in dd_dump_draw_vbo()
807 state->base.velems = &state->velems; in dd_init_copy_of_draw_state()
914 if (src->velems) in dd_copy_draw_state()
915 dst->velems->state.velems = src->velems->state.velems; in dd_copy_draw_state()
917 dst->velems = NULL; in dd_copy_draw_state()
/third_party/mesa3d/src/gallium/auxiliary/util/
Du_vbuf.c386 const struct cso_velems_state *velems) in u_vbuf_set_vertex_elements_internal() argument
394 key_size = sizeof(struct pipe_vertex_element) * velems->count + in u_vbuf_set_vertex_elements_internal()
396 hash_key = cso_construct_key((void*)velems, key_size); in u_vbuf_set_vertex_elements_internal()
398 (void*)velems, key_size); in u_vbuf_set_vertex_elements_internal()
402 memcpy(&cso->state, velems, key_size); in u_vbuf_set_vertex_elements_internal()
403 cso->data = u_vbuf_create_vertex_elements(mgr, velems->count, in u_vbuf_set_vertex_elements_internal()
404 velems->velems); in u_vbuf_set_vertex_elements_internal()
421 const struct cso_velems_state *velems) in u_vbuf_set_vertex_elements() argument
423 mgr->ve = u_vbuf_set_vertex_elements_internal(mgr, velems); in u_vbuf_set_vertex_elements()
818 mgr->fallback_velems.velems[i].instance_divisor = mgr->ve->ve[i].instance_divisor; in u_vbuf_translate_begin()
[all …]
Du_helpers.c181 util_lower_uint64_vertex_elements(const struct pipe_vertex_element **velems, in util_lower_uint64_vertex_elements() argument
185 const struct pipe_vertex_element *input = *velems; in util_lower_uint64_vertex_elements()
251 *velems = tmp; in util_lower_uint64_vertex_elements()
/third_party/mesa3d/src/gallium/auxiliary/cso_cache/
Dcso_context.c1030 const struct cso_velems_state *velems) in cso_set_vertex_elements_direct() argument
1041 key_size = sizeof(struct pipe_vertex_element) * velems->count + in cso_set_vertex_elements_direct()
1043 hash_key = cso_construct_key((void*)velems, key_size); in cso_set_vertex_elements_direct()
1045 (void*)velems, key_size); in cso_set_vertex_elements_direct()
1052 memcpy(&cso->state, velems, key_size); in cso_set_vertex_elements_direct()
1055 unsigned new_count = velems->count; in cso_set_vertex_elements_direct()
1056 const struct pipe_vertex_element *new_elems = velems->velems; in cso_set_vertex_elements_direct()
1083 const struct cso_velems_state *velems) in cso_set_vertex_elements() argument
1088 u_vbuf_set_vertex_elements(vbuf, velems); in cso_set_vertex_elements()
1092 cso_set_vertex_elements_direct(ctx, velems); in cso_set_vertex_elements()
[all …]
Dcso_context.h89 const struct cso_velems_state *velems);
187 const struct cso_velems_state *velems,
/third_party/mesa3d/src/gallium/drivers/radeonsi/
Dsi_state_draw.cpp1805 static bool ALWAYS_INLINE si_set_vb_descriptor(struct si_vertex_elements *velems, in si_set_vb_descriptor() argument
1816 int64_t offset = (int64_t)((int)vb->buffer_offset) + velems->src_offset[index]; in si_set_vb_descriptor()
1829 num_records = (num_records - velems->format_size[index]) / vb->stride + 1; in si_set_vb_descriptor()
1833 uint32_t rsrc_word3 = velems->rsrc_word3[index]; in si_set_vb_descriptor()
1852 void si_set_vertex_buffer_descriptor(struct si_screen *sscreen, struct si_vertex_elements *velems, in si_set_vertex_buffer_descriptor() argument
1858 si_set_vb_descriptor<GFX6>(velems, vb, element_index, out); in si_set_vertex_buffer_descriptor()
1861 si_set_vb_descriptor<GFX7>(velems, vb, element_index, out); in si_set_vertex_buffer_descriptor()
1864 si_set_vb_descriptor<GFX8>(velems, vb, element_index, out); in si_set_vertex_buffer_descriptor()
1867 si_set_vb_descriptor<GFX9>(velems, vb, element_index, out); in si_set_vertex_buffer_descriptor()
1870 si_set_vb_descriptor<GFX10>(velems, vb, element_index, out); in si_set_vertex_buffer_descriptor()
[all …]
/third_party/mesa3d/src/gallium/drivers/zink/
Dzink_state.c718 zstate->velems = *elems; in zink_create_vertex_state()
740 return &zstate->velems.hw_state; in zink_vertex_state_mask()
750 hw_state->dynattribs[i] = zstate->velems.hw_state.dynattribs[idx]; in zink_vertex_state_mask()
754 memcpy(hw_state->dynbindings, zstate->velems.hw_state.dynbindings, in zink_vertex_state_mask()
755 zstate->velems.hw_state.num_bindings * sizeof(VkVertexInputBindingDescription2EXT)); in zink_vertex_state_mask()
759 hw_state->num_bindings = zstate->velems.hw_state.num_bindings; in zink_vertex_state_mask()

123