Home
last modified time | relevance | path

Searched refs:velem (Results 1 – 25 of 26) sorted by relevance

12

/third_party/mesa3d/src/gallium/auxiliary/postprocess/
Dpp_program.c113 p->velem.count = 2; in pp_init_prog()
114 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()
Dpp_private.h53 struct cso_velems_state velem; member
Dpp_run.c288 cso_set_vertex_elements(p->cso, &p->velem); in pp_filter_misc_state()
/third_party/mesa3d/src/gallium/tests/trivial/
Dtri.c73 struct cso_velems_state velem; member
204 memset(&p->velem, 0, sizeof(p->velem)); in init_prog()
205 p->velem.count = 2; in init_prog()
207 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()
[all …]
Dquad-tex.c77 struct cso_velems_state velem; member
261 memset(&p->velem, 0, sizeof(p->velem)); in init_prog()
262 p->velem.count = 2; in init_prog()
264 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()
[all …]
/third_party/mesa3d/src/gallium/drivers/r300/
Dr300_emit.c934 struct pipe_vertex_element *velem = r300->velems->velem; in r300_emit_vertex_arrays() local
951 vb1 = &vbuf[velem[i].vertex_buffer_index]; in r300_emit_vertex_arrays()
952 vb2 = &vbuf[velem[i+1].vertex_buffer_index]; in r300_emit_vertex_arrays()
958 OUT_CS(vb1->buffer_offset + velem[i].src_offset + offset * vb1->stride); in r300_emit_vertex_arrays()
959 OUT_CS(vb2->buffer_offset + velem[i+1].src_offset + offset * vb2->stride); in r300_emit_vertex_arrays()
963 vb1 = &vbuf[velem[i].vertex_buffer_index]; in r300_emit_vertex_arrays()
967 OUT_CS(vb1->buffer_offset + velem[i].src_offset + offset * vb1->stride); in r300_emit_vertex_arrays()
971 buf = r300_resource(vbuf[velem[i].vertex_buffer_index].buffer.resource); in r300_emit_vertex_arrays()
977 vb1 = &vbuf[velem[i].vertex_buffer_index]; in r300_emit_vertex_arrays()
978 vb2 = &vbuf[velem[i+1].vertex_buffer_index]; in r300_emit_vertex_arrays()
[all …]
Dr300_render.c154 struct pipe_vertex_element *velem = r300->velems->velem; in r300_split_index_bias() local
164 vb = &vbufs[velem[i].vertex_buffer_index]; in r300_split_index_bias()
165 size = (vb->buffer_offset + velem[i].src_offset) / vb->stride; in r300_split_index_bias()
341 struct pipe_vertex_element* velem; in r300_draw_arrays_immediate() local
370 velem = &r300->velems->velem[i]; in r300_draw_arrays_immediate()
372 vbi = velem->vertex_buffer_index; in r300_draw_arrays_immediate()
383 mapelem[i] = map[vbi] + (velem->src_offset / 4); in r300_draw_arrays_immediate()
744 struct pipe_vertex_element *velems = r300->velems->velem; in r300_max_vertex_count()
Dr300_state.c1839 format = velems->velem[i].src_format; in r300_vertex_psc()
1895 memcpy(velems->velem, attribs, sizeof(struct pipe_vertex_element) * count); in r300_create_vertex_elements_state()
1904 align(util_format_get_blocksize(velems->velem[i].src_format), 4); in r300_create_vertex_elements_state()
1925 draw_set_vertex_elements(r300->draw, velems->count, velems->velem); in r300_bind_vertex_elements_state()
Dr300_context.h412 struct pipe_vertex_element velem[PIPE_MAX_ATTRIBS]; member
/third_party/mesa3d/src/gallium/drivers/softpipe/
Dsp_state_vertex.c52 memcpy(velems->velem, attribs, sizeof(*attribs) * count); in softpipe_create_vertex_elements_state()
70 draw_set_vertex_elements(softpipe->draw, sp_velems->count, sp_velems->velem); in softpipe_bind_vertex_elements_state()
Dsp_state.h126 struct pipe_vertex_element velem[PIPE_MAX_ATTRIBS]; member
/third_party/mesa3d/src/gallium/drivers/llvmpipe/
Dlp_state_vertex.c51 memcpy(velems->velem, attribs, sizeof(*attribs) * count); in llvmpipe_create_vertex_elements_state()
68 draw_set_vertex_elements(llvmpipe->draw, lp_velems->count, lp_velems->velem); in llvmpipe_bind_vertex_elements_state()
Dlp_state.h101 struct pipe_vertex_element velem[PIPE_MAX_ATTRIBS]; member
/third_party/mesa3d/src/mesa/state_tracker/
Dst_pbo.c214 struct cso_velems_state velem; in st_pbo_draw() local
241 velem.count = 1; in st_pbo_draw()
242 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()
248 cso_set_vertex_elements(cso, &velem); in st_pbo_draw()
/third_party/mesa3d/src/gallium/drivers/svga/
Dsvga_pipe_vertex.c133 const struct pipe_vertex_element *elem = velems->velem + i; in define_input_element_object()
210 const enum pipe_format f = velems->velem[i].src_format; in translate_vertex_decls()
246 memcpy(velems->velem, attribs, sizeof(*attribs) * count); in svga_create_vertex_elements_state()
Dsvga_state_vdecl.c45 const struct pipe_vertex_element *ve = svga->curr.velems->velem; in emit_hw_vs_vdecl()
Dsvga_swtnl_state.c123 svga->curr.velems->velem); in update_swtnl_draw()
/third_party/mesa3d/src/gallium/auxiliary/util/
Du_tests.c141 struct cso_velems_state velem; in util_set_interleaved_vertex_elements() local
144 memset(&velem, 0, sizeof(velem)); in util_set_interleaved_vertex_elements()
145 velem.count = num_elements; in util_set_interleaved_vertex_elements()
147 velem.velems[i].src_format = PIPE_FORMAT_R32G32B32A32_FLOAT; in util_set_interleaved_vertex_elements()
148 velem.velems[i].src_offset = i * 16; in util_set_interleaved_vertex_elements()
151 cso_set_vertex_elements(cso, &velem); in util_set_interleaved_vertex_elements()
Du_vbuf.c1121 const struct pipe_vertex_element *velem, in get_upload_offset_size() argument
1131 unsigned instance_div = velem->instance_divisor; in get_upload_offset_size()
1132 *offset = vb->buffer_offset + velem->src_offset; in get_upload_offset_size()
1174 const struct pipe_vertex_element *velem = &velems[i]; in u_vbuf_upload_buffers() local
1175 unsigned index = velem->vertex_buffer_index; in u_vbuf_upload_buffers()
1179 if (!get_upload_offset_size(mgr, vb, ve, velem, index, i, start_vertex, in u_vbuf_upload_buffers()
1206 const struct pipe_vertex_element *velem = &velems[i]; in u_vbuf_upload_buffers() local
1207 unsigned index = velem->vertex_buffer_index; in u_vbuf_upload_buffers()
1211 if (!get_upload_offset_size(mgr, vb, ve, velem, index, i, start_vertex, in u_vbuf_upload_buffers()
Du_blitter.c170 struct pipe_vertex_element velem[2]; in util_blitter_create() local
321 memset(&velem[0], 0, sizeof(velem[0]) * 2); in util_blitter_create()
323 velem[i].src_offset = i * 4 * sizeof(float); in util_blitter_create()
324 velem[i].src_format = PIPE_FORMAT_R32G32B32A32_FLOAT; in util_blitter_create()
325 velem[i].vertex_buffer_index = ctx->base.vb_slot; in util_blitter_create()
327 ctx->velem_state = pipe->create_vertex_elements_state(pipe, 2, &velem[0]); in util_blitter_create()
338 velem[0].src_format = formats[i]; in util_blitter_create()
339 velem[0].vertex_buffer_index = ctx->base.vb_slot; in util_blitter_create()
341 pipe->create_vertex_elements_state(pipe, 1, &velem[0]); in util_blitter_create()
/third_party/mesa3d/src/gallium/tools/trace/
Ddump_state.py541 for velem in self._state.vertex_elements:
542 vbuf = self._state.vertex_buffers[velem.vertex_buffer_index]
549 offset = vbuf.buffer_offset + velem.src_offset + vbuf.stride*index
567 }[velem.src_format]
/third_party/mesa3d/src/gallium/drivers/i915/
Di915_context.h242 struct pipe_vertex_element velem[PIPE_MAX_ATTRIBS]; member
Di915_state.c993 memcpy(velems->velem, attribs, sizeof(*attribs) * count); in i915_create_vertex_elements_state()
1012 i915_velems->velem); in i915_bind_vertex_elements_state()
/third_party/mesa3d/src/gallium/frontends/lavapipe/
Dlvp_execute.c131 struct cso_velems_state velem; member
479 cso_set_vertex_elements(state->cso, &state->velem); in emit_state()
900 state->velem.velems[a].src_offset = ps->vi->attributes[a].offset; in handle_graphics_pipeline()
901 state->velem.velems[a].vertex_buffer_index = b; in handle_graphics_pipeline()
902 state->velem.velems[a].src_format = in handle_graphics_pipeline()
904 state->velem.velems[a].dual_slot = false; in handle_graphics_pipeline()
909 state->velem.velems[a].instance_divisor = 0; in handle_graphics_pipeline()
912 state->velem.velems[a].instance_divisor = d ? d : UINT32_MAX; in handle_graphics_pipeline()
919 state->velem.count = util_last_bit(ps->vi->attributes_valid); in handle_graphics_pipeline()
3653 state->velem.velems[location].src_offset = attrs[i].offset; in handle_set_vertex_input()
[all …]
/third_party/mesa3d/src/gallium/auxiliary/draw/
Ddraw_llvm.c2080 struct pipe_vertex_element *velem = &key->vertex_element[j]; in draw_llvm_generate() local
2082 lp_build_const_int32(gallivm, velem->vertex_buffer_index); in draw_llvm_generate()
2084 util_format_get_blocksize(velem->src_format)); in draw_llvm_generate()
2086 velem->src_offset); in draw_llvm_generate()
2089 if (velem->src_format != PIPE_FORMAT_NONE) { in draw_llvm_generate()
2123 if (velem->instance_divisor) { in draw_llvm_generate()
2134 velem->instance_divisor), in draw_llvm_generate()
2249 struct pipe_vertex_element *velem = &key->vertex_element[j]; in draw_llvm_generate() local
2251 util_format_description(velem->src_format); in draw_llvm_generate()
2258 else if (velem->instance_divisor) { in draw_llvm_generate()

12