/third_party/mesa3d/src/gallium/drivers/svga/ |
D | svga_pipe_vertex.c | 124 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 …]
|
D | svga_state_vdecl.c | 45 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()
|
D | svga_state_vs.c | 196 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()
|
D | svga_state_need_swtnl.c | 38 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/ |
D | lp_state_vertex.c | 46 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/ |
D | sp_state_vertex.c | 47 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/ |
D | pp_program.c | 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()
|
/third_party/mesa3d/src/gallium/drivers/swr/ |
D | swr_draw.cpp | 149 struct swr_vertex_element_state *velems = ctx->velems; in swr_draw_vbo() local 151 velems->fsState.cutIndex = info->restart_index; in swr_draw_vbo() 153 velems->fsState.cutIndex = 0; in swr_draw_vbo() 154 velems->fsState.bEnableCutIndex = info->primitive_restart; in swr_draw_vbo() 155 velems->fsState.bPartialVertexBuffer = (info->index_bounds_valid && info->min_index > 0); in swr_draw_vbo() 158 swr_generate_fetch_key(key, velems); in swr_draw_vbo() 159 auto search = velems->map.find(key); in swr_draw_vbo() 160 if (search != velems->map.end()) { in swr_draw_vbo() 161 velems->fsFunc = search->second; in swr_draw_vbo() 164 velems->fsFunc = JitCompileFetch(hJitMgr, velems->fsState); in swr_draw_vbo() [all …]
|
D | swr_state.cpp | 595 struct swr_vertex_element_state *velems; in swr_create_vertex_elements_state() local 597 velems = new swr_vertex_element_state; in swr_create_vertex_elements_state() 598 if (velems) { in swr_create_vertex_elements_state() 599 memset((void*)&velems->fsState, 0, sizeof(velems->fsState)); in swr_create_vertex_elements_state() 600 velems->fsState.bVertexIDOffsetEnable = true; in swr_create_vertex_elements_state() 601 velems->fsState.numAttribs = num_elements; in swr_create_vertex_elements_state() 608 velems->fsState.layout[i].AlignedByteOffset = attribs[i].src_offset; in swr_create_vertex_elements_state() 609 velems->fsState.layout[i].Format = in swr_create_vertex_elements_state() 611 velems->fsState.layout[i].StreamIndex = in swr_create_vertex_elements_state() 613 velems->fsState.layout[i].InstanceEnable = in swr_create_vertex_elements_state() [all …]
|
/third_party/mesa3d/src/gallium/frontends/xa/ |
D | xa_renderer.c | 91 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/ |
D | st_cb_drawtex.c | 173 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()
|
D | st_atom_array.c | 119 init_velement(velements->velems, &attrib->Format, 0, in setup_arrays() 161 init_velement(velements->velems, &attrib->Format, off, in setup_arrays() 223 init_velement(velements->velems, &attrib->Format, cursor - data, in st_setup_current() 273 init_velement(velements->velems, &attrib->Format, 0, 0, in st_setup_current_user() 352 screen->create_vertex_state(screen, &vbuffer[0], velements.velems, in st_create_gallium_vertex_state()
|
D | st_context.c | 637 st->util_velems.velems[0].src_offset = 0; in st_create_context_priv() 638 st->util_velems.velems[0].vertex_buffer_index = 0; in st_create_context_priv() 639 st->util_velems.velems[0].src_format = PIPE_FORMAT_R32G32B32_FLOAT; in st_create_context_priv() 640 st->util_velems.velems[1].src_offset = 3 * sizeof(float); in st_create_context_priv() 641 st->util_velems.velems[1].vertex_buffer_index = 0; in st_create_context_priv() 642 st->util_velems.velems[1].src_format = PIPE_FORMAT_R32G32B32A32_FLOAT; in st_create_context_priv() 643 st->util_velems.velems[2].src_offset = 7 * sizeof(float); in st_create_context_priv() 644 st->util_velems.velems[2].vertex_buffer_index = 0; in st_create_context_priv() 645 st->util_velems.velems[2].src_format = PIPE_FORMAT_R32G32_FLOAT; in st_create_context_priv()
|
D | st_pbo.c | 253 velem.velems[0].src_offset = 0; in st_pbo_draw() 254 velem.velems[0].instance_divisor = 0; in st_pbo_draw() 255 velem.velems[0].vertex_buffer_index = 0; in st_pbo_draw() 256 velem.velems[0].src_format = PIPE_FORMAT_R32G32_FLOAT; in st_pbo_draw() 257 velem.velems[0].dual_slot = false; in st_pbo_draw()
|
/third_party/mesa3d/src/gallium/tests/trivial/ |
D | tri.c | 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() 215 p->velem.velems[1].src_format = PIPE_FORMAT_R32G32B32A32_FLOAT; in init_prog()
|
D | quad-tex.c | 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() 272 p->velem.velems[1].src_format = PIPE_FORMAT_R32G32B32A32_FLOAT; in init_prog()
|
/third_party/mesa3d/src/gallium/drivers/i915/ |
D | i915_state.c | 987 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/ |
D | r300_render.c | 153 struct pipe_vertex_element *velem = r300->velems->velem; in r300_split_index_bias() 162 for (i = 0; i < r300->velems->count; i++) { in r300_split_index_bias() 323 if (count * r300->velems->vertex_size_dwords > IMMD_DWORDS) { in immd_is_good_idea() 342 unsigned vertex_element_count = r300->velems->count; in r300_draw_arrays_immediate() 346 unsigned vertex_size = r300->velems->vertex_size_dwords; in r300_draw_arrays_immediate() 369 velem = &r300->velems->velem[i]; in r300_draw_arrays_immediate() 370 size[i] = r300->velems->format_size[i] / 4; in r300_draw_arrays_immediate() 742 unsigned i, nr = r300->velems->count; in r300_max_vertex_count() 743 struct pipe_vertex_element *velems = r300->velems->velem; in r300_max_vertex_count() local 748 &r300->vertex_buffer[velems[i].vertex_buffer_index]; in r300_max_vertex_count() [all …]
|
D | r300_state.c | 1798 static void r300_vertex_psc(struct r300_vertex_element_state *velems) in r300_vertex_psc() argument 1800 struct r300_vertex_stream_state *vstream = &velems->vertex_stream; in r300_vertex_psc() 1808 for (i = 0; i < velems->count; i++) { in r300_vertex_psc() 1809 format = velems->velem[i].src_format; in r300_vertex_psc() 1845 struct r300_vertex_element_state *velems; in r300_create_vertex_elements_state() local 1860 velems = CALLOC_STRUCT(r300_vertex_element_state); in r300_create_vertex_elements_state() 1861 if (!velems) in r300_create_vertex_elements_state() 1864 velems->count = count; in r300_create_vertex_elements_state() 1865 memcpy(velems->velem, attribs, sizeof(struct pipe_vertex_element) * count); in r300_create_vertex_elements_state() 1870 r300_vertex_psc(velems); in r300_create_vertex_elements_state() [all …]
|
/third_party/mesa3d/src/gallium/auxiliary/driver_ddebug/ |
D | dd_pipe.h | 215 struct pipe_vertex_element velems[PIPE_MAX_ATTRIBS]; member 217 } velems; member 243 struct dd_state *velems; member 272 struct dd_state velems; member
|
D | dd_draw.c | 386 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/ |
D | u_vbuf.c | 376 const struct cso_velems_state *velems) in u_vbuf_set_vertex_elements_internal() argument 384 key_size = sizeof(struct pipe_vertex_element) * velems->count + in u_vbuf_set_vertex_elements_internal() 386 hash_key = cso_construct_key((void*)velems, key_size); in u_vbuf_set_vertex_elements_internal() 388 (void*)velems, key_size); in u_vbuf_set_vertex_elements_internal() 392 memcpy(&cso->state, velems, key_size); in u_vbuf_set_vertex_elements_internal() 393 cso->data = u_vbuf_create_vertex_elements(mgr, velems->count, in u_vbuf_set_vertex_elements_internal() 394 velems->velems); in u_vbuf_set_vertex_elements_internal() 411 const struct cso_velems_state *velems) in u_vbuf_set_vertex_elements() argument 413 mgr->ve = u_vbuf_set_vertex_elements_internal(mgr, velems); in u_vbuf_set_vertex_elements() 795 mgr->fallback_velems.velems[i].instance_divisor = mgr->ve->ve[i].instance_divisor; in u_vbuf_translate_begin() [all …]
|
/third_party/mesa3d/src/gallium/auxiliary/cso_cache/ |
D | cso_context.c | 1020 const struct cso_velems_state *velems) in cso_set_vertex_elements_direct() argument 1031 key_size = sizeof(struct pipe_vertex_element) * velems->count + in cso_set_vertex_elements_direct() 1033 hash_key = cso_construct_key((void*)velems, key_size); in cso_set_vertex_elements_direct() 1035 (void*)velems, key_size); in cso_set_vertex_elements_direct() 1042 memcpy(&cso->state, velems, key_size); in cso_set_vertex_elements_direct() 1045 unsigned new_count = velems->count; in cso_set_vertex_elements_direct() 1046 const struct pipe_vertex_element *new_elems = velems->velems; in cso_set_vertex_elements_direct() 1073 const struct cso_velems_state *velems) in cso_set_vertex_elements() argument 1078 u_vbuf_set_vertex_elements(vbuf, velems); in cso_set_vertex_elements() 1082 cso_set_vertex_elements_direct(ctx, velems); in cso_set_vertex_elements() [all …]
|
D | cso_context.h | 89 const struct cso_velems_state *velems); 185 const struct cso_velems_state *velems,
|
/third_party/mesa3d/src/gallium/drivers/radeonsi/ |
D | si_state_draw.cpp | 1655 static bool ALWAYS_INLINE si_set_vb_descriptor(struct si_vertex_elements *velems, in si_set_vb_descriptor() argument 1666 int64_t offset = (int64_t)((int)vb->buffer_offset) + velems->src_offset[index]; in si_set_vb_descriptor() 1679 num_records = (num_records - velems->format_size[index]) / vb->stride + 1; in si_set_vb_descriptor() 1683 uint32_t rsrc_word3 = velems->rsrc_word3[index]; in si_set_vb_descriptor() 1702 void si_set_vertex_buffer_descriptor(struct si_screen *sscreen, struct si_vertex_elements *velems, in si_set_vertex_buffer_descriptor() argument 1708 si_set_vb_descriptor<GFX6>(velems, vb, element_index, out); in si_set_vertex_buffer_descriptor() 1711 si_set_vb_descriptor<GFX7>(velems, vb, element_index, out); in si_set_vertex_buffer_descriptor() 1714 si_set_vb_descriptor<GFX8>(velems, vb, element_index, out); in si_set_vertex_buffer_descriptor() 1717 si_set_vb_descriptor<GFX9>(velems, vb, element_index, out); in si_set_vertex_buffer_descriptor() 1720 si_set_vb_descriptor<GFX10>(velems, vb, element_index, out); in si_set_vertex_buffer_descriptor() [all …]
|