/third_party/mesa3d/src/gallium/auxiliary/postprocess/ |
D | pp_program.c | 113 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()
|
D | pp_private.h | 53 struct cso_velems_state velem; member
|
D | pp_run.c | 288 cso_set_vertex_elements(p->cso, &p->velem); in pp_filter_misc_state()
|
/third_party/mesa3d/src/gallium/tests/trivial/ |
D | tri.c | 73 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 …]
|
D | quad-tex.c | 77 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/ |
D | r300_emit.c | 934 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 …]
|
D | r300_render.c | 154 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()
|
D | r300_state.c | 1839 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()
|
D | r300_context.h | 412 struct pipe_vertex_element velem[PIPE_MAX_ATTRIBS]; member
|
/third_party/mesa3d/src/gallium/drivers/softpipe/ |
D | sp_state_vertex.c | 52 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()
|
D | sp_state.h | 126 struct pipe_vertex_element velem[PIPE_MAX_ATTRIBS]; member
|
/third_party/mesa3d/src/gallium/drivers/llvmpipe/ |
D | lp_state_vertex.c | 51 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()
|
D | lp_state.h | 101 struct pipe_vertex_element velem[PIPE_MAX_ATTRIBS]; member
|
/third_party/mesa3d/src/mesa/state_tracker/ |
D | st_pbo.c | 214 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/ |
D | svga_pipe_vertex.c | 133 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()
|
D | svga_state_vdecl.c | 45 const struct pipe_vertex_element *ve = svga->curr.velems->velem; in emit_hw_vs_vdecl()
|
D | svga_swtnl_state.c | 123 svga->curr.velems->velem); in update_swtnl_draw()
|
/third_party/mesa3d/src/gallium/auxiliary/util/ |
D | u_tests.c | 141 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()
|
D | u_vbuf.c | 1121 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()
|
D | u_blitter.c | 170 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/ |
D | dump_state.py | 541 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/ |
D | i915_context.h | 242 struct pipe_vertex_element velem[PIPE_MAX_ATTRIBS]; member
|
D | i915_state.c | 993 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/ |
D | lvp_execute.c | 131 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/ |
D | draw_llvm.c | 2080 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()
|