Home
last modified time | relevance | path

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

123

/external/mesa3d/src/gallium/drivers/svga/
Dsvga_pipe_vertex.c120 struct svga_velems_state *velems) in define_input_element_object() argument
125 assert(velems->count <= PIPE_MAX_ATTRIBS); in define_input_element_object()
128 for (i = 0; i < velems->count; i++) { in define_input_element_object()
129 const struct pipe_vertex_element *elem = velems->velem + i; in define_input_element_object()
136 velems->decl_type[i] = in define_input_element_object()
153 velems->need_swvfetch = TRUE; in define_input_element_object()
157 velems->attrib_is_pure_int |= (1 << i); in define_input_element_object()
161 velems->adjust_attrib_w_1 |= (1 << i); in define_input_element_object()
165 velems->adjust_attrib_utof |= (1 << i); in define_input_element_object()
168 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.c196 key->vs.adjust_attrib_range = svga->curr.velems->adjust_attrib_range; in make_vs_key()
197 key->vs.adjust_attrib_w_1 = svga->curr.velems->adjust_attrib_w_1; in make_vs_key()
198 key->vs.attrib_is_pure_int = svga->curr.velems->attrib_is_pure_int; in make_vs_key()
199 key->vs.adjust_attrib_itof = svga->curr.velems->adjust_attrib_itof; in make_vs_key()
200 key->vs.adjust_attrib_utof = svga->curr.velems->adjust_attrib_utof; in make_vs_key()
201 key->vs.attrib_is_bgra = svga->curr.velems->attrib_is_bgra; in make_vs_key()
202 key->vs.attrib_puint_to_snorm = svga->curr.velems->attrib_puint_to_snorm; in make_vs_key()
203 key->vs.attrib_puint_to_uscaled = svga->curr.velems->attrib_puint_to_uscaled; in make_vs_key()
204 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()
/external/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 …]
/external/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 …]
/external/mesa3d/src/gallium/drivers/swr/
Dswr_draw.cpp126 struct swr_vertex_element_state *velems = ctx->velems; in swr_draw_vbo() local
128 velems->fsState.cutIndex = info->restart_index; in swr_draw_vbo()
130 velems->fsState.cutIndex = 0; in swr_draw_vbo()
131 velems->fsState.bEnableCutIndex = info->primitive_restart; in swr_draw_vbo()
132 velems->fsState.bPartialVertexBuffer = (info->min_index > 0); in swr_draw_vbo()
135 swr_generate_fetch_key(key, velems); in swr_draw_vbo()
136 auto search = velems->map.find(key); in swr_draw_vbo()
137 if (search != velems->map.end()) { in swr_draw_vbo()
138 velems->fsFunc = search->second; in swr_draw_vbo()
141 velems->fsFunc = JitCompileFetch(hJitMgr, velems->fsState); in swr_draw_vbo()
[all …]
Dswr_state.cpp583 struct swr_vertex_element_state *velems; in swr_create_vertex_elements_state() local
585 velems = new swr_vertex_element_state; in swr_create_vertex_elements_state()
586 if (velems) { in swr_create_vertex_elements_state()
587 memset((void*)&velems->fsState, 0, sizeof(velems->fsState)); in swr_create_vertex_elements_state()
588 velems->fsState.bVertexIDOffsetEnable = true; in swr_create_vertex_elements_state()
589 velems->fsState.numAttribs = num_elements; in swr_create_vertex_elements_state()
596 velems->fsState.layout[i].AlignedByteOffset = attribs[i].src_offset; in swr_create_vertex_elements_state()
597 velems->fsState.layout[i].Format = in swr_create_vertex_elements_state()
599 velems->fsState.layout[i].StreamIndex = in swr_create_vertex_elements_state()
601 velems->fsState.layout[i].InstanceEnable = in swr_create_vertex_elements_state()
[all …]
/external/mesa3d/src/gallium/auxiliary/postprocess/
Dpp_program.c113 p->velem.velems[0].src_offset = 0; in pp_init_prog()
114 p->velem.velems[0].instance_divisor = 0; in pp_init_prog()
115 p->velem.velems[0].vertex_buffer_index = 0; in pp_init_prog()
116 p->velem.velems[0].src_format = PIPE_FORMAT_R32G32B32A32_FLOAT; in pp_init_prog()
117 p->velem.velems[1].src_offset = 1 * 4 * sizeof(float); in pp_init_prog()
118 p->velem.velems[1].instance_divisor = 0; in pp_init_prog()
119 p->velem.velems[1].vertex_buffer_index = 0; in pp_init_prog()
120 p->velem.velems[1].src_format = PIPE_FORMAT_R32G32B32A32_FLOAT; in pp_init_prog()
/external/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()
524 struct cso_velems_state velems; in renderer_draw_yuv() local
[all …]
/external/mesa3d/src/mesa/state_tracker/
Dst_cb_drawtex.c173 struct cso_velems_state velems; in st_DrawTex() local
311 velems.velems[i].src_offset = i * 4 * sizeof(float); in st_DrawTex()
312 velems.velems[i].instance_divisor = 0; in st_DrawTex()
313 velems.velems[i].vertex_buffer_index = 0; in st_DrawTex()
314 velems.velems[i].src_format = PIPE_FORMAT_R32G32B32A32_FLOAT; in st_DrawTex()
316 velems.count = numAttribs; in st_DrawTex()
318 cso_set_vertex_elements(cso, &velems); in st_DrawTex()
Dst_atom_array.c177 init_velement(vp, velements->velems, &attrib->Format, 0, in st_setup_arrays()
219 init_velement(vp, velements->velems, &attrib->Format, off, in st_setup_arrays()
263 init_velement(vp, velements->velems, &attrib->Format, cursor - data, in st_setup_current()
314 init_velement(vp, velements->velems, &attrib->Format, 0, 0, in st_setup_current_user()
Dst_context.c629 st->util_velems.velems[0].src_offset = 0; in st_create_context_priv()
630 st->util_velems.velems[0].vertex_buffer_index = 0; in st_create_context_priv()
631 st->util_velems.velems[0].src_format = PIPE_FORMAT_R32G32B32_FLOAT; in st_create_context_priv()
632 st->util_velems.velems[1].src_offset = 3 * sizeof(float); in st_create_context_priv()
633 st->util_velems.velems[1].vertex_buffer_index = 0; in st_create_context_priv()
634 st->util_velems.velems[1].src_format = PIPE_FORMAT_R32G32B32A32_FLOAT; in st_create_context_priv()
635 st->util_velems.velems[2].src_offset = 7 * sizeof(float); in st_create_context_priv()
636 st->util_velems.velems[2].vertex_buffer_index = 0; in st_create_context_priv()
637 st->util_velems.velems[2].src_format = PIPE_FORMAT_R32G32_FLOAT; in st_create_context_priv()
/external/mesa3d/src/gallium/tests/trivial/
Dtri.c202 p->velem.velems[0].src_offset = 0 * 4 * sizeof(float); /* offset 0, first element */ in init_prog()
203 p->velem.velems[0].instance_divisor = 0; in init_prog()
204 p->velem.velems[0].vertex_buffer_index = 0; in init_prog()
205 p->velem.velems[0].src_format = PIPE_FORMAT_R32G32B32A32_FLOAT; in init_prog()
207 p->velem.velems[1].src_offset = 1 * 4 * sizeof(float); /* offset 16, second element */ in init_prog()
208 p->velem.velems[1].instance_divisor = 0; in init_prog()
209 p->velem.velems[1].vertex_buffer_index = 0; in init_prog()
210 p->velem.velems[1].src_format = PIPE_FORMAT_R32G32B32A32_FLOAT; in init_prog()
Dquad-tex.c259 p->velem.velems[0].src_offset = 0 * 4 * sizeof(float); /* offset 0, first element */ in init_prog()
260 p->velem.velems[0].instance_divisor = 0; in init_prog()
261 p->velem.velems[0].vertex_buffer_index = 0; in init_prog()
262 p->velem.velems[0].src_format = PIPE_FORMAT_R32G32B32A32_FLOAT; in init_prog()
264 p->velem.velems[1].src_offset = 1 * 4 * sizeof(float); /* offset 16, second element */ in init_prog()
265 p->velem.velems[1].instance_divisor = 0; in init_prog()
266 p->velem.velems[1].vertex_buffer_index = 0; in init_prog()
267 p->velem.velems[1].src_format = PIPE_FORMAT_R32G32B32A32_FLOAT; in init_prog()
/external/mesa3d/src/gallium/drivers/i915/
Di915_state.c1022 struct i915_velems_state *velems; in i915_create_vertex_elements_state() local
1024 velems = (struct i915_velems_state *) MALLOC(sizeof(struct i915_velems_state)); in i915_create_vertex_elements_state()
1025 if (velems) { in i915_create_vertex_elements_state()
1026 velems->count = count; in i915_create_vertex_elements_state()
1027 memcpy(velems->velem, attribs, sizeof(*attribs) * count); in i915_create_vertex_elements_state()
1029 return velems; in i915_create_vertex_elements_state()
1034 void *velems) in i915_bind_vertex_elements_state() argument
1037 struct i915_velems_state *i915_velems = (struct i915_velems_state *) velems; in i915_bind_vertex_elements_state()
1039 if (i915->velems == velems) in i915_bind_vertex_elements_state()
1042 i915->velems = velems; in i915_bind_vertex_elements_state()
[all …]
/external/mesa3d/src/gallium/drivers/r300/
Dr300_render.c152 struct pipe_vertex_element *velem = r300->velems->velem; in r300_split_index_bias()
161 for (i = 0; i < r300->velems->count; i++) { in r300_split_index_bias()
322 if (count * r300->velems->vertex_size_dwords > IMMD_DWORDS) { in immd_is_good_idea()
340 unsigned vertex_element_count = r300->velems->count; in r300_draw_arrays_immediate()
344 unsigned vertex_size = r300->velems->vertex_size_dwords; in r300_draw_arrays_immediate()
367 velem = &r300->velems->velem[i]; in r300_draw_arrays_immediate()
368 size[i] = r300->velems->format_size[i] / 4; in r300_draw_arrays_immediate()
735 unsigned i, nr = r300->velems->count; in r300_max_vertex_count()
736 struct pipe_vertex_element *velems = r300->velems->velem; in r300_max_vertex_count() local
741 &r300->vertex_buffer[velems[i].vertex_buffer_index]; in r300_max_vertex_count()
[all …]
Dr300_state.c1780 static void r300_vertex_psc(struct r300_vertex_element_state *velems) in r300_vertex_psc() argument
1782 struct r300_vertex_stream_state *vstream = &velems->vertex_stream; in r300_vertex_psc()
1790 for (i = 0; i < velems->count; i++) { in r300_vertex_psc()
1791 format = velems->velem[i].src_format; in r300_vertex_psc()
1827 struct r300_vertex_element_state *velems; in r300_create_vertex_elements_state() local
1842 velems = CALLOC_STRUCT(r300_vertex_element_state); in r300_create_vertex_elements_state()
1843 if (!velems) in r300_create_vertex_elements_state()
1846 velems->count = count; in r300_create_vertex_elements_state()
1847 memcpy(velems->velem, attribs, sizeof(struct pipe_vertex_element) * count); in r300_create_vertex_elements_state()
1852 r300_vertex_psc(velems); in r300_create_vertex_elements_state()
[all …]
/external/mesa3d/src/gallium/auxiliary/util/
Du_vbuf.c341 const struct cso_velems_state *velems) in u_vbuf_set_vertex_elements_internal() argument
349 key_size = sizeof(struct pipe_vertex_element) * velems->count + in u_vbuf_set_vertex_elements_internal()
351 hash_key = cso_construct_key((void*)velems, key_size); in u_vbuf_set_vertex_elements_internal()
353 (void*)velems, key_size); in u_vbuf_set_vertex_elements_internal()
357 memcpy(&cso->state, velems, key_size); in u_vbuf_set_vertex_elements_internal()
358 cso->data = u_vbuf_create_vertex_elements(mgr, velems->count, in u_vbuf_set_vertex_elements_internal()
359 velems->velems); in u_vbuf_set_vertex_elements_internal()
378 const struct cso_velems_state *velems) in u_vbuf_set_vertex_elements() argument
380 mgr->ve = u_vbuf_set_vertex_elements_internal(mgr, velems); in u_vbuf_set_vertex_elements()
739 mgr->fallback_velems.velems[i].instance_divisor = mgr->ve->ve[i].instance_divisor; in u_vbuf_translate_begin()
[all …]
Du_vbuf.h75 const struct cso_velems_state *velems);
/external/mesa3d/src/gallium/auxiliary/driver_ddebug/
Ddd_pipe.h213 struct pipe_vertex_element velems[PIPE_MAX_ATTRIBS]; member
215 } velems; member
241 struct dd_state *velems; member
270 struct dd_state velems; member
Ddd_draw.c381 if (dstate->velems) { in dd_dump_draw_vbo()
383 dstate->velems->state.velems.count); in dd_dump_draw_vbo()
384 for (i = 0; i < dstate->velems->state.velems.count; i++) { in dd_dump_draw_vbo()
386 DUMP_I(vertex_element, &dstate->velems->state.velems.velems[i], i); in dd_dump_draw_vbo()
799 state->base.velems = &state->velems; in dd_init_copy_of_draw_state()
906 if (src->velems) in dd_copy_draw_state()
907 dst->velems->state.velems = src->velems->state.velems; in dd_copy_draw_state()
909 dst->velems = NULL; in dd_copy_draw_state()
/external/mesa3d/src/gallium/auxiliary/cso_cache/
Dcso_context.c1042 const struct cso_velems_state *velems) in cso_set_vertex_elements_direct() argument
1053 key_size = sizeof(struct pipe_vertex_element) * velems->count + in cso_set_vertex_elements_direct()
1055 hash_key = cso_construct_key((void*)velems, key_size); in cso_set_vertex_elements_direct()
1057 (void*)velems, key_size); in cso_set_vertex_elements_direct()
1064 memcpy(&cso->state, velems, key_size); in cso_set_vertex_elements_direct()
1066 velems->count, in cso_set_vertex_elements_direct()
1067 &cso->state.velems[0]); in cso_set_vertex_elements_direct()
1092 const struct cso_velems_state *velems) in cso_set_vertex_elements() argument
1097 u_vbuf_set_vertex_elements(vbuf, velems); in cso_set_vertex_elements()
1101 cso_set_vertex_elements_direct(ctx, velems); in cso_set_vertex_elements()
[all …]
Dcso_context.h87 const struct cso_velems_state *velems);
210 const struct cso_velems_state *velems,
Dcso_cache.h137 struct pipe_vertex_element velems[PIPE_MAX_ATTRIBS]; member

123